# The simplest possible WEB server printing "Hello World!" # Program written for the IoT course at the University of Cape Coast # This first version does not use picoweb but accesses the socket interface # directly # copyright (c) U. Raich April 2020 # This program is released under GPL import time,sys import network import socket import wifi_connect import uerrno print ("Connecting to the network") wifi_connect.connect() ipaddr=wifi_connect.getIPAddress() html = """
This is the Hello World html page Version 1, served by a WEB server communicating through sockets directly.
The html code is embedded in the server itself. There is no separate HTML file.
The program was written for
the Course on the Internet of Things (IoT) at the
University of Cape Coast (Ghana)
Copyright (c) U. Raich, April 2020,
released under GPL