Hoping you, or someone else, can help me once more.
I had my data formatted correctly and it was transmitting to meshlium. I've just added another two sensors to my waspmote; UV and soil moisture. For some reason my sprintf function is not behaving as I'd like. When I look at the frame in the serial monitor the lines do not break and the new values I have entered are garbage characters.
This is my code:
sprintf(data,"-mac:%s%s -x:%d,y:%d,z:%d -temp:%d -bat:%d%c -rain:%s -speed:%s -vane:%d -sun:%s -soil:%u%c%c",macHigh,macLow,ACC.getX(),ACC.getY(),ACC.getZ(),(int)RTC.getTemperature(),PWR.getBatteryLevel(),'%',data_plum,data_ane,(int)value_direction,data_radi,value_soil,'\r','\n');
The two extra sensors are appended to the end; "data_radi" is a string and "value_soil" is a Uint.
I don't think it is anything to do with the new sensors as further test have shown that simply adding existing sensor values again to the end of the sprintf gives the same results.
Is there a maximum frame length that you can send?
Any help is appreciated.