You need a charachter array (e.g. char data[16]
) into which you feed the string via snprintf()
and then publish that via Particle.publish("rssi", data, PRIVATE);
.
But this should be discussed either in this thread or your other RSSI code snippet not working