I receive the following string frm Sigfox Callback:
I then parse the required data from the string with:
However, I receive the following error at line "Dim messageStatus As String = cFrame.SubString2(14,2)":
B4X:
00786d653fb7da0123000000
I then parse the required data from the string with:
B4X:
Log("Got Sense01")
Dim ProductType As String = cFrame.SubString2(0,2)
Dim beaconmac As String = cFrame.SubString2(2,14)
Dim messageStatus As String = cFrame.SubString2(14,2)
Dim BattLevel As String = cFrame.SubString2(16,2)
However, I receive the following error at line "Dim messageStatus As String = cFrame.SubString2(14,2)":
B4X:
An error occurred:
(Line: 122) Dim messageStatus As String = cFrame.SubString2(
java.lang.StringIndexOutOfBoundsException: String index out of range: -12