#Region Module Attributes
#FullScreen: False
#IncludeTitle: True
#ApplicationLabel: Esp.wifi
#VersionCode: 1
#VersionName:
#SupportedOrientations: unspecified
#CanInstallToExternalStorage: False
#End Region
Sub process_globals
Dim UDPSocket As UDPSocket
End Sub
Sub Globals
Private Miboton As Button
End Sub
Sub Activity_Create(FirstTime As Boolean)
If FirstTime Then
'puerto 8000 por defecto
UDPSocket1.Initialize("UDP", 0, 8000)
End If
Activity.LoadLayout (1)
End Sub
Sub Miboton_Click
Dim data() As Byte
data = "SET1".GetBytes("UTF8")
Packet.Initialize(data, "192.168.1.1", 7000)
UDPSocket1.Send(Packet)
End Sub
End Sub