18 class connection_private;
56 template<
typename data_type>
67 template<
typename data_type>
100 template<
typename data_type>
140 connection_private * connection_private_pointer;
This class represents the configuration of the knx connection.
Definition: config.hpp:19
This class handles the ip connection(s) to the knx gateway.
Definition: connection.hpp:24
bool get(knx::group group, typename data_type::major_type::set_type &data)
central function to get any knx group value from the bus
bool wait_until_connected()
Waiting for connection to be established.
void set(knx::group group, typename data_type::major_type::set_type data)
central function to set any knx group value on the bus
~connection()
simple destructor
connection(const knx::config &config)
creates the connection with given config
void stop()
non-blocking stop of the background thread
void start()
blocking start of the connection background thread
bool listen(knx::group group, std::function< void(typename data_type::major_type::set_type &) > callback)
central function to continously get any knx group value from the bus
bool set_heartbeat_callback(std::function< void()> callback)
set a callback which is notified as soon as a heartbeat response is received.
This class represents a KNX group address which might be either 3 compnent "a/b/c" or 2 component "a/...
Definition: group.hpp:17
separated namespace to embed all libknx related classes
Definition: config.hpp:13