openD unified API  1.0.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Modules Pages
Commands::Unit Struct Reference

#include <opend_hanfun_api_fp.h>

Inheritance diagram for Commands::Unit:

Public Member Functions

 Unit (uint8_t id, HF::IDevice &device)
 
Alertalert ()
 
LevelControllevel_control ()
 
OnOffon_off ()
 
SimplePowerMetersimple_power_meter ()
 
HF::Common::Result handle (HF::Protocol::Packet &packet, HF::Common::ByteArray &payload, uint16_t offset)
 Handle device information. More...
 

Constructor & Destructor Documentation

◆ Unit()

Commands::Unit::Unit ( uint8_t  id,
HF::IDevice &  device 
)
inline

Member Function Documentation

◆ 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
packetReceived HANFUN packet.
payloadReceived payload.
offsetOffset of the received message.
Return values
Resultof the operation.

◆ level_control()

LevelControl& Commands::Unit::level_control ( )
inline

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()

SimplePowerMeter& Commands::Unit::simple_power_meter ( )
inline

Return a reference to the SimplePowerMeter object.


The documentation for this struct was generated from the following file: