#Region Project Attributes
#AutoFlushLogs: True
#CheckArrayBounds: True
#StackBufferSize: 300
#End Region
Sub Process_Globals
'These global variables will be declared once when the application starts.
'Public variables can be accessed from all modules.
Public Serial1 As Serial
Public ghome As ESP8266ghn
Public wifi As ESP8266WiFi
Public result As Byte
End Sub
Private Sub AppStart
Serial1.Initialize(115200)
Log("AppStart")
wifi.Connect2("<yourssid>","<yourpassword>")
result = ghome.notify("Büro","de",30000,"das ist ein test",False)
If result<>"success" Then
Log ("Error: ",result)
End If
Delay(2000)' wait for google home become ready
result=ghome.playmp3("Büro",30000,"http://siam-online.de/bell.mp3",False)
If result<>"success" Then
Log ("Error: ",result)
End If
Log ("Done.")
End Sub