Simo Rounela in MATLAB Answers
최근 활동: 2023년 2월 11일

Hi! I'm using Advanticsys UCM-316 IoT gateway, with integrated analog inputs. It supports MQTT data upload, but I can't get it working with ThingSpeak MQTT server. There is username (not needed / blaablaa?) and password (Write API Key) authentication. No DNS server support, so broker URL 34.206.80.227 (mqtt.thingspeak.com), port 1883, subscriber identifier "ucm316". After IO configurations, it will make JSON message to be sent. It's fixed formation, cannot change it. Example: { "SN":"86004", "name":"ucm316", "header":{ "startTime":"2016-02-07T15:06:00.000Z", "endTime":"2016-02-07T15:06:00.000Z", "recordCount":2, "columns":{ "0":{ "id":"0", "name":"relay1", "dataType": "NUMBER", "format":"unsigned short" } }, "data":[ { "ts":"2016-02-07T15:06:00.000Z", "f":{ "0":{"v":0} } } ] } *This message is copied from manual, because user cannot access the actual JSON message.* There is no error log available. In the end, nothing happens. Most probably, because MQTT message formation is not correct. - Is there any way I could use this message structure with Thingspeak? And in case it's not visible, I'm not really a pro with MQTT yet =)

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.