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:
print("Ping google.com: %d ms" % esp.ping("google.com"))
#esp._debug = True
print("Fetching text from", TEXT_URL)
r = requests.get(TEXT_URL)
print('-'*40)
print(r.text)
print('-'*40)
r.close()
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-airlift-featherwing-esp32-wifi-co-
processor-featherwing
Page 18 of 39










