mirror of
https://github.com/markqvist/RNode_Firmware.git
synced 2026-04-27 22:35:36 +00:00
Added WiFi host read timeout and automatic disconnect. Added automatic WiFi reconnect in STA mode. Improved host reconnection reliability and responsiveness.
This commit is contained in:
parent
439bece78e
commit
1e054097dd
2 changed files with 55 additions and 16 deletions
10
Utilities.h
10
Utilities.h
|
|
@ -2009,3 +2009,13 @@ inline void fifo16_init(FIFOBuffer16 *f, uint16_t *buffer, uint16_t size) {
|
|||
inline uint16_t fifo16_len(FIFOBuffer16 *f) {
|
||||
return (f->end - f->begin);
|
||||
}
|
||||
|
||||
extern void stopRadio();
|
||||
void host_disconnected() {
|
||||
stopRadio();
|
||||
cable_state = CABLE_STATE_DISCONNECTED;
|
||||
current_rssi = -292;
|
||||
last_rssi = -292;
|
||||
last_rssi_raw = 0x00;
|
||||
last_snr_raw = 0x80;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue