Using the new Arduino IDE for ESP8266 and found bugs, report them here

Moderator: igrr

User avatar
By mslawo95
#79601 Can't connect to Losant MESSAGE: mqttClient.state -1

Hi, I made a code to my WEMOS D1 Controller and ths code should be send data (temp, humidity) to Losant, Connecting to WiFi is ok, but when the Controller connecting to Losant is a message:

Code: Select all`WiFi connected
IP address:
192.168.43.222

Authenticating Device...This device is authorized!

Connecting to Losant...-1
.-1
.-1
.-1
.-1
.-1


My code:
[url]https://pastebin.com/XGDwJfHL
[/url]
In Logs in Losant website I have only message:

Code: Select allDevice RoomSensor1 authenticated with Losant Authentication succeeded ndz 16 gru 2018 21:45:41 GMT+01:00


so the Controller had a connection/authentication succeeded, but next process is won't be gone.. all the time this message which I paste over.

Please HELP ME!

I made this Tutorial/Course with Losant:

https://www.losant.com/blog/getting-started-with-the-esp8266-and-dht22-sensor