# EmonESP keeps rebooting

**URL:** <https://community.openenergymonitor.org/t/emonesp-keeps-rebooting/12092>\
**Category:** emonESP\
**Created:** [4 October 2019 16:37 UTC](https://community.openenergymonitor.org/t/emonesp-keeps-rebooting/12092 "2019-10-04T16:37:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Frans](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/f/71e660/32.png) [@Frans](https://community.openenergymonitor.org/u/Frans)\
**Post date:** [4 October 2019 16:37 UTC](https://community.openenergymonitor.org/t/emonesp-keeps-rebooting/12092/1 "2019-10-04T16:37:04Z")

</div>

I have several times flashes the ESP12 and load the files. Also erase the flash and reload, but get every time the same result.

I see the available networks, try to connect, it says wait 10 sec and stops.

The serial monitor it gives a loop;

EmonESP 5673590  
Firmware: 2.3.0  
Starting APScan: 2 networks found  
AP IP Address: 192.168.4.1  
Server started  
Commencing factory reset.  
Factory reset complete! Resetting…  
⸮  
ets Jan 8 2013,rst cause:2, boot mode:(3,7)

load 0x4010f000, len 1384, room 16  
tail 8  
chksum 0x2d  
csum 0x2d  
v8b899c12  
~ld

EmonESP 5673590  
Firmware: 2.3.0  
Starting APScan: 2 networks found  
AP IP Address: 192.168.4.1  
Server started…

How can i solve this. Is it possible to set the network in a config file.

---

<div class="post-metadata">

**Author:** ![borpin](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/borpin/32/193_2.png) [@borpin](https://community.openenergymonitor.org/u/borpin)\
**Post date:** [4 October 2019 17:26 UTC](https://community.openenergymonitor.org/t/emonesp-keeps-rebooting/12092/2 "2019-10-04T17:26:16Z")

</div>

Have you looked through this thread?

> [@ESP continually resetting. Any ideas?](https://community.openenergymonitor.org/t/esp-continually-resetting-any-ideas/11941):
>
> Hi Recently had a problem where I lost inputs from 2 of my emonESP devices. I misinterpreted the fault and decided to update the firmware on the ESP which in my case are wemos devices. Despite erasing flash first and then uploading firmware and spiffs using platformIO I keep seeing the following: EmonESP 12880953 Firmware: 2.3.0 Starting APScan: 12 networks found AP IP Address: 192.168.4.1 Server started Commencing factory reset. þactory reset complete! Resetting… ets Jan 8 2013,rst c…

---

<div class="post-metadata">

**Author:** ![amerrigan](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/a/f17d59/32.png) [@amerrigan](https://community.openenergymonitor.org/u/amerrigan)\
**Post date:** [9 October 2019 14:14 UTC](https://community.openenergymonitor.org/t/emonesp-keeps-rebooting/12092/3 "2019-10-09T14:14:43Z")

</div>

Had the same on my Wemos D1 Mini (v3)…

If you are using the [Platform.io](http://Platform.io) build option make sure you change the LED to pin 2 (as pin 0 is rst!) in the platformio.ini:

```
src_build_flags = ${common.version} -DWIFI_LED=2 -DENABLE_DEBUG

```

Essentially every time the Wifi is meant to flash the onboard LED it’s sending a reset because the pin is wrong.

---

<div class="post-metadata">

**Author:** ![Frans](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/f/71e660/32.png) [@Frans](https://community.openenergymonitor.org/u/Frans)\
**Post date:** [12 October 2019 15:03 UTC](https://community.openenergymonitor.org/t/emonesp-keeps-rebooting/12092/4 "2019-10-12T15:03:31Z")

</div>

Many thanks for the reply,

The first suggested discussion I had found earlier but did get my much further.

The solution from chancing the LED pin did finely help.

It’s working now.

Many thanks again. Now I finely can get further getting my heat pump monitor working.
