File tree 2 files changed +2
-5
lines changed 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change 39
39
40
40
# Initialize a requests object with a socket and esp32spi interface
41
41
socket .set_interface (esp )
42
- requests .set_socket (socket )
42
+ requests .set_socket (socket , esp )
43
43
44
44
JSON_GET_URL = "http://httpbin.org/get"
45
45
59
59
print ("Response HTTP Status Code: " , response .status_code )
60
60
print ("-" * 60 )
61
61
62
- # Read Response, as raw bytes instead of pretty text
63
- print ("Raw Response: " , response .content )
64
-
65
62
# Close, delete and collect the response data
66
63
response .close ()
Original file line number Diff line number Diff line change 40
40
41
41
# Initialize a requests object with a socket and esp32spi interface
42
42
socket .set_interface (esp )
43
- requests .set_socket (socket )
43
+ requests .set_socket (socket , esp )
44
44
45
45
TEXT_URL = "http://wifitest.adafruit.com/testwifi/index.html"
46
46
JSON_GET_URL = "http://httpbin.org/get"
You can’t perform that action at this time.
0 commit comments