Hello!
I want to use my Desktop-PC as server, to send an NMEA-protocol every two seconds in the internet. After that, I want to use my pockt-pc as client to read this nmea over a gprs-connection. Do I have to use a special serversoftware to manage the ports or what do I have to do? I have no eperience with serverapplications. With the following code, I get the IP from my deskop-pc to connect the client, but then, I flounder.
Code Server:
(NMEA_RMC and NMEA_GGA are NMEA-Strings)
The clientsoftware is correct, I have tested it on a real server..
thanks for help
I want to use my Desktop-PC as server, to send an NMEA-protocol every two seconds in the internet. After that, I want to use my pockt-pc as client to read this nmea over a gprs-connection. Do I have to use a special serversoftware to manage the ports or what do I have to do? I have no eperience with serverapplications. With the following code, I get the IP from my deskop-pc to connect the client, but then, I flounder.
Code Server:
(NMEA_RMC and NMEA_GGA are NMEA-Strings)
B4X:
'Button <server connect>'
Sub Button1_Click
server.New1(55355)
server.Start
client.New1
IP_Server=client.GetIP2(server.HostName)
End Sub
'Button <send NMEA>'
Sub Button2_Click
stream.New1(client.GetStream, False)
timer1.Interval=2000
timer1.enabled=true
End Sub
Sub Timer1_Tick
stream.WriteString(NMEA_RMC & NMEA_GGA & CRLF)
End Sub
The clientsoftware is correct, I have tested it on a real server..
thanks for help