Repository navigation
Commit 8dd1b17
committed
feat(wifi): add autoReconnect() delegating reconnect to firmware
WiFiMQTT already delegates reconnect logic to the ESP32 firmware via
a flag on AT+MQTTCONN, but plain WiFi station reconnect had no
equivalent. autoReconnect(bool) wraps AT+CWAUTOCONN, letting the
firmware handle rejoining the last used AP itself, with no host-side
credential caching or polling loop needed.
Verified on hardware: AT+CWAUTOCONN is accepted and persists across
queries, and the board auto-rejoined an AP that was toggled off and
back on with no intervention from the host. Note this setting is not
persisted across power cycles unless storeSettingsInNVM(true) is also
enabled.1 parent f72e924 commit 8dd1b17
2 files changed
Lines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
933 | 933 | | |
934 | 934 | | |
935 | 935 | | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
936 | 967 | | |
937 | 968 | | |
938 | 969 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
97 | 98 | | |
98 | 99 | | |
99 | 100 | | |
| |||
0 commit comments