adafruit / adafruit/Adafruit_WICED_Arduino

Feather turns unresponsible loosing AP connection while UDP socket is open

Open
#81 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
26
Forks
19
PR merge metrics
No merged PRs in 30d

Description

I wrote a simple sketch, that opens an udp port after a Connection to a WiFi AP was made.
As soon as the AP was turned off, feather crashed completly (execution of the sketch stopped and Arduino's monitoring window could not be closed. Reuploading wasn't possible either until resetting the feather.
I don't know if it's crucial, but I registered feather's disconnect callback to a simple Serial print Output function without any additional code.

The issue has been resolved by adding udp.stop() to feathers disconnect callback.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start from the Arduino sketch's UDP setup and registered WiFi disconnect callback, then reproduce the failure by turning off the AP while the UDP socket is open. Verify that the callback stops the UDP socket and that the Feather remains responsive, with monitoring, reset, and reupload working normally.

Written by the indexing model from the issue text.

Assessment

Tech stack
arduino, c
Domain
embedded-iot, networking
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.