57 using SendDataReqCb = std::function<void (
const std::uint8_t* buf, std::size_t bufSize)>;
107 std::unique_ptr<GatewayImpl> m_pImpl;
Interface for Gateway entity.
Definition Gateway.h:27
void setNextTickProgramReqCb(NextTickProgramReqCb &&func)
Set the callback to be invoked when new time measurement is required.
void stop()
Stop the operation of the object.
bool start()
Start the operation of the object.
Gateway()
Default constructor.
std::function< void(const std::uint8_t *buf, std::size_t bufSize)> SendDataReqCb
Type of callback used to request send the serialised ADVERTISE message.
Definition Gateway.h:57
void tick()
Notify the Gateway object about requested time period expiry.
std::function< void(unsigned ms)> NextTickProgramReqCb
Type of the callback used to request time measurement.
Definition Gateway.h:40
void setSendDataReqCb(SendDataReqCb &&func)
Set the callback to be invoked when new ADVERTISE message needs to be broadcasted.
void setAdvertisePeriod(std::uint16_t value)
Set period after which ADVERTISE message needs to be constatly sent.
std::uint8_t getGatewayId() const
Get current gateway numeric ID configuration.
void setGatewayId(std::uint8_t value)
Set gateway numeric ID to be advertised.
std::uint16_t getAdvertisePeriod() const
Get current configuration of the ADVERTISE message period.
Main namespace for all classes / functions of the gateway library.