Problem with zero length responses (solved)
Problem with zero length responses (solved, I think.) Ther piuco server was getting a [''] from chrome about every minute. This went into the parsing routines that threw up errors. So wrote an if statement to avoid this. Got confused about types eg byes vrs string for a while but think this is now cracked. Have a good stub for working client interface, bensensor4.html,, while on NAME AP network generated by micropython code called bensense3.py. All buttons, radio buttons and the textbox are working. Here's a photo of typical interaction: Note on bottom left a zero length response just leaves a msg but does not enter into parsing. (On 'original' size you can read all the screen text. ---------------below is bensense3.py--------------------- #Worked ok Tue Aug 6 11:04:01 NZST 2024. Can't get other mode to work Will play with this one. import network import time import socket from machine import Pin import parse_request1 #added this frim perplexity # led = Pin...