CarlaeServer is a simple HTTP Server for the PyCom line of WiFi enabled devices
To use, upload HTTPServer to tyour PyCom system and use the http_daemon function in your main.py
Example main.py
From HTTPServer import http_daemon
success = """HTTP/1.1 200 OK
Content-Type: text/html
Connection: close
Server: Carlae"""
def HelloWorld(*args):
return success
path_to_handler = {
"/": HelloWorld
}
http_daemon(ssid="Carlae",
password="c4rl43",
path_to_handler=path_to_handler)