Skip to content
Discussion options

You must be logged in to vote

Have you tested the case where the client's WiFi link suffers an outage? The reason I ask is that up() will run runAp() again. I'm not sure whether this is OK when the AP is already running. An option might be

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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Fisherman48
Comment options

Answer selected by Fisherman48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
ESP32
Labels
None yet
2 participants