Thanks, really appreciate the help!!
Regards,
Friedl.
Thanks, really appreciate the help!!
Regards,
Friedl.
Hi @ScruffR -
I just want to confirm as I could not get the code to compile so I made a small edit Does the code below look ok?
Particle.publish("Amp", String::format("{\"data\":%.3f,\"authCode\"MYAUTHCODE\" }", sensor_value), PRIVATE);
It seems to be working, but I am not 100% convinced it should, hehe.
Thanks Friedl.
Not quite. Compare what I wrote
"{ ... \"authCode\":\"<yourCodeHere>\" ... }"
(there was a slight typo "\
where it should have been \"
- corrected above)
with what you wrote for the same section
"{ ... \"authCode\"MYAUTHCODE\" ... }"
Hi Scruff -
I had this initially the way you gave it, but received some errors about “/” floating around when compiling. Must have made a typing error somewhere, my apologies!
Seems to be compiling now. My apologies again.