BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
GWGatewayRegister.h
1 #pragma once
2 
3 #include <string>
4 
5 #include <Poco/SharedPtr.h>
6 #include <Poco/JSON/Object.h>
7 #include <Poco/Net/IPAddress.h>
8 
9 #include "gwmessage/GWMessage.h"
10 #include "model/GatewayID.h"
11 
12 namespace BeeeOn {
13 
30 class GWGatewayRegister : public GWMessage {
31 public:
32  typedef Poco::SharedPtr<GWGatewayRegister> Ptr;
33 
35  GWGatewayRegister(const Poco::JSON::Object::Ptr object);
36 
37  void setGatewayID(const GatewayID &gatewayID);
38 
42  GatewayID gatewayID() const;
43 
44  void setVersion(const std::string &version);
45 
49  std::string version() const;
50 
51  void setIPAddress(const Poco::Net::IPAddress &ipAddress);
52 
57  Poco::Net::IPAddress ipAddress() const;
58 };
59 
60 }
Represents message sent by the gateway after connecting to the server. Message is intended to gateway...
Definition: GWGatewayRegister.h:30
The GWMessage is abstract class representing messages (including their contents), that are being sent...
Definition: GWMessage.h:21
Poco::Net::IPAddress ipAddress() const
Definition: GWGatewayRegister.cpp:43
std::string version() const
Definition: GWGatewayRegister.cpp:33
GatewayID gatewayID() const
Definition: GWGatewayRegister.cpp:23
Definition: GatewayID.h:14