Re: IoT Manager: Android app for DIY devices (ESP8266 and ot
Posted:
Wed Jul 27, 2016 7:08 am
by daxkamala
using PAHO engine I got a 'Broker disconnected AMQJS0007E Socket error:undefined.'
Re: IoT Manager: Android app for DIY devices (ESP8266 and ot
Posted:
Fri Aug 19, 2016 4:30 am
by rynostrauss
Hi,
Could someone help me with the syntax to create a title for the button I'm trying to create: (I'm having trouble with the second to last line widgetConfig)
JsonObject& root1 = jsonBuffer.createObject();
sTopic[1] = prefix + "/" + deviceID + "/button_off";
root1["id"] = 1;
root1["page"] = "OUTDOOR"; ////THIS IS THE TAB TOPIC
root1["widget"] = "simple-btn";
root1["class1"] = "item no-border"; // class for 1st div
root1["style1"] = ""; // style for 1st div
root1["descr"] = ""; // text for description
root1["class2"] = ""; // class for description from Widgets Guide - Color classes
root1["style2"] = "font-size:20px;float:left;padding-top:10px;font-weight:bold;"; // style for description
root1["topic"] = sTopic[1];
root1["class3"] = "button button-full button-assertive"; // class for button
root1["style3"] = ""; // style for button
root1["widgetConfig"] = "title:small";
root1.printTo(thing_config[1]);
Thanks
Re: IoT Manager: Android app for DIY devices (ESP8266 and ot
Posted:
Sun Aug 28, 2016 1:05 pm
by 4refr0nt