GetTextValueFromKey(jsontext, "ipfromjson", 0, buffer, MaxSize)
GlobalStore.Put(2,buffer)
Log("IP form json:",GlobalStore.Slot2) ' I get 192.168.117.162
Log("IP form json length=",GlobalStore.Slot2.length) ' 15
' then trying to send data:
Dim port As UInt=5000
usocket.BeginPacket(GlobalStore.slot2, port) 'it is not functioned....
usocket.Write("Hallo1")
usocket.SendPacket
delay(5000)
usocket.BeginPacket(Array As Byte(192,168,117,162),port) 'this functioned
usocket.Write("Hallo2")
usocket.SendPacket
delay(5000)
Dim ipforcertain() As Byte = Array As Byte(192, 168, 117, 162)
GlobalStore.Put(2,ipforcertain)
usocket.BeginPacket(GlobalStore.slot2, portik)
usocket.Write("Hallo3")
usocket.SendPacket '---- this functioned
delay(5000)