-->
Page 1 of 1

Problem with Watchdog Resets and Working with UDP

PostPosted: Wed Jul 14, 2021 10:50 am
by Wolfe Anderson
Hey I'm trying to create a sensor network with two ESP8266 boards that has a client connected to a sensor and a server to receive data. I've got the server online and the client can connect to the sensor, but I'm running into a couple of issues. First, I'm using UDP to send packets from the client to the server and I've tested that the server can receive packets through Packet Sender, but it's not receiving the packets that are being sent by the client. Second, the client runs through the main loop function one time, sends a UDP packet, then doesn't go back to the top of the loop and watchdog resets after a few seconds. Can I get some help?

Re: Problem with Watchdog Resets and Working with UDP

PostPosted: Wed Jul 14, 2021 10:10 pm
by davydnorris
You may get more joy asking this in the Arduino forum area, but some comments:
- so is the client definitely sending packets?
- try refactoring the code from your loop into discrete functions
- your I2C clock rate is very high, can you run your sensor at a lower I2C bus speed? At that rate you could be dropping data and then waiting for responses that aren't coming, and that's why the watchdog's triggering