I just noticed @MartyMacGyver in his code is using
snprintf(printbuf, sizeof(printbuf), "PM1.0:%4d", currFrame.concPM1_0_amb);
but when I try to use the same with sprintf i still dont get expected result to 2 decimal point!
sprintf(buff, "%4d", thisFrame->concPM1_0_amb); Particle.publish("PM 1.0 (μg/m3)", buff, 40, PRIVATE);
i still see this:
in the web console.