Last active
October 3, 2020 00:02
-
-
Save akrnmd/3f173511a14b984ede8298d558a92c80 to your computer and use it in GitHub Desktop.
Connect specified number of times using Try-Catch. #SenseTalk #eggplant
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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