WiFi Shield 101 Stops Receiving UDP Packets


hello,

i have arduino mega adk , wifi shield 101 sits listening udp packets trigger action. works great while, after 8-12 hours stops responding. try pinging ip address , don't response either. response:

pinging 192.168.0.10 32 bytes of data:
reply 192.168.0.109: destination host unreachable.


(192.168.0.109 local computer i'm running ping from, 192.168.0.10 arduino).

resetting board seems work. attempting work out solution software reset once hasn't detected packed while, had trouble getting work:

http://forum.arduino.cc/index.php?topic=189122.msg1516272#msg1516272

the code i'm using quite similar example wifiudpsendreceivestring, except don't send reply. problem using linked solution code i'm using expects udp object, solution expects udp pointer can checked against null , delete command works.

is there better way working? thread linked few years ago, i'm not sure if still applies. if approach, pointers on adapting wifiudpsendreceivestring code implement solution suggested matts-uk in linked thread above?

thanks!

i fiddled around more, , wrote code have reset connection if hasn't received in 5 minutes. unfortunately, after reset doesn't receive of udp packets being sent. added udp.flush(); , udp.stop(); start of wificonnect() function. couldn't figure out how delete , re-create udp object.

any ideas? tried running checkwififirmwareversion code, , firmware appears correct. maybe have bad shield?


Arduino Forum > Using Arduino > Networking, Protocols, and Devices (Moderator: fabioc84) > WiFi Shield 101 Stops Receiving UDP Packets


arduino

Comments

Popular posts from this blog

DHT11 Time out error using v0.4.1library

Sketch upload fails with Java error (___REMOVE___/bin/avrdude)!

Arduino Uno + KTY81/210 temperature sensor