7 #include <Poco/Timespan.h>
9 #include "model/ModuleType.h"
10 #include "model/RefreshTime.h"
11 #include "model/SensorValue.h"
12 #include "jablotron/JablotronReport.h"
41 const uint32_t firstAddress;
42 const uint32_t lastAddress;
45 const std::list<ModuleType> modules;
47 operator bool()
const;
48 bool operator !()
const;
49 std::string name()
const;
76 const unsigned int slot,
77 const uint32_t address,
80 unsigned int slot()
const;
81 uint32_t address()
const;
82 const Info &info()
const;
90 std::string toString()
const;
93 const unsigned int m_slot;
94 const uint32_t m_address;
97 static const std::vector<Info> GADGETS;
Report with data coming from a sensor. Each report comes in format [AAAAAAAA] TYPE PAYLOAD...
Definition: JablotronReport.h:13
RefreshTime represents time of refreshing values from sensors. E.g. sensors are polled periodically o...
Definition: RefreshTime.h:24
std::vector< SensorValue > parse(const JablotronReport &report) const
Parses the data payload of the given report and converts it into BeeeOn-specific data format...
Definition: JablotronGadget.cpp:129
static uint32_t secondaryAddress(const uint32_t address)
Definition: JablotronGadget.cpp:213
Information about a Jablotron Gadget device type. Gadget types are distinguished by their address...
Definition: JablotronGadget.h:40
static uint32_t primaryAddress(const uint32_t address)
Definition: JablotronGadget.cpp:205
bool isSecondary() const
Definition: JablotronGadget.cpp:246
Representation of a real Jablotron Gadget registered inside the associated Turris Dongle...
Definition: JablotronGadget.h:20
static Info resolve(const uint32_t address)
Definition: JablotronGadget.cpp:113