Arduino

## REMOTEC Class

This class lets you use SX1278 as transmitter for radiocontrolled power socket (like Avidsen or Welleman systems). That is, systems that use HX2262-HX2272 protocol. In this case the SX1278 is in OOK mode. Initialize shield as radiocontrol (Avidsen or Velleman) Set default power to 10dBm (code 2). bool begin(); Ready to transmit commands void setTransmitMode(); Send command (on/off) to Avidsen socket address byte value=0/1/2(open) sock=1/2/3/4/5 on/off=1/0 void avidsenSet(byte address[5],byte socket, byte onoff); Send command (on/off) to Velleman socket address byte value=0/1/2(open) sock=1/2/3 on/off=1/0 void vellemanSet(byte address[7],byte socket, byte onoff); Functions to implement an impulses receiver (but you have to use Arduino pin D3) Set SX1278 in "continuous" mode. I.E. no processing is performed and impulses can be received on pin 3 Impulses can be received and decoded by scanImpulses() function. boolean setScannerMode(); Receive impulses. If nothing is arrived it returns 0. You can put this function in Arduino loop function. If impulses are coming they are showed and decoded. int scanImpulses(); More details in REMOTEC.h file. You can use SX1278 basic functions with prefix SX, because SX1278 class is referenced by external name SX. |  | #### Index #### Functions begin setTransmitMode avidsenSet vellemanSet #### Examples LoRaTxEcho LoRaRxEcho LoRaTxAddressing LoRaRxAddressing RemPwr RemPwrScanner

Reference Home

©Arduino | Edit Page | Page History | Printable View | All Recent Site Changes