sens text on Adafruit_MQTT.h- is JSOn possible?

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
soulid
 
Posts: 6
Joined: Thu Mar 18, 2010 8:27 am

sens text on Adafruit_MQTT.h- is JSOn possible?

Post by soulid »

Hi there,
I need to send ON and OFF through MQTT to Mosquitto/ Openhab but I am having trouble with it.

I try to send it like that

Code: Select all

  Lichtevent.publish('ON');
In MQTT.FX this is leading to a "20302" only. It would be ideal if this could be send my JSON but the text only would be good as well.

User avatar
adafruit_support_mike
 
Posts: 67485
Joined: Thu Feb 11, 2010 2:51 pm

Re: sens text on Adafruit_MQTT.h- is JSOn possible?

Post by adafruit_support_mike »

What board and code are you using to send the message?

Locked
Please be positive and constructive with your questions and comments.

Return to “General Project help”