How to Verify or Confirm that the Thingspeak server has received data.

Arthur Monks on 16 Apr 2022
Latest activity Edit by Christopher Stapels on 18 Apr 2022

Is it possible to get a "Handshake" back from the server to acknowledge receipt of a data packet ? I want to drive Red/Green LED - Red for Sent followed by Green if receipt is confirmed. I have an ESP32 project sending data without problems, unknown to me the internet connection had been lost, but I had no indication anything was wrong.

Christopher Stapels
Christopher Stapels on 18 Apr 2022 (Edited on 18 Apr 2022)

If you are using the REST API, there is a standard HTTP response code and an object containing the updated data or the number of entries in the channel, depending on your parameters sent. See the REST API documentation for write data to see all the response formats. If you are using the ThingSpeak library , the examples show you how to check for the right response code.

Vinod
Vinod on 17 Apr 2022 (Edited on 17 Apr 2022)

Take a look at the React app on ThingSpeak. Specifically the no data insert react may be all you need.

Arthur Monks
Arthur Monks on 17 Apr 2022

Thanks, I hadn't seen that function. I have implemented it with ThingTweet. Its not exactly what I wanted, I was hoping to get a server response back to confirm data was successfully received, then use that to flash green for OK and red for lack of confirmation. But the tweets will at least create a log.

I was prompted to look at this when Thingspeak seemed to have gone down on the 16/4/22 between 8am - 1pm (BST), I could not log into the website, other sites were OK, nothing had changed my end.

Tags

No tags entered yet.