add ap for espnow, using mqtt_as #12993
-
Using espnow decentralized - with esp32 ap ssid/mac address to connect any client/ sensor esp.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Have you tested the case where the client's WiFi link suffers an outage? The reason I ask is that async def up(client): # Deal with WiFi outages
while True:
await client.up.wait()
client.up.clear()
# Down the AP and pause until complete
await client.subscribe('ftx', 1) # t,h,p from/to heat exchanger
await client.subscribe('status', 1) # check/ cmds
runAp() # start ap It may be that there is no problem with the existing code, in which case it looks fine. |
Beta Was this translation helpful? Give feedback.
Have you tested the case where the client's WiFi link suffers an outage? The reason I ask is that
up()
will runrunAp()
again. I'm not sure whether this is OK when the AP is already running. An option might beIt may be that there is no problem with the existing code, in which case it looks fine.