BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
GWListenRequest.h
1 #pragma once
2 
3 #include <Poco/SharedPtr.h>
4 #include <Poco/Timespan.h>
5 #include <Poco/JSON/Object.h>
6 
7 #include "gwmessage/GWRequest.h"
8 
9 namespace BeeeOn {
10 
28 class GWListenRequest : public GWRequest {
29 public:
30  typedef Poco::SharedPtr<GWListenRequest> Ptr;
31 
33  GWListenRequest(const Poco::JSON::Object::Ptr object);
34 
35  void setDuration(const Poco::Timespan &duration);
36  Poco::Timespan duration() const;
37 };
38 
39 }
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
Represents a message sent by the server to the gateway, intended to start &#39;listening mode&#39; on the gat...
Definition: GWListenRequest.h:28