Possible to send JSON via MQTT?
See original GitHub issueI’m trying to log data from mpp-solar to a Kotori instance (see https://github.com/daq-tools/kotori/issues/50), and it seems they’d prefer to have the data in a JSON block. I see that mpp-solar supports that output (-o json
), but it looks like it just writes to the screen rather than to the specified MQTT broker. Is there a way to do this that I’m missing? Or if not, could it be added?
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
How to Send and Receive JSON Data Over MQTT with Python
Encoding data in JSON is popular for sending data over the Internet, and also for storing data. You can encode a Python List...
Read more >How to Send data as JSON objects over to MQTT broker
You just need to create your JSON object as a string then call getBytes() on that string to get the byte array to...
Read more >How to send data using MQTT - AssetWolf
Assuming your device is connected using MQTT, it should publish its data to: $sensorTopic = "up/client/clientId/asset/deviceId";. The topic is ...
Read more >ESP32: Sending JSON messages over MQTT - techtutorialsx
The objective of this post is to explain how to send JSON messages over MQTT using the ESP32.
Read more >Publish JSON Data over MQTT with Node-Red - YouTube
One of the the most common use scenarios for using JSON data is for combining data from multiple sources. In this tutorial we...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
added in version 0.7.40 e.g. below (make sure to change -p, -q and --mqtttopic options to suit)
$ mpp-solar -p test -o json_mqtt -q screen --mqtttopic kotori -c QDI
It shouldn’t be too hard. I’ll try to add this in the next day or two