A ALEX BISSARO PITTA Member Licensed User Dec 14, 2020 #1 Hello, I have been using the code below to send UDP packets from B4A to B4R and works fine. Packet.Initialize(ser.ConvertArrayToBytes(Array("CENARIO1",1,2,3,4,5,6,7,8,9)),deviceIp1,devicePort) UDPSocket1.Send(Packet) How can I simply send the same code as above " "CENARIO1",1,2,3,4,5,6,7,8,9 " by means of Macrodroid? Macrodroid x B4A *Destination: deviceIp1 * Port: devicePort * Message text: "CENARIO1",1,2,3,4,5,6,7,8,9 * how to convert the same statements to hex in a way other side (B4R) will understand? e
Hello, I have been using the code below to send UDP packets from B4A to B4R and works fine. Packet.Initialize(ser.ConvertArrayToBytes(Array("CENARIO1",1,2,3,4,5,6,7,8,9)),deviceIp1,devicePort) UDPSocket1.Send(Packet) How can I simply send the same code as above " "CENARIO1",1,2,3,4,5,6,7,8,9 " by means of Macrodroid? Macrodroid x B4A *Destination: deviceIp1 * Port: devicePort * Message text: "CENARIO1",1,2,3,4,5,6,7,8,9 * how to convert the same statements to hex in a way other side (B4R) will understand? e
Erel B4X founder Staff member Licensed User Longtime User Dec 14, 2020 #2 Please use [code]code here...[/code] tags when posting code. How is 'ser' declared? It should be B4RSerializator. Upvote 0
Please use [code]code here...[/code] tags when posting code. How is 'ser' declared? It should be B4RSerializator.
Erel B4X founder Staff member Licensed User Longtime User Dec 20, 2020 #4 Now I understand. B4RSerializator will not help you here. You will need to build your own format. Upvote 0