User Manual

And save it to your board, with the name code.py .
Then go down to this line
esp.connect_AP(b'MY_SSID_NAME', b'MY_SSID_PASSWORD')
and change MY_SSID_NAME and MY_SSID_PASSWORD to your access point name and password, keeping them
within the '' quotes. (This example doesn't use the secrets' file, but its also very stand-alone so if other things seem to
not work you can always re-load this. You should get something like the following:
In order, the example code...
print()
print("Fetching json from", JSON_URL)
r = requests.get(JSON_URL)
print('-'*40)
print(r.json())
print('-'*40)
r.close()
print("Done!")
This first connection example doesn't use a secrets file - you'll hand-enter your SSID/password to verify
connectivity first!
© Adafruit Industries https://learn.adafruit.com/adafruit-metro-m4-express-airlift-wifi Page 92 of 187