MQTTDevice.hpp
1 #pragma once
2 #include <Device/Protocol/DeviceInterface.hpp>
3 
4 #include <ossia/network/zeroconf/zeroconf.hpp>
5 
6 namespace Protocols
7 {
9 {
10 public:
11  MQTTDevice(
12  const Device::DeviceSettings& stngs, const ossia::net::network_context_ptr& ctx);
13 
14  bool reconnect() override;
15  void recreate(const Device::Node&) final override;
16 
17  bool isLearning() const final override;
18  void setLearning(bool) final override;
19 
20 private:
21  const ossia::net::network_context_ptr& m_ctx;
22 };
23 }
Definition: DeviceInterface.hpp:185
Definition: MQTTDevice.hpp:9
Definition: DeviceSettings.hpp:20