JSON via MQTT

8 years 3 months ago #2768 by gotmetalled
JSON via MQTT was created by gotmetalled
Hi,

I am using MQTT Protocol for months and now it's time to rearrange a view things.
My question is, if there is any posibility to transmit a JSON File via MQTT as a Node Parameter. What I still managed is getting a single value (Sensor.DigitalValue or a Sensor.AnalogValue) to my MQTT Broker. Also serializing a String to JSON is working.
Does anyone have a hint?

thx simon

Please Log in or Create an account to join the conversation.

8 years 3 months ago #2771 by NightOne
Replied by NightOne on topic JSON via MQTT
are you talking about your own MQTT broker or EasyIOT cloud (MQTT broker)?
also I am not sure what you mean by JSON file? do you mean a normal JSON string? as you cant attach a file to MQTT.

Any MQTT broker will except any json as long as its a string.

Please Log in or Create an account to join the conversation.

8 years 3 months ago #2776 by gotmetalled
Replied by gotmetalled on topic JSON via MQTT
What I meant is transmitting JSON as a string to my own MQTT Broker.
That allready worked for my cases connecting Arduino Controller to the broker.
Now I want to be able to send JSON string via MQTT driver from EasyIOT Server(local not cloud) to my broker. Sending a single value, e.g. digital or analog value works as expected.

Please Log in or Create an account to join the conversation.

Time to create page: 0.185 seconds

Forum latest

  • No posts to display.