Publish multiple fields to thingspeak

There’s substantial prior activity regarding this on the forum, but nothing that exactly answers my question.
I got integration with thingspeak working with one field… temp_outdoor… I want to send a second field temp_indoor. i everything setup properly (I think) except… I don’t know what the string I publish should look like… I tried a comma delimiter, a “&” delimiter… field1=75,field2=32… I am currently publishing this which doesn’t work: field1=33.250000&field2=63.500000 … Please advise

In what way does your request differ from the answer given in this thread?

Although I'd rather use snprintf() to create the string instead of String concatenation, the JSON approach seems to be what you need.

Here is another thread that might fit and shows how to use snprintf()

1 Like