Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4919

MicroPython • Re: uasyncio error

$
0
0
I was given this as a work-around for lack of `serve_forever`

Code:

    async with server:        while True:            await asyncio.sleep(300)
I am not sure what the significance of 300 is as any number in there seems to work. Perhaps, 5 minutes is some default value.

Statistics: Posted by davefes — Mon Jul 15, 2024 6:49 am



Viewing all articles
Browse latest Browse all 4919

Trending Articles