Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By ian
#17385 Excellent :)
Nice one CptanPanic! I've used the original pubsub library without problems but this version looks easier to work with.
A while back someone (ChrisCooke?) posted on here some code for 'auto booting' ie the ESP boots as an AP, join the new 'network' & get a configuration page where you enter the SSID & password of your network.
It remembers this (EEPROM) & connects automatically in future.
I've played around with this so that you can enter a MQTT broker IP too. I'm happy to share this if anyone is interested - I don't take any credit (or blame!) for the code.
It's meant to be mDNS capable - that doesn't work for me, but neither does the 'original' mDNS :(
Screenshot from my phone below (hopefully)

Ian

Image
User avatar
By madarax64
#17406 Hey all,
Same issue with Gilbert, same solution...upgrade to Arduino IDE 1.6.4 did the trick!
Thanks for everything CptanPanic :)
Nice job Ian! Do you have a link where someone may test this out?

Ps: After the IDE upgrade, I was still having some trouble. After enabling WiFi diagnostics to Serial, it was apparent that the ESP8266 was disconnecting and reconnecting to my router's network. On a hunch, I checked (I'm running openWRT on it) and realized that the WiFi network was in g+n mode, which apparently the module didn't like. Once I switched it to strictly g-mode, everything was fine. Just in case someone else has similar problems.