Barnard Richards in MATLAB Answers
最後のアクティビティ: 2021 年 2 月 23 日

The example code Publish Using WebSockets in Python on a Raspberry Pi https://au.mathworks.com/help/thingspeak/use-raspberry-pi-board-that-runs-python-websockets-to-publish-to-a-channel.html does not work. my python 3 code executes to the last line of the ThingSpeak example code print ("There was an error while publishing the data.") I have been successfully using the same channelID, writeAPIKey and mqttAPIKey with a Arduino for some time using code at https://au.mathworks.com/help/thingspeak/use-arduino-client-to-publish-to-a-channel.html How do do I identify the error with the web sockets publish code. try: publish.single(topic,payload,... i can print on Terminal the topic and payload strings. they appear correct.

ThingSpeak について

The community for students, researchers, and engineers looking to use MATLAB, Simulink, and ThingSpeak for Internet of Things applications. You can find the latest ThingSpeak news, tutorials to jump-start your next IoT project, and a forum to engage in a discussion on your latest cloud-based project. You can see answers to problems other users have solved and share how you solved a problem.

モデレーター