File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change 3939
4040# Initialize a requests object with a socket and esp32spi interface
4141socket .set_interface (esp )
42- requests .set_socket (socket )
42+ requests .set_socket (socket , esp )
4343
4444JSON_GET_URL = "http://httpbin.org/get"
4545
5959print ("Response HTTP Status Code: " , response .status_code )
6060print ("-" * 60 )
6161
62- # Read Response, as raw bytes instead of pretty text
63- print ("Raw Response: " , response .content )
64-
6562# Close, delete and collect the response data
6663response .close ()
Original file line number Diff line number Diff line change 4040
4141# Initialize a requests object with a socket and esp32spi interface
4242socket .set_interface (esp )
43- requests .set_socket (socket )
43+ requests .set_socket (socket , esp )
4444
4545TEXT_URL = "http://wifitest.adafruit.com/testwifi/index.html"
4646JSON_GET_URL = "http://httpbin.org/get"
You can’t perform that action at this time.
0 commit comments