AutoConnect icon indicating copy to clipboard operation
AutoConnect copied to clipboard

Exemple mqttRSSI_NA it's not working

Open DanielSamp4 opened this issue 5 years ago • 3 comments

Primeiramente, parabens pelo trabalho,

Mas os exemplos de mqtt da biblioteca, nao estão conseguindo se conectar com o servidor thingspeak.

img2 img3 img1 image image

I dont know, but i'am putting all the api key's right, but it's not working, kepp printing Connection failed:-2, and this -2 its from PubSubClient::state() and -2 indicates that connection failed.

DanielSamp4 avatar Mar 22 '21 19:03 DanielSamp4

The server for ThingSpeak MQTT is mqtt.thingspeak.com. Can you update your sketch and try again?

v-c avatar Mar 22 '21 21:03 v-c

Oh god!! thank you so much, work perfectly :)

DanielSamp4 avatar Mar 23 '21 01:03 DanielSamp4

Added a supplementary explanation to correctly set the parameters that give to mqttRSSI.ino for connecting to the MQTT broker serviced by ThingSpeak. https://hieromon.github.io/AutoConnect/howtoembed.html#sketch-publishes-messages

Hieromon avatar Mar 23 '21 07:03 Hieromon