The use of the ESP8266 in the world of IoT

User avatar
By 4refr0nt
#38935 New version 1.4.6 released (need several hours for GooglePlay cache update)

Whats new?
1. New widget "display-value"
2. Added Widgets Guide
3. Added Video Guide by dicamarques
4. Fix bugs

New examples
display-value.js
IoTmanager4.ino

All sketches retest on Arduino IDE 1.6.7 + ESP8266 Community Edition v 2.1.0-rc1

Image

dicamarques wrote:Since I didn't find any video on how to actually set up this app with the ESP8266, I decided to make a video.

Many thanks! I'm embed link to you video in new version IoT Manager 1.4.6
dicamarques wrote:Also, is there any list of the available widgets? I would like to have a Button not a toggle

Not now, but in new version 1.4.6 we have "Widgets Guide" (only fillgauge and display value, other in progress)
mariuszb wrote:I have a problem with connecting two pieces of ESP

IoT Manager support unlimited sensor devices (with unique deviceID) and unlimited control devices (smartphones).
Please, use unique deviceID (for example, "dev-01", "dev-02" etc)
User avatar
By mariuszb
#38947 Hi
4refr0nt wrote:IoT Manager support unlimited sensor devices (with unique deviceID) and unlimited control devices (smartphones).
Please, use unique deviceID (for example, "dev-01", "dev-02" etc)

Yes, this is clear for me, but the question was a little different

1. what is the purpose of (from Arduino example):
success = client.publish (MQTT :: Publish (prefix, deviceID) .set_qos (1)); ?
(prefix = /IoTmanager)

if one device send deviceID eg. dev-01 and next another eg. dev-02 , when You open IoTmanager it receive only last dev-02.. or I am wrong ??
User avatar
By mariuszb
#38950
mariuszb wrote:Hi
4refr0nt wrote:IoT Manager support unlimited sensor devices (with unique deviceID) and unlimited control devices (smartphones).
Please, use unique deviceID (for example, "dev-01", "dev-02" etc)

Yes, this is clear for me, but the question was a little different

1. what is the purpose of (from Arduino example):
success = client.publish (MQTT :: Publish (prefix, deviceID) .set_qos (1)); ?
(prefix = /IoTmanager)

if one device send deviceID eg. dev-01 and next another eg. dev-02 , when You open IoTmanager it receive only last dev-02.. or I am wrong ??


and if this is some kind of "hello" from user, It should not be sent as "retained" ?
User avatar
By dicamarques
#38955
4refr0nt wrote:New version 1.4.6 released (need several hours for GooglePlay cache update)

dicamarques wrote:Since I didn't find any video on how to actually set up this app with the ESP8266, I decided to make a video.

Many thanks! I'm embed link to you video in new version IoT Manager 1.4.6

That's great , really glad I could help.

I managed to get a press button working, with the toggle:
In void callback()
Code: Select all  if (sub.topic() == sTopic[0] + "/control") {
   //  if (toggle[0] == true){
      if (sub.payload_string() == "1") {
       digitalWrite(pin[0],1);
       stat[0] = stat1;
       pubStatus(sTopic[0], stat[0]);
       delay(2000);
       digitalWrite(pin[0],0);
       stat[0] = stat0;
       pubStatus(sTopic[0], stat[0]);
      } else {
        digitalWrite(pin[0],0);
      }
    //}
 }


I also added a
Code: Select allbool   toggle    [nWidgets];
in the beginning, but dint enable that in the above code.


mariuszb wrote:Yes, this is clear for me, but the question was a little different

1. what is the purpose of (from Arduino example):
success = client.publish (MQTT :: Publish (prefix, deviceID) .set_qos (1)); ?
(prefix = /IoTmanager)

if one device send deviceID eg. dev-01 and next another eg. dev-02 , when You open IoTmanager it receive only last dev-02.. or I am wrong ??


and if this is some kind of "hello" from user, It should not be sent as "retained" ?[/quote]

From what I understand, that line of code is for the esp to say which widgets are available on that esp
Try changing the " page [0] " or " descr [0] " of the widget in one of the devices