You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 9, 2024. It is now read-only.
Hi @adnan2911, you are correct that the snippet is not complete as provided. With python asyncio you will need to put that fragment inside an async function. You will also need to run the async function on a reactor. Here's a complete example you can play with:
Hello
I am using very simple code on raspberry pi using python 3 as below
but i am getting below error
SyntaxError: 'async with' outside async function
Kindly please help
Thanks
Adnan
The text was updated successfully, but these errors were encountered: