Sub Process_Globals
Public Serial1 As Serial
Private wifi As ESP8266WiFi
End Sub
Private Sub AppStart
Serial1.Initialize(115200)
Log("AppStart")
'example of connecting to a local network
If wifi.Connect2("SSID", "PASSWORD") Then
Log("Connected to network")
Else
Log("Failed to connect to network")
End If
End Sub