Esp8266 no serial prints / connecting to WiFi and MQTT Broker problem

SoftwareSerial S(3, 1); //     3 - RX,     1 - TX       Wemos D1 Min

???
Those are the hwSerial pins. Don't do that on any board in my opinion.

This is the problem. You have defined a swSerial object on the pins connected to the USB port.
If you want to connect something using swSerial you have to use different pins. You can not use the hw Tx & Rx pins at all if you are using hwSerial for debug.

1 Like