10444 questions

12453 answers

19377 comments

21854 members

+1 vote
178 views 2 comments
by
Hello,

For my project i have to sent modbus data to a mqtt broker.

But the mqtt broker doesnt accept the array brackets around the value (VR).

Does anyone have a good solution for this?

{

  "ID": "21",

  "TS": "1624541241",

  "ST": "3",

  "VR": [  419  ]

}

1 Answer

0 votes
by
Hello,

Thank you for contacting.

May i know what device you are using ?

What mqtt broker you are using ? Its Teltonika device or some third party mqtt broker service ?

Because mostly on flespi.io its tested and there are no issues.

Thank you.

Regards,

Ahmed
by
Hello Ahmed,

I used the RUT955.

As broker we are using a third party mqtt broker.

it is ofcourse possible to sent the data to a other broker. But the thirdparty broker we are using dont accept the array brackets around the value.
by
Hello,

The issue is with the 3rd party platform because on other platforms like flespi it accepts the values.

Array brackets couldn't be removed this is the format. Values will be added to these brackets.

Thanks.