Hi folks. I’m using some RF95 LoRa modules to set up some communications. Things are working wonderfully in testing, but I’m about to start writing some more robust code and I have a question about some documentation I ran across.
It’s for the send method.
Specifically for the length parameter:
[in] data Array of data to be sent
[in] len Number of bytes of data to send specify the maximum time in ms to wait. If 0 (the default) do not wait for CAD before transmitting.
What? Like it makes sense up to the word “send” and then it’s like something got deleted and it just goes off into the rest of some other sentence. Do I really use the length parameter to check the CAD? If I do that then how do I tell it the length of the packet?
I’m hoping someone out there knows how to use this stuff and can tell me better what to do here before I have to go digging through this library. I want to have the radio check the CAD to see if there is traffic before it transmits so I don’t have collisions with packets because in my testing that seems to screw things up. They can’t both be talking at the same time.
But I don’t know if I need to call waitCAD() myself or if that is happening as part of send.