i have an esp thats running a udp server. i have others that connect to the wifi/udp server esp then starts sending. The code works fine ive tested it on 7 other ESP8266's. The problem ESP takes the code fine the loop is running and it appears to connect just fine except my server receives no messages from it. I tried everything i could think of and there is only 1 way i can get it to work fully and that is if i go to the tools menu and change Erase Flash to "All Flash Contents" . However this is only temporary if i restart the esp it stops working again and i can only get it to work in the above method i mentioned. I de-soldered the esp and replace it with another and its the same effect. its a wemos mini d1. could the FTDI chip be the problem? By stop workingi mean it apperas the loop is running. my leds flash but no data ever hits the remote server. but like i said if i use another ESP it works fine
you can try in setup()
- WiFi.setOutputPower(17.0); // higher RF TX powrt can cause problems, default is 25.0
- WiFi.setAutoConnect(false); // disables automatic WiFi connection at boot, which can interfere with WiFi.begin(ssid, pass)
one of them or both
Interesting commands but still didnt work, As soon as i power cycle the chip it stops working.Its only the network that stops? everything else keeps working in the program. Also i can't just reflash it normally. the only way to make it work again is to flash and Erase All Flash contents.
For an update. I flashed ESPLINK. I was able to connect to the softap and configure esplink fine. I then flashed my sketch choosing to erase all the flash contents on upload. If dont restart the esp after flashing my sketch it works fine. But if I restart the esp after flashing my sketch I can see the softAP of esplink running in the wifi network list??? I can even connect to it but I cant open the web ui and my lost sketches mainloops runs still
I'm starting to wonder of it has something to do with the breakout bord the esp is attached to. I soldered several ESPs to this breakputboard with the same result
The Espressif ESP8266 SDK is part of every Arduino sketch or other application/firmware for the ESP8266. The SDK handles the WiFi and other basic functions of the chip.
If enabled, the SDK remembers WiFi STA and SoftAP settings and start to connect right after boot. At default it is enabled. In Arduino sketch this is controlled by WiFi.persistent(bool) and of course this setting is stored too.
To clear SoftAP settings, call WiFi.softAPdisconnect(). To only turn off SoftAP, use WiFi.setMode(WIFI_STA).
Juraj:
The Espressif ESP8266 SDK is part of every Arduino sketch or other application/firmware for the ESP8266. The SDK handles the WiFi and other basic functions of the chip.If enabled, the SDK remembers WiFi STA and SoftAP settings and start to connect right after boot. At default it is enabled. In Arduino sketch this is controlled by WiFi.persistent(bool) and of course this setting is stored too.
To clear SoftAP settings, call WiFi.softAPdisconnect(). To only turn off SoftAP, use WiFi.setMode(WIFI_STA).
Yes!!. i tried,
WiFi.persistent(false)
WiFi.softAPdisconnect()
And it works now thanks!!.
However the code would not accept WiFi.setMode(WIFI_STA).It said 'class ESP8266WiFiClass' has no member named 'setmode'
Is it really worth it? A new D1 mini is like $4 on eBay.
Pieter
PieterP:
Is it really worth it? A new D1 mini is like $4 on eBay.Pieter
I have lots of esp modules laying around. It was easy for me to solder a new module. However the problem has been resolved and the board works now
notsolowki:
Yes!!. i tried,WiFi.persistent(false)
WiFi.softAPdisconnect()And it works now thanks!!.
However the code would not accept WiFi.setMode(WIFI_STA).It said 'class ESP8266WiFiClass' has no member named 'setmode'
sorry it is WiFi.mode(WIFI_STA)