BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
ServerLastValueCommand.h
1 #pragma once
2 
3 #include "core/Command.h"
4 #include "model/DeviceID.h"
5 #include "model/ModuleID.h"
6 
7 namespace BeeeOn {
8 
9 /*
10  * Server finds out value from entered DeviceID and ModuleID,
11  * which was last set/sent. The last value saved in database
12  * is the result of this command.
13  */
15 public:
16  typedef Poco::AutoPtr<ServerLastValueCommand> Ptr;
17 
18  ServerLastValueCommand(const DeviceID &deviceID,
19  const ModuleID &moduleID);
20 
21  DeviceID deviceID() const;
22  ModuleID moduleID() const;
23 
24  std::string toString() const override;
25 
26 protected:
28 
29 private:
30  DeviceID m_deviceID;
31  ModuleID m_moduleID;
32 };
33 
34 }
std::string toString() const override
Definition: ServerLastValueCommand.cpp:27
Definition: Command.h:25
Definition: ModuleID.h:12
Definition: ServerLastValueCommand.h:14
Definition: DeviceID.h:17