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 ?