Thanks. I added the <body> line to the html string and tried again. It did not make any difference. I think that the client.send(html) statement is somehow not working since the Chrome browser is not getting any response from the PICO W. Maybe the 'client' object did not get defined properly? Is there a way I can look at it to see what it is?
In the Chrome browser, after I entered the URL '192.168.1.235/' to access the PICO W, the browser just shows that the site cannot be reached. ctrl-U shows nothing since nothing was received back from the PICO W. But on the PICO side, I do see the query come in with the following string:
b'GET / HTTP/1.1\r\nHost: 192.168.1.235\r\nConnection: keep-alive\r\nCache-Control: max-age=0\r\nUpgrade-Insecure-Requests: 1\r\nDNT: 1\r\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36\r\nAccept: 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\r\nAccept-Encoding: gzip, deflate\r\nAccept-Language: en-US,en;q=0.9,zh-TW;q=0.8,zh;q=0.7\r\n\r\n'
After this, the PICO's code did proceed down to the client.send(html) statement. It just seems like that statement did nothing. I am at a loss on how to debug this.
In the Chrome browser, after I entered the URL '192.168.1.235/' to access the PICO W, the browser just shows that the site cannot be reached. ctrl-U shows nothing since nothing was received back from the PICO W. But on the PICO side, I do see the query come in with the following string:
b'GET / HTTP/1.1\r\nHost: 192.168.1.235\r\nConnection: keep-alive\r\nCache-Control: max-age=0\r\nUpgrade-Insecure-Requests: 1\r\nDNT: 1\r\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36\r\nAccept: 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\r\nAccept-Encoding: gzip, deflate\r\nAccept-Language: en-US,en;q=0.9,zh-TW;q=0.8,zh;q=0.7\r\n\r\n'
After this, the PICO's code did proceed down to the client.send(html) statement. It just seems like that statement did nothing. I am at a loss on how to debug this.
Statistics: Posted by nanowizz — Thu Dec 14, 2023 6:17 am