Sub Globals
Private msg As MSGe
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("mqtttestclient")
msg.Initialize("192.168.1.106", 51042, "", "")
End Sub
Sub BtnStart_Click
Wait For (msg.startBroker) complete (Success As Boolean)
If Success Then
lblStatus.Text = "Running"
Else
lblStatus.Text = "Couldn't Start Service"
End If
End Sub