mDot Peer to Peer communication
- This topic has 2 replies, 2 voices, and was last updated 7 years ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Tagged: Peer to Peer
Hi everyone,
I’ve been successfully let mDot and Conduit talk to each other and get peer to peer communication work on 3 mDots(2 sender node and 1 receiver node). However I don’t know how to grab the rx data out in peer to peer mode. Seems like the mDot can print out the rx data to the serial port automatically but I can’t get access the rx_data in code. Is there a way that I can access the rx_data in code and do something with it on mDot? I used dot->recv(buffer) but looks like nothing gets filled into the buffer.
Thanks in advance.
OK, the problem is caused by running 3 nodes at the same time. I could read the received data from serial port but when access it from code, it becomes empty.
Add a custom radio event handler to accept the received packets.
Here is an example. The handler code is at the top of main.cpp file.
https://os.mbed.com/teams/MultiTech/code/mDot_LoRa_CLASS_C_P2P/