Replies: 1 comment
-
Please ignore. I figured it out. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all, I am trying to serve a basic web server to download sensor data files and to flush the old data through get requests.
I can see the data getting processed as you can tell from the numerous print statements but the client doesn't receive the page.
Not sure what I am doing wrong. Any help greatly appreciated.
And when I connect to the esp32 and request the ?get=list I am getting following print out.
MPY: soft reboot
Warning: I2C(-1, ...) is deprecated, use SoftI2C(...) instead
('192.168.4.1', '255.255.255.0', '192.168.4.1', '0.0.0.0')
proc= GET / HTTP/1.1
Connection: close
User-Agent: Dalvik/2.1.0 (Linux; U; Android 14; SM-S908U1 Build/UP1A.231005.007)
Host: 192.168.4.1
Accept-Encoding: gzip
cmd= {}
sending out None
proc= GET /?get=list HTTP/1.1
Host: 192.168.4.1
Connection: keep-alive
Cache-Control: max-age=0
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Mobile Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.7
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
xgetting GET /?get=list HTTP/1.1
cmd= {'get': 'list HTTP/1.1'}
sending out None
proc= GET /favicon.ico HTTP/1.1
Host: 192.168.4.1
Connection: keep-alive
User-Agent: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Mobile Safari/537.36
Accept: image/avif,image/webp,image/apng,image/svg+xml,image/,/*;q=0.8
Referer: http://192.168.4.1/?get=list
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
xgetting Referer: http://192.168.4.1/?get=list
cmd= {'get': 'list'}
sending ['2000_1_1.txt']
res= 2000_1_1.txt
sending out 2000_1_1.txt
I tried with and without setblocking, with and without time.sleep, tried send and sendall.
I am lost.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions