New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WiFiUDP not receiving data anymore #2315
Comments
just tried to run your code above and got the same problem with 2.3.0 something has changed |
@sandrolutz Using library ESP8266WiFi in folder: /home/doc/.arduino15/packages/esp8266/hardware/esp8266/2.3.0/libraries/ESP8266WiFi /home/doc/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++ -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -I/home/doc/.arduino15/packages/esp8266/hardware/esp8266/2.3.0/tools/sdk/include -I/home/doc/.arduino15/packages/esp8266/hardware/esp8266/2.3.0/tools/sdk/lwip/include -I/tmp/build6450578341156264690.tmp/core -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -MMD -ffunction-sections -fdata-sections -DF_CPU=80000000L -DLWIP_OPEN_SRC -DARDUINO=10604 -DARDUINO_ESP8266_NODEMCU -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_NODEMCU" -DESP8266 -I/home/doc/.arduino15/packages/esp8266/hardware/esp8266/2.3.0/cores/esp8266 -I/home/doc/.arduino15/packages/esp8266/hardware/esp8266/2.3.0/variants/nodemcu -I/home/doc/.arduino15/packages/esp8266/hardware/esp8266/2.3.0/libraries/ESP8266WiFi/src -I/home/doc/Arduino/libraries/WiFi101/src /tmp/build6450578341156264690.tmp/udp-test.cpp -o /tmp/build6450578341156264690.tmp/udp-test.cpp.o |
I tested your exact sketch agains the GIT version of this repo (not against 2.3.0) and I found it to be working fine both in AP and STA modes. Belo is my test python script that I used import socket
import sys
try:
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
except socket.error:
print 'Failed to create socket'
sys.exit()
host = '12.0.0.1';
port = 1032;
while(1) :
msg = raw_input('Enter message to send : ')
try :
s.sendto(msg, (host, port))
except socket.error, msg:
print 'Error Code : ' + str(msg[0]) + ' Message ' + msg[1]
sys.exit() |
Thanks for your help. |
Hardware
Hardware: ESP-12E
Core Version: 2.3
Description
I updated the Arduino core from 2.2 to 2.3. My code worked very well with release 2.2. Every packet has been received correctly. Unfortunately with release 2.3, the same code does not receive any udp packets anymore. There are no exceptions thrown.
Settings in IDE
Module: NodeMCU 1.0
Flash Size: 4MB/1MB
CPU Frequency: 80Mhz
Upload Using: SERIAL
Reset Method: nodemcu
Sketch
The text was updated successfully, but these errors were encountered: