MCPcopy Create free account
hub / github.com/PricelessToolkit/MailBoxGuard / receive

Method receive

Code/Arduino_libraries/LoRa/LoRa.cpp:398–412  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

396}
397
398void LoRaClass::receive(int size)
399{
400
401 writeRegister(REG_DIO_MAPPING_1, 0x00); // DIO0 => RXDONE
402
403 if (size > 0) {
404 implicitHeaderMode();
405
406 writeRegister(REG_PAYLOAD_LENGTH, size & 0xff);
407 } else {
408 explicitHeaderMode();
409 }
410
411 writeRegister(REG_OP_MODE, MODE_LONG_RANGE_MODE | MODE_RX_CONTINUOUS);
412}
413#endif
414
415void LoRaClass::idle()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected