Server sends back simple string from python request
Server sends back simple string from python request
Want, for testing purposes to send back a simple string like "I'm in the led section of code" when the client sends path ending with /led, for instance. So just want to respond with Hello World sometimes rather than switch leds on and off, get temperature and get logs and report.txr.
Below is hello World response. Have sent all the HTTP header stuff because it works but make want to have simpler way of sending a string. This worked.

Comments
Post a Comment