I'm a newbie to arduino and arduino community and I have a little project using some sensor data with the lora technology. I'm using the lmic library for sending the data with an example code i found
void do_send(osjob_t* j){
float earth = D7S.getInstantaneusSI(); //function from D7S library that returns a float value like 0.15
String str_earth = String(earth);
I removed the extra lines of code that is not relevant to my problem.
Problem is that when the data I send from my arduino node are delivered to the server, the data that the server receives are wrong.
So for example if I sent something like 0.14 the server is receiving something like 0.1 and the last digit as NULL or something undefined. So I think there are some problems with my code. Actually I know that my code is really bad but I just started learning to code so please don't judge :P. For any further informations about the issue please let me know. Thank you.