Hi,
I am receiving data on UDP_PacketArrived Event from an external device, the data is a float number originally occupying 4 bytes on Packet.Data buffer, on C++ the way to get the float number from the buffer is to do an Union like: unsigned char byt[4]; float number; but I don't have Unions or pointers in Basic4Android so I don't know how to get the original float from the UDP byte buffer in a simple way. Can someone give me a clue to make it work? Thanks
I am receiving data on UDP_PacketArrived Event from an external device, the data is a float number originally occupying 4 bytes on Packet.Data buffer, on C++ the way to get the float number from the buffer is to do an Union like: unsigned char byt[4]; float number; but I don't have Unions or pointers in Basic4Android so I don't know how to get the original float from the UDP byte buffer in a simple way. Can someone give me a clue to make it work? Thanks
Last edited: