|
Leosac
0.8.0
Open Source Access Control
|
Go to the documentation of this file.
23 #include <zmqpp/zmqpp.hpp>
46 FWiegandReader(zmqpp::context &ctx,
const std::string &reader_name);
67 bool greenLedBlink(int64_t duration = 1000, int64_t speed = 300);
72 bool beep(int64_t duration = 1000);
87 const std::string &
name()
const;
zmqpp::socket backend_
A socket to talk to the backend wiegand reader.
FWiegandReader & operator=(const FWiegandReader &)=delete
const std::string & name() const
Returns the device's name.
bool send_to_backend(zmqpp::message &m)
Send a message to the backend_ wiegand reader and wait for a response.
Facade object for a Wiegand Reader device.
bool beep(int64_t duration=1000)
Beep for a given duration.
This is the header file for a generated source file, GitSHA1.cpp.
bool buzzerOn()
Turn the buzzer on.
~FWiegandReader()=default
bool buzzerOff()
Turn the buzzer off.
bool greenLedOff()
Turn the reader's green led off.
FWiegandReader(zmqpp::context &ctx, const std::string &reader_name)
Construct a facade to a wiegand reader; this facade will connect to the reader.
bool greenLedOn()
Turn the reader's green led on.
bool greenLedBlink(int64_t duration=1000, int64_t speed=300)
Make the reader's green led blink.