Help with "sprintf" formatting for doubles in preparation for JSON

Hmm, I’ll have to check again, but it should have worked.

Meanwhile try sprintf(resultstr, "%3.1f", temp1);, meaning at least three places (including decimal seperator) and one decimal place.

BTW: Are you using a Core or a Photon? If you use a Photon, you might like to read this
0.4.3 Firmware Release for Photon/P1

1 Like