MQTT JSON + Adafruit IO

Moderators: adafruit_support_bill, adafruit

Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
Locked
User avatar
Copy
 
Posts: 2
Joined: Sat Feb 22, 2020 10:41 am

MQTT JSON + Adafruit IO

Post by Copy »

I found this app that can control MQTT-enabled lights, but it sends the brightness values is in a JSON format. Here is an example

Code: Select all

{
 "mqqt_dashboard":{
  "color":"#FFFFFF",
  "brightness": 100
 }
}
Can I make that work with Adafruit IO?
The app : https://play.google.com/store/apps/deta ... tdashboard

User avatar
Copy
 
Posts: 2
Joined: Sat Feb 22, 2020 10:41 am

Re: MQTT JSON + Adafruit IO

Post by Copy »

UPDATE:
I found out that I need to send "value" not "brightness"
Is there any way to change that

User avatar
brubell
Learn User Page
 
Posts: 2017
Joined: Fri Jul 17, 2015 10:33 pm

Re: MQTT JSON + Adafruit IO

Post by brubell »

Copy wrote:UPDATE:
I found out that I need to send "value" not "brightness"
Is there any way to change that
Adafruit IO Feeds use the following JSON format:

Code: Select all

{
  "id": "string",
  "value": "string",
  "feed_id": 0,
  "feed_key": "string",
  "created_at": "datetime",
  "location": {},
  "lat": 0.0,
  "lon": 0.0,
  "ele": 0.0,
  "created_epoch": 0,
  "expiration": "datetime"
}
You may want to contact the application developer to see if it's possible to edit the JSON from the application, before it's sent to Adafruit IO.

Locked
Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.

Return to “Internet of Things: Adafruit IO and Wippersnapper”