The monitor output contains these two lines:
home/bme280/temperature: 20.92
home/bme280/humidity: 56.32
These a very reasonable temperature and humidity values. So obviously the communication with the sensor is working and the I2C address is correct. These lines are output by mqttPublish()
. So some of your Serial.print
statements are working.
However, there is no output regarding WiFi. If you still had the same code that you posted at the start of this thread, this would be impossible. That code never gets to loop()
and mqttPublish()
without at least printing Connecting to SSID
.
So changes are you have modified your setup()
function, possibly commented some line, and setupWifi()
is no longer called.