Chat here about code rewrites, mods, etc... with respect to the github project https://github.com/esp8266/Arduino

Moderator: igrr

User avatar
By vbarunn
#63517 I have connected the ESP8266 to the access point and PUBLISH to a MQTT broker. I set the static Ip to the ESP8266 using following functions

WiFi.begin(ssid, password);

WiFi.config(IPAddress(192, 168, XX, XX), IPAddress(192, 168,XX, 1), IPAddress(255, 255, 255, 0));

This is working with the normal routers. However, when I did this by using my mobile hotspot as the AP, I couldn't connect to the MQTT broker. Anyone have ideas about setting static Ip with mobile phone hotspot ?