Why no connecting to console thinger.io (WeMos D1 wifi esp8266 ) ?
My Wemos get local IP (192 168 0 103) and in other project (like Blynk blynk cc ) my WeMos D1 works very stability. But in console thinger io/ no connecting. I am trying to fix it some days but no result.
#include <SPI.h>
#include <ESP8266WiFi.h>
#include <ThingerWifi.h>
#define _DEBUG_
#define DEBUG_ESP_PORT
#define USERNAME "vlad_krop2013"
#define DEVICE_ID "esp8266"
#define DEVICE_CREDENTIAL "123123"
#define SSID "TPLBL"
#define SSID_PASSWORD "123123123"
ThingerWifi thing(USERNAME, DEVICE_ID, DEVICE_CREDENTIAL);
void setup() {
Serial.begin(115200);
pinMode(BUILTIN_LED, OUTPUT);
thing.add_wifi(SSID, SSID_PASSWORD);
// resource input example (i.e. turning on/off a light, a relay, configuring a parameter, etc)
thing["led"] << [](pson& in){ digitalWrite(BUILTIN_LED, in ? HIGH : LOW); };
// resource output example (i.e. reading a sensor value)
thing["millis"] >> [](pson& out){ out = millis(); };
// resource input/output example (i.e. passing input values and do some calculations)
thing["in_out"] = [](pson& in, pson& out){
out["sum"] = (long)in["value1"] + (long)in["value2"];
out["mult"] = (long)in["value1"] * (long)in["value2"];
};
}
void loop() {
thing.handle();
thing["millis"] >> [](pson& out){ out = millis(); };
Serial.println(millis());
Serial.println(WiFi.localIP());
Serial.println(WiFi.status());
Serial.println(WL_CONNECTED);
delay(2000);
}
Text From Serial:
pm open,type:2 0
36173
192.168.0.103
3
3
[hostByName] request IP for: iot thinger io
[hostByName] Host: iot thinger io IP: 18 202.4.104
:ur 1
:del
:ref 1
:wr 39 0
:wrc 39 39 0
:ack 39
:rcl
:abort
53257
192 168.0.103
3
3
[hostByName] request IP for: iot thinger io
[hostByName] Host: iot thinger io IP: 18 202.4.104
:ur 1
:del
:ref 1
:wr 39 0
:wrc 39 39 0
:ack 39
:rcl
:abort
70335
192 168.0.103
3
3
By the way. No ping to iot.thinger.io from my home net. And from GSM samartphone. (May be its need specian port number and this port present in libraries). Anyway It’s not clear where I am wrong. Your system does not allow me to attach more than one screenshot now, sorry.