2018-12-03, 10:43 PM
i am updating an app that i wrote that writes a nmea string to a udp port but can not seem to get the data to the port.
I setup kplex with a udp source
but I cant seem to get data to the port?
this is the code snipit
This is the output of the print statement
there is a issue at the end with check sum would that be all that is messing it up?
Is there a way to just echo what ever is sent to the port?
I setup kplex with a udp source
Code:
[udp]
name=wind
direction=in
optional=yes
address=
port=20220
but I cant seem to get data to the port?
this is the code snipit
Code:
import socket
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.sendto(string, ('127.0.0.1', 20220))
sock.close()
This is the output of the print statement
Code:
$ARMWV,7.97,R,0.00,N,A*27a?
$ARMWV,8.09,R,0.00,N,A*2fa?
$ARMWV,7.97,R,0.00,N,A*27a?
$ARMWV,8.00,R,0.00,N,A*26a?
$ARMWV,8.01,R,0.00,N,A*27a?
$ARMWV,7.97,R,0.00,N,A*27a?
Is there a way to just echo what ever is sent to the port?