#include <opend_hanfun_api_fp.h>
◆ Unit()
Commands::Unit::Unit |
( |
uint8_t |
id, |
|
|
HF::IDevice & |
device |
|
) |
| |
|
inline |
◆ alert()
Alert& Commands::Unit::alert |
( |
| ) |
|
|
inline |
Return a reference to the Alert object.
◆ handle()
HF::Common::Result Commands::Unit::handle |
( |
HF::Protocol::Packet & |
packet, |
|
|
HF::Common::ByteArray & |
payload, |
|
|
uint16_t |
offset |
|
) |
| |
Handle device information.
Handle the received device information confirmation.
- Parameters
-
packet | Received HANFUN packet. |
payload | Received payload. |
offset | Offset of the received message. |
- Return values
-
◆ level_control()
Return a reference to the LevelControl object.
◆ on_off()
OnOff& Commands::Unit::on_off |
( |
| ) |
|
|
inline |
Return a reference to the OnOff object.
◆ simple_power_meter()
Return a reference to the SimplePowerMeter object.
The documentation for this struct was generated from the following file: