Hey, having the same issues.
Sketch:
#include <SPI.h>
#include <ESP8266WiFi.h>
#include <ThingerWifi.h>
#define DEBUG
#define SSID “belkin.e3e”
#define SSID_PASSWORD “password”
ThingerWifi thing(“hotronics”, “someid”, “someid”);
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();
}
Serial output:
sta config unchangedscandone
wifi evt: 2
scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 4
cnt
connected with belkin.e3e, channel 4
dhcp client start…
wifi evt: 0
wifi evt: 7
wifi evt: 7
wifi evt: 7
wifi evt: 7
wifi evt: 7
wifi evt: 7
ip:192.168.2.10,mask:255.255.255.0,gw:192.168.2.1
wifi evt: 3
[hostByName] request IP for: iot.thinger.io
[hostByName] Host: iot.thinger.io IP: 18.202.4.104
:ref 1
:wr 37 0
:wrc 37 37 0
:ack 37
:rcl
:abort
wifi evt: 7
I can’t see the device connected to the thinger io platform. I double checked all constants. What would you recommend I do? I’m using NodeCMU