Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save akrnmd/3f173511a14b984ede8298d558a92c80 to your computer and use it in GitHub Desktop.

Select an option

Save akrnmd/3f173511a14b984ede8298d558a92c80 to your computer and use it in GitHub Desktop.
Connect specified number of times using Try-Catch. #SenseTalk #eggplant
Put 10 into NumberOfRetries
Put 0 into i
Repeat While i < NumberOfRetries
Try
Connect [ConnectionName]
Log ("Connect Ok")
Put i + NumberOfRetries into i
Catch
LogWarning ("Connect NG Try : " & i +1)
Put 1 + i into i
If i >= NumberOfRetries then
LogError ("Connect NG")
End If
End Try
End Repeat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment