Jaisantosh
Joined:
Jan 2021
Posts:
8
Threads:
1
|
|
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.
|
AmbaH
Joined:
Jun 2023
Posts:
3
Threads:
0
|
|
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$
|
simon
Joined:
Mar 2016
Posts:
2.749
Threads:
127
|
|
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.
|
AmbaH
Joined:
Jun 2023
Posts:
3
Threads:
0
|
|
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?
|
simon
Joined:
Mar 2016
Posts:
2.749
Threads:
127
|
|
Hi,
I suggest you follow the videos on https://elearning.hms-networks.com/
|