Hello, I'm facing an issue, the callback() of pubsubclient is not working with wifimanager. I've used FS to store the Wifi Credentials, MQTT Server IP, MQTT username using WiFiManager and then later connect to MQTT using it. Debugging shows that MQTT is connected successfully and I'm able to run client.loop() but there is no response from callback(). I've set digital pins on esp8266 to toggle HIGH and LOW based on callback payload values but they don't work.
Note: When I hardcode the Wifi Credentials, MQTT Server IP, MQTT username in the code, it works properly.
Can anyone help me regarding this issue?
Hello, I'm facing an issue, the callback() of pubsubclient is not working with wifimanager. I've used FS to store the Wifi Credentials, MQTT Server IP, MQTT username using WiFiManager and then later connect to MQTT using it. Debugging shows that MQTT is connected successfully and I'm able to run client.loop() but there is no response from callback(). I've set digital pins on esp8266 to toggle HIGH and LOW based on callback payload values but they don't work. Note: When I hardcode the Wifi Credentials, MQTT Server IP, MQTT username in the code, it works properly. Can anyone help me regarding this issue?