adafruit / Adafruit_CircuitPython_Requests

Requests-like interface for web interfacing
MIT License
51 stars 36 forks source link

update wifi_simpletest with Connection Manager #177

Closed DJDevon3 closed 2 months ago

DJDevon3 commented 3 months ago

Updating wifi_simpletest to 9.0 with Connection Manager

Added

Serial output example:

Connecting to WiFi...
Signal Strength: -58
✅ Wifi!
 | GET Text Test: http://wifitest.adafruit.com/testwifi/index.html
 | ✅ GET Response: This is a test of Adafruit WiFi!
If you can read this, its working :)
 | ✂️ Disconnected from http://wifitest.adafruit.com/testwifi/index.html
--------------------------------------------------------------------------------
 | GET Full Response Test: https://httpbin.org/get
 | ✅ Unparsed Full JSON Response: {'url': 'https://httpbin.org/get', 'headers': {'User-Agent': 'Adafruit CircuitPython', 'Host': 'httpbin.org', 'X-Amzn-Trace-Id': 'Root=1-62613a2a-1106178859bf4e2318675309'}, 'args': {}, 'origin': 'xxx.xxx.xxx.xxx'}
 | ✂️ Disconnected from https://httpbin.org/get
--------------------------------------------------------------------------------
 | ✅ JSON 'value' POST Test: https://httpbin.org/post This is an example of a JSON value
 | ✅ JSON 'value' Response: This is an example of a JSON value
 | ✂️ Disconnected from https://httpbin.org/post
--------------------------------------------------------------------------------
 | ✅ JSON 'key':'value' POST Test: https://httpbin.org/post {'Date': 'January 1, 1970'}
 | ✅ JSON 'Key':'Value' Response: {'Date': 'January 1, 1970'}
 | ✂️ Disconnected from https://httpbin.org/post
--------------------------------------------------------------------------------
Finished!