Contains the PIR-1/PIR-4 objects currently available on the system. More...
#include <manager.h>
Public Member Functions | |
| Manager (PIR_Settings *settings) | |
| Constructor. | |
| ~Manager () | |
| Destructor. | |
| bool | init () |
| Initialization, checkDevices is permformed at this point. | |
| bool | sendCCF (const std::string &serial, const std::string ccf, unsigned char bitmask, unsigned char repeats) |
| Sends a CCF code. More... | |
| IPIRPtr | findPIR (const std::string &serial) |
| returns the PIR object for specific serial | |
| void | checkDevices () |
| runs the PIR-1 / PIR-4 device detection routine. New devices may appear at this point. | |
| bool | learn (const std::string &serial) |
| start learning on the specified PIR-1 | |
| bool | cancelLearn (const std::string &serial) |
| cancels learning on the specified PIR-1 | |
| std::string | pirList (PIR::Type type) |
| returns a comma separated list of serial numbers of available PIR's with requested type. | |
Contains the PIR-1/PIR-4 objects currently available on the system.
| bool Manager::sendCCF | ( | const std::string & | serial, |
| const std::string | ccf, | ||
| unsigned char | bitmask, | ||
| unsigned char | repeats | ||
| ) |
Sends a CCF code.
| serial | the serial number of the PIR to use of empty for all attached PIRs. |
| ccf | the pronto CCF to send. |
| bitmask | combination of bits 1 = back of PIR, 2 = front panel for pir-1 |
| bitmask | = 1, 2, 4 or 8 respectively for ports 1,2,3 or 4 on PIR-4 |
| repeats | the number of times to run the repeat part of the CCF |
1.8.6