![]() |
HAN-FUN API
1.5.3
This project provides the common implementation of ULE Alliance's HAN-FUN application protocol.
|
This module contains the classes that implement the Device Management service. More...
Enumerations | |
enum | HF::Core::DeviceManagement::CMD { HF::Core::DeviceManagement::REGISTER_CMD = 0x01, HF::Core::DeviceManagement::DEREGISTER_CMD = 0x02, HF::Core::DeviceManagement::START_SESSION_CMD = 0x03, HF::Core::DeviceManagement::END_SESSION_CMD = 0x04, HF::Core::DeviceManagement::GET_ENTRIES_CMD = 0x05 } |
Commands. More... | |
enum | HF::Core::DeviceManagement::Attributes { HF::Core::DeviceManagement::NUMBER_OF_ENTRIES_ATTR = 0x01 } |
Attributes. More... | |
Functions | |
HF::Attributes::IAttribute * | HF::Core::create_attribute (HF::Core::DeviceManagement::IServer *server, uint8_t uid) |
Create an attribute object that can hold the attribute with the given uid . More... | |
HF::Attributes::IAttribute * | HF::Core::DeviceManagement::create_attribute (uint8_t uid) |
Create an attribute object that can hold the attribute with the given uid . (HF::Core::DeviceManagement::Server *,uint8_t) More... | |
std::ostream & | operator<< (std::ostream &stream, const HF::Core::DeviceManagement::CMD command) |
Convert the given command into a string and write it to the given stream . More... | |
std::ostream & | operator<< (std::ostream &stream, const HF::Core::DeviceManagement::Attributes attribute) |
Convert the given attribute into a string and write it to the given stream . More... | |
This module contains the classes that implement the Device Management service.
Enumerator | |
---|---|
NUMBER_OF_ENTRIES_ATTR | Number of entries attribute. |
Definition at line 94 of file device_management.h.
Commands.
Definition at line 83 of file device_management.h.
HF::Attributes::IAttribute* HF::Core::create_attribute | ( | HF::Core::DeviceManagement::IServer * | server, |
uint8_t | uid | ||
) |
Create an attribute object that can hold the attribute with the given uid
.
If server
is not equal to nullptr
then initialize it with the current value.
[in] | server | pointer to the object to read the current value from. |
[in] | uid | attribute's UID to create the attribute object for. |
nullptr
if the attribute UID does not exist.
|
inline |
Create an attribute object that can hold the attribute with the given uid
. (HF::Core::DeviceManagement::Server *,uint8_t)
[in] | uid | attribute UID to create the attribute object for. |
pointer | to an attribute object |
<tt>nullptr</tt> | if the attribute UID does not exist. |
Create an attribute object that can hold the attribute with the given uid
. (HF::Core::DeviceManagement::Server *,uint8_t)
Create an attribute object that can hold the attribute with the given uid
. (HF::Core::DeviceInformation::Server *,uint8_t)
Create an attribute object that can hold the attribute with the given uid
. (HF::Core::BindManagement::Server *,uint8_t)
Create an attribute object that can hold the attribute with the given uid
. (HF::Core::BatchProgramManagement::IServer *,uint8_t)
Create an attribute object that can hold the attribute with the given uid
. (HF::Core::AttributeReporting::Server *,uint8_t)
[in] | uid | attribute UID to create the attribute object for. |
nullptr
if the attribute UID does not exist.Create an attribute object that can hold the attribute with the given uid
. (HF::Core::DeviceManagement::Server *,uint8_t)
Create an attribute object that can hold the attribute with the given uid
. (HF::Core::DeviceInformation::Server *,uint8_t)
Create an attribute object that can hold the attribute with the given uid
. (HF::Core::BindManagement::Server *,uint8_t)
Create an attribute object that can hold the attribute with the given uid
. (HF::Core::BatchProgramManagement::IServer *,uint8_t)
Create an attribute object that can hold the attribute with the given uid
. (HF::Core::AttributeReporting::Server *,uint8_t)
[in] | uid | attribute UID to create the attribute object for. |
pointer | to an attribute object |
<tt>nullptr</tt> | if the attribute UID does not exist. |
Definition at line 108 of file simple_humidity.h.
std::ostream& operator<< | ( | std::ostream & | stream, |
const HF::Core::DeviceManagement::CMD | command | ||
) |
Convert the given command
into a string and write it to the given stream
.
[in] | stream | out stream to write the string to. |
[in] | command | role value to convert to a string. |
stream
std::ostream& operator<< | ( | std::ostream & | stream, |
const HF::Core::DeviceManagement::Attributes | attribute | ||
) |
Convert the given attribute
into a string and write it to the given stream
.
[in] | stream | out stream to write the string to. |
[in] | attribute | attribute value to convert to a string. |
stream