BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
GWLastValueRequest.h
1 #pragma once
2 
3 #include <Poco/SharedPtr.h>
4 #include <Poco/JSON/Object.h>
5 
6 #include "gwmessage/GWRequest.h"
7 #include "model/DeviceID.h"
8 #include "model/ModuleID.h"
9 
10 namespace BeeeOn {
11 
18 class GWLastValueRequest : public GWRequest {
19 public:
20  typedef Poco::SharedPtr<GWLastValueRequest> Ptr;
21 
23  GWLastValueRequest(const Poco::JSON::Object::Ptr object);
24 
25  void setDeviceID(const DeviceID &id);
26  DeviceID deviceID() const;
27 
28  void setModuleID(const ModuleID &id);
29  ModuleID moduleID() const;
30 
31 protected:
32  GWResponse::Ptr deriveResponse() const override;
33 };
34 
35 }
Abstract class representing a request message. The GWRequest can not be used alone, but it must be inherited by a specific request object.
Definition: GWRequest.h:25
Deprecated. Represents a message sent by the gateway to the server, intended to requests a last known...
Definition: GWLastValueRequest.h:18
Definition: ModuleID.h:12
Definition: DeviceID.h:17