Hi all!
I'm trying to get the speed from an UDP packet on my arduino.
I show how I receive the float speed variable:
char speed[4];
speed[0] = packetBuffer[12];
speed[1] = packetBuffer[13];
speed[2] = packetBuffer[14];
speed[3] = packetBuffer[15];
And I obtain an output like it (Serial.println(speed):
z{Aý
I tried by many ways but I don't get the speed in numbers.
Somebody can let me know how I can get the float speed variable and show it in the serial port?
Thanks!!!
I'm trying to get the speed from an UDP packet on my arduino.
I show how I receive the float speed variable:
char speed[4];
speed[0] = packetBuffer[12];
speed[1] = packetBuffer[13];
speed[2] = packetBuffer[14];
speed[3] = packetBuffer[15];
And I obtain an output like it (Serial.println(speed):
z{Aý
I tried by many ways but I don't get the speed in numbers.
Somebody can let me know how I can get the float speed variable and show it in the serial port?
Thanks!!!