I am trying to use esp32 board with Arduino IOT Cloud.
What I observed is if I connect the esp32 board with laptop using usb cable , it works properly and I can control GPIO pins successfully (I am using relays at output).
However if I disconnect esp32 board from laptop, and provide power externally , it does not work . Even if change the switch status from dashboard, esp32 does not change the pins status.
Could you please help ?
Thanks guys for taking a look into this issue .
Eventually the issue was with power provided to esp32.
Somehow the breadboard was faulty and causing voltage drop. I was supplying 5 V power through vin pin of esp32 (38 pins module) connected on breadboard. when I measured the voltage across vin and gnd it was below 4.5 volts and that was causing issue .
I changed the breadboard and voltage was near 5 V and all worked!!!
I always check power supplied to the devices but this time never thought a breadboard also can cause serious issues.
learning from this issue "Always always pay attention towards power supplied to the devices no matter what"