Error while publishing the data - existing script problem from today
Hello, today my Python script is giving error messages "There was an error while publishing the data". It is an existing script that runs for a couple of years already. My local network, Wifi, ... is OK. Rebooting Pi does not help. Is there maybe an issue on the Thingspeak servers ? Kind regards, Patrick (Belgium).
4 Comments
Time DescendingDear Vinod, Thank you for your quick answer. I missed the communications about the updated mqtt service, it seems.) I have updated my code according to your example for Raspberry Pi (Websockets port 80). Now the script does not give any errors anymore so I was convinced that it worked. But my new data do not appear in my channel(s), I downloaded the data and latest is from > 1 day ago. Does it take some time to have the newly added "devices" to start working ? Kind regards, Patrick.
Likely that your code uses the legacy MQTT service. We've sent emails for over 6 months warning about it being deprecated. Also, it has been posted here for many months.
You need to make minor updates to your code. See the updated documentation here: https://www.mathworks.com/help/thingspeak/mqtt-basics.html