vshymanskyy / aiodns

A small async DNS client for MicroPython
MIT License
9 stars 1 forks source link

Example code in README fails #5

Closed DeeJay closed 5 days ago

DeeJay commented 5 days ago
import aiodns
# Connect your board to any network
info = await aiodns.getaddrinfo("google.com", 443)
print(info)

Traceback (most recent call last): File "", line 3, in SyntaxError: 'await' outside function