25     : backend_(ctx, 
zmqpp::socket_type::req)
    28     backend_.connect(
"inproc://" + reader_name);
    53         << 
"BLINK" << duration << speed;
    64     assert(rep == 
"OK" || rep == 
"KO");
    73     msg << 
"BEEP" << duration;
 bool beep(int64_t duration=1000)
Beep for a given duration. 
 
zmqpp::socket backend_
A socket to talk to the backend wiegand reader. 
 
const std::string & name() const
Returns the device's name. 
 
bool buzzerOff()
Turn the buzzer off. 
 
bool buzzerOn()
Turn the buzzer on. 
 
Provides facade classes to hardware device implementation. 
 
bool greenLedBlink(int64_t duration=1000, int64_t speed=300)
Make the reader's green led blink. 
 
FWiegandReader(zmqpp::context &ctx, const std::string &reader_ame)
Construct a facade to a wiegand reader; this facade will connect to the reader. 
 
bool greenLedOff()
Turn the reader's green led off. 
 
bool greenLedOn()
Turn the reader's green led on. 
 
bool send_to_backend(zmqpp::message &m)
Send a message to the backend_ wiegand reader and wait for a response.