Replies: 4 comments 3 replies
-
Show us your WiFi connect code. |
Beta Was this translation helpful? Give feedback.
-
This sounds like an electrical problem. When you switch it on does your code actually run? If the voltage ramps up slowly it's possible that it crashes: I'd put in some kind of check that this hasn't happened like flashing an LED or outputting print statements. A possible workround might be to put in a delay in import time
time.sleep(4)
import my_application |
Beta Was this translation helpful? Give feedback.
-
To back up my previous comment, the reset pin on a microcontroller forces it to behave exactly as it does on power up. If a program runs after pressing the reset button that confirms a working application. If it doesn't work on power up, you can be highly confident that there is an electrical issue. Further, an ESPx chip draws a high current when it connects to WiFi. So I would suggest that, by connecting immediately, you are drawing a high current at a time when capacitors are still charging and the power supply is not yet stable. This is why I suggested a delay. Power supply stability could readily be proved or disproved with an oscilloscope. |
Beta Was this translation helpful? Give feedback.
-
Hi, I have some fishy problem with WIFI/MQTT connection with a Lolin D1 mini powered with Lipo via a battery sheild. I have a switch to the battery and when I turn on the power it almost never connect but if I push reset it always does. It's already mounted in box so it's a bit of a problem to fix a extra switch for reset now.
Any idea?
/Lasse
Beta Was this translation helpful? Give feedback.
All reactions