BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
GWSensorDataExport.h
1 #pragma once
2 
3 #include <vector>
4 
5 #include <Poco/SharedPtr.h>
6 #include <Poco/JSON/Object.h>
7 
8 #include "gwmessage/GWMessage.h"
9 #include "gwmessage/GWSensorDataConfirm.h"
10 #include "model/SensorData.h"
11 
12 namespace BeeeOn {
13 
47 class GWSensorDataExport : public GWMessage {
48 public:
49  typedef Poco::SharedPtr<GWSensorDataExport> Ptr;
50 
52  GWSensorDataExport(const Poco::JSON::Object::Ptr object);
53 
57  GWSensorDataConfirm::Ptr confirm() const;
58 
59  void setData(const std::vector<SensorData> &data);
60  std::vector<SensorData> data() const;
61 };
62 
63 }
The GWMessage is abstract class representing messages (including their contents), that are being sent...
Definition: GWMessage.h:21
GWSensorDataConfirm::Ptr confirm() const
Creates and returns a corresponding GWSensorDataConfirm message.
Definition: GWSensorDataExport.cpp:20
Represents a message sent by the gateway to the server intended to export measured sensor data...
Definition: GWSensorDataExport.h:47