Switch to desktop version  
Getting Started with MQTT on your Flexy using BASIC - Printable Version

+- Ewon Technical Forum (https://techforum.ewon.biz)
+-- Forum: Development (https://techforum.ewon.biz/forum-50.html)
+--- Forum: BASIC Script (https://techforum.ewon.biz/forum-52.html)
+--- Thread: Getting Started with MQTT on your Flexy using BASIC (/thread-473.html)

Pages: 1 2


RE: Getting Started with MQTT on your Flexy using BASIC - Jaisantosh - 13-01-2021

This thread has been marked as solved. If you have a similar issue, it would be better to post your own thread rather than bump this one, to help keep everybody's different issues separate.

(12-01-2021, 09:14 PM)simon Wrote: Are you sure the TCP port 1883 (MQTT) or 8883 (MQTT over TLS) is opened on your network ?

Yes, I have used MQTT before in my system on same ports.


RE: Getting Started with MQTT on your Flexy using BASIC - AmbaH - 05-06-2023

Hi Simon,

When I use this code with the Ewon MQTT broker to publish messages to /topic/flexy/serialnumber/command   I get the following errors:
  • For the message: hi
    Dim index error(19) 113: TagNameToWrite$ = JsonPart$(Pos1stQuote% TO Pos2stQuote%-1)
  • For a larger message: { "month" :6 , "day": 7}
    Not a variable(4) 124: SETSYS Tag, "load", TagNameToWrite$Not a variable(4) 133: SETIO TagNameToWrite$, VAL TagValueToWrite$



RE: Getting Started with MQTT on your Flexy using BASIC - simon - 08-06-2023

Hi,

This is normal.

The message format the Ewon is expecting is { "month" :6 , "day": 7} where month and day must be the TAG name where to put the values.

I guess you did not create the Tags.


RE: Getting Started with MQTT on your Flexy using BASIC - AmbaH - 08-06-2023

This thread has been marked as solved. If you have a similar issue, it would be better to post your own thread rather than bump this one, to help keep everybody's different issues separate.

(08-06-2023, 11:25 AM)simon Wrote: Hi,

This is normal.

The message format the Ewon is expecting is { "month" :6 , "day": 7} where month and day must be the TAG name where to put the values.

I guess you did not create the Tags.

Thank you Simon.

You are correct I did not create the tags, could you please point me towards a thread that explains how to do that?


RE: Getting Started with MQTT on your Flexy using BASIC - simon - 08-06-2023

Hi,

I suggest you follow the videos on https://elearning.hms-networks.com/