![]() |
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 Information service. More...
Data Structures | |
struct | HF::Core::DeviceInformation::FriendlyName |
Data type to contain the Friendly name attribute. More... | |
class | HF::Core::DeviceInformation::Base |
Parent class for the Device Information interface implementation. More... | |
struct | HF::Core::DeviceInformation::Server |
Device Information interface : Server side. More... | |
Functions | |
HF::Attributes::IAttribute * | HF::Core::create_attribute (HF::Core::DeviceInformation::Server *server, uint8_t uid) |
Create an attribute object that can hold the attribute with the given uid . More... | |
HF::Attributes::IAttribute * | HF::Core::DeviceInformation::create_attribute (uint8_t uid) |
Create an attribute object that can hold the attribute with the given uid . (HF::Core::DeviceInformation::Server *,uint8_t) More... | |
Protocol::Message * | HF::Core::DeviceInformation::mandatory () |
Create a message that can be used to retrieve the mandatory attributes on a remote device. More... | |
Protocol::Message * | HF::Core::DeviceInformation::all () |
Create a message that can be used to retrieve all the attributes on a remote device. More... | |
Protocol::Message * | HF::Core::DeviceInformation::get (HF::Attributes::UIDS &uids) |
Create a message that can be used to retrieve the attributes with the given uids of the device information interface on a remote device. More... | |
Protocol::Message * | HF::Core::DeviceInformation::get (uint8_t uid) |
Create a message that can be used to retrieve the attribute with the given uid . More... | |
std::ostream & | operator<< (std::ostream &stream, const HF::Core::DeviceInformation::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 Information service.
Enumerator | |
---|---|
CORE_VERSION_ATTR |
(M) |
PROFILE_VERSION_ATTR | HF Profile version attribute. (M) |
INTERFACE_VERSION_ATTR | HF Interface version attribute. (M) |
EXTRA_CAP_ATTR | Extra capabilities attribute. (M) |
MIN_SLEEP_TIME_ATTR | Minimum sleep time attribute. (O) |
ACTUAL_RESP_TIME_ATTR | Actual response time attribute. (O) |
APP_VERSION_ATTR | Hardware version attribute. (O) |
HW_VERSION_ATTR | Hardware version attribute. (O) |
EMC_ATTR | Electronic Manufacture Code attribute. (O) |
DECT_ID_ATTR | RFPI / IPUI (0) |
MANUFACTURER_NAME_ATTR | Manufacture's name attribute. (O) |
LOCATION_ATTR | Location attribute. (O) |
ENABLED_ATTR | Device enabled attribute. (O) |
FRIENDLY_NAME_ATTR | Device friendly name attribute. (O) |
UID_ATTR | Device UID attribute. (O) |
SERIAL_NUMBER_ATTR | Serial number attribute. (O) |
Definition at line 122 of file device_information.h.
Protocol::Message* HF::Core::DeviceInformation::all | ( | ) |
Create a message that can be used to retrieve all the attributes on a remote device.
HF::Attributes::IAttribute* HF::Core::create_attribute | ( | HF::Core::DeviceInformation::Server * | 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::DeviceInformation::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::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::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.
Protocol::Message* HF::Core::DeviceInformation::get | ( | HF::Attributes::UIDS & | uids | ) |
Create a message that can be used to retrieve the attributes with the given uids
of the device information interface on a remote device.
[in] | uids | array containing the attribute uids to retrive from the remote device. |
Protocol::Message* HF::Core::DeviceInformation::get | ( | uint8_t | uid | ) |
Create a message that can be used to retrieve the attribute with the given uid
.
[in] | uid | attribute's uid to retrieve. |
Protocol::Message* HF::Core::DeviceInformation::mandatory | ( | ) |
Create a message that can be used to retrieve the mandatory attributes on a remote device.
std::ostream& operator<< | ( | std::ostream & | stream, |
const HF::Core::DeviceInformation::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