sketchbook
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
main Namespace Reference

Functions

def do_connect
 
def info
 
def read_sensor
 
def run_server
 

Variables

string CONTENT
 
dictionary aREST
 
tuple led = machine.Pin(1, machine.Pin.OUT)
 

Function Documentation

def main.do_connect ( )
def main.info ( )
def main.read_sensor ( )
def main.run_server ( )

Variable Documentation

dictionary main.aREST
Initial value:
1 = {"DESC": "SHT31 Sensor I2C MicroPython Module",
2  #"DESC": os.uname().machine,
3  #"DATE": os.path.getmtime("main.py"),
4  "DATE": str(machine.RTC().datetime()[:3]), # alternatively use time.localtime()
5  "TIME": str(machine.RTC().datetime()[3:6]), #
6  "IDE": "",
7  "VERSION": os.uname().version,
8  "RELEASE": os.uname().release, # new
9  "FILE": "",
10  "ID": machine.unique_id(),
11  "NAME": os.uname().nodename,
12  #"NAME": os.uname().sysname,
13  "variables": {}}
#define str(s)
Definition: General_Stuff.h:41
string main.CONTENT
Initial value:
1 = """\
2 HTTP/1.0 200 OK
3 Content-Type: text/plain
4 
5 {}
6 """
tuple main.led = machine.Pin(1, machine.Pin.OUT)