4 years, 6 months ago.

mDot receive port number

I am using libmDot-mbed5 to receive data from server in my mDot/xDots, with dot->recv(rx_data) . How can I read the port number of the received packet? I can see it in the logs, but I can´t find a way to read it from my code:

[INFO] RxDone 17 bytes RSSI: -48 dB SNR: 62 cB
[INFO] Packet for aade0011
[INFO] Packet Received : Port: 123 FCnt: 00000002 Size: 4 ACK: 0 DUP: 0

Thanks in advance!

Be the first to answer this question.