This module contains the common definitions for the Attribute Reporting service implementation.
More...
|
enum | HF::Core::AttributeReporting::CMD {
HF::Core::AttributeReporting::PERIODIC_REPORT_CMD = 0x01,
HF::Core::AttributeReporting::EVENT_REPORT_CMD = 0x02,
HF::Core::AttributeReporting::CREATE_PERIODIC_CMD = 0x01,
HF::Core::AttributeReporting::CREATE_EVENT_CMD = 0x02,
HF::Core::AttributeReporting::ADD_PERIODIC_ENTRY_CMD = 0x03,
HF::Core::AttributeReporting::ADD_EVENT_ENTRY_CMD = 0x04,
HF::Core::AttributeReporting::DELETE_REPORT_CMD = 0x05,
HF::Core::AttributeReporting::GET_PERIODIC_ENTRIES = 0x06,
HF::Core::AttributeReporting::GET_EVENT_ENTRIES = 0x07,
HF::Core::AttributeReporting::UPDATE_INTERVAL_CMD = 0x08
} |
| Commands. More...
|
|
enum | HF::Core::AttributeReporting::Attributes { HF::Core::AttributeReporting::REPORT_COUNT_ATTR = 0x01,
HF::Core::AttributeReporting::PERIODIC_REPORT_COUNT_ATTR = 0x02,
HF::Core::AttributeReporting::EVENT_REPORT_COUNT_ATTR = 0x03
} |
| Attributes. More...
|
|
enum | HF::Core::AttributeReporting::Type { HF::Core::AttributeReporting::PERIODIC = 0x00,
HF::Core::AttributeReporting::EVENT = 0x01
} |
| Types of reports send from the server to the client. More...
|
|
This module contains the common definitions for the Attribute Reporting service implementation.
◆ Attributes
Attributes.
Enumerator |
---|
REPORT_COUNT_ATTR | Number of report entries attribute.
|
PERIODIC_REPORT_COUNT_ATTR | Number of periodic report entries attribute.
|
EVENT_REPORT_COUNT_ATTR | Number of event report entries attribute.
|
Definition at line 90 of file attribute_reporting.h.
Number of event report entries attribute.
Number of periodic report entries attribute.
Number of report entries attribute.
◆ CMD
Commands.
Enumerator |
---|
PERIODIC_REPORT_CMD | Periodic Report.
|
EVENT_REPORT_CMD | Event Report.
|
CREATE_PERIODIC_CMD | Create Periodic Report.
|
CREATE_EVENT_CMD | Create Event Report.
|
ADD_PERIODIC_ENTRY_CMD | Add periodic report entry.
|
ADD_EVENT_ENTRY_CMD | Add event report entry.
|
DELETE_REPORT_CMD | Delete report.
|
GET_PERIODIC_ENTRIES | Get periodic entries.
|
GET_EVENT_ENTRIES | Get event entries.
|
UPDATE_INTERVAL_CMD | Update the interval of an existent report.
|
Definition at line 74 of file attribute_reporting.h.
Update the interval of an existent report.
Add periodic report entry.
◆ Type
◆ add()
Add the periodic entries from start
to end
into the rule with the given report
reference.
Add the event entries from start
to end
into the rule with the given report
reference.
- Parameters
-
[in] | report | report reference |
[in] | begin | iterator to the start of the periodic entries to add. |
[in] | end | iterator to the end of the periodic entries to add. |
- Returns
- pointer to a message indicating the result of the operation to be sent to the requesting device.
- Parameters
-
[in] | report | report reference |
[in] | begin | iterator to the start of the event entries to add. |
[in] | end | iterator to the end of the event entries to add. |
- Returns
- pointer to a message indicating the result of the operation to be sent to the requesting device.
◆ create() [1/2]
Create a new attribute reporting event rule for the device with the given address.
- Parameters
-
[in] | destination | device address the rule should be created for. |
- Returns
- pointer to a message indicating the result of the operation to be sent to the requesting device.
◆ create() [2/2]
Create a new attribute reporting periodic rule for the device with the given address and the given interval
.
- Parameters
-
[in] | destination | device address the rule should be created for. |
[in] | interval | time interval in seconds for the periodic rule. |
- Returns
- pointer to a message indicating the result of the operation to be sent to the requesting device.
◆ create_attribute()
◆ destroy() [1/2]
◆ destroy() [2/2]
Remove the rule for the given report
reference.
- Parameters
-
[in] | report | report reference to remove the rule for. |
- Returns
- pointer to a message indicating the result of the operation to be sent to the requesting device.
◆ update()
Change the Update Interval for the specified report.
- Parameters
-
[in] | report | Report reference |
[in] | new_interval | New updata interval. |
- Returns
- pointer to a message indicating the result of the operation to be sent to the requesting device.