BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
GatewayListenCommand.h
1 #pragma once
2 
3 #include <Poco/Timespan.h>
4 
5 #include "core/Command.h"
6 
7 namespace BeeeOn {
8 
9 /*
10  * When the device manager receives this message, it is
11  * set to the status when new devices in the network
12  * can appear. Timeout defines time during which new
13  * devices can occur.
14  */
15 class GatewayListenCommand : public Command {
16 public:
17  typedef Poco::AutoPtr<GatewayListenCommand> Ptr;
18 
19  GatewayListenCommand(const Poco::Timespan &duration);
20 
21  Poco::Timespan duration() const;
22 
23  std::string toString() const override;
24 
25 protected:
27 
28 private:
29  Poco::Timespan m_duration;
30 };
31 
32 }
Definition: Command.h:25
Definition: GatewayListenCommand.h:15
std::string toString() const override
Definition: GatewayListenCommand.cpp:20