rx.to_me only works with the TCP connection
I really like this feature and maybe it is too difficult to implement with the UDP connection in which case it is just a documentation issue.
Comments (5)
-
repo owner -
repo owner - changed component to Network
-
assigned issue to
-
repo owner Tested this and it will work with UDP , but only if you have seen a
STATION.CALLSIGN
packet first (unlikely). We need one of those to determine the station callsign - when using TCP, we can make a request for one viajs8.station.getCallsign()
orjs8.station.getMetadata()
, but we don’t have that benefit with UDP. -
repo owner - changed status to on hold
Putting on hold until JS8Call starts emitting
RX.DIRECTED.ME
messages (hopefully soon). -
reporter I may be off base here but with UDP you should be able to send a
STATION.GET_CALLSIGN
message and then theSTATION.CALLSIGN
reply will come back asynchronously. I think this only needs to happen once when there is a connection to the UDP server. - Log in to comment
There is actually an official
RX.DIRECTED.ME
message type, but it is currently disabled in the source for some reason. I implementedRX.DIRECTED.TO_ME
before I found it, so once the proper event works, it will be removed.If you’re doing manual processing, you can check if a message is to you with:
…which is all the
RX.DIRECTED.TO_ME
emitter is doing. It should work with the UDP connection too, I will have to check that.