Particle Mesh + Blynk Tutorial (x2!)

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 :see_no_evil: 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 \" :blush: - corrected above)

with what you wrote for the same section

"{ ... \"authCode\"MYAUTHCODE\" ... }"
1 Like

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! :blush:

Seems to be compiling now. My apologies again.