We have got some Boron boards in and we tried to upload the same code from Electron onto the Boron, mainly the publishing to the same webhook. We notice that the Boron is not publishing any of the topics. Is there anything specific we have to modify to get the Boron to publish?
The current code we have on the Electron that we want the Boron to publish is:
char message[256];
snprintf(message, sizeof(message),
"{\"Time\":\"%s\", \"conc\":%.4f, \"ws\":%.1f, \"wd\":%d}",
(const char*)Time.format("%FT%TZ"),voc.getAvgVoc(),sonicAnemometer.getAvgWindSpeed(),(int)sonicAnemometer.getAvgWindDirection()
);
//Send message
bool success = Particle.publish("Sensible", message, PRIVATE);
We have changed the code to publish a simple string, which also doesn’t get published:
bool success = Particle.publish("Test", "Connection Test");