akrnmd
5/31/2018 - 2:37 AM

Connect specified number of times using Try-Catch. #SenseTalk

Connect specified number of times using Try-Catch. #SenseTalk

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