#include <opend_hanfunlib_api_pp.h>
Device struct for the node device. 
 
◆ ~Device()
  
  
      
        
          | virtual Device::~Device  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlinevirtual   | 
  
 
 
◆ address()
  
  
      
        
          | void Device::address  | 
          ( | 
          uint16_t  | 
          address | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Address of the node device. 
Set the address of the node device.
- Parameters
 - 
  
    | address | Address to set for the node device.  | 
  
   
 
 
◆ connected()
      
        
          | void Device::connected  | 
          ( | 
          HF::Transport::Link *  | 
          link | ) | 
           | 
        
      
 
Connect the link. 
Connect the link of the node device to the transport endpoint api.
- Parameters
 - 
  
    | link | Link of the node device for the transport endpoint api.  | 
  
   
 
 
◆ instance()
  
  
      
        
          | static Device* Device::instance  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
static   | 
  
 
Create device instance. 
Create a device object for the node device with singleton.
- Return values
 - 
  
    | Device | object singleton instance.  | 
  
   
 
 
◆ is_registered()
      
        
          | bool Device::is_registered  | 
          ( | 
           | ) | 
           | 
        
      
 
Is the node device registered. 
Check if the node device is registered.
- Return values
 - 
  
    | Status | of the registration. True, if the node device is registered.  | 
  
   
 
 
◆ receive()
      
        
          | void Device::receive  | 
          ( | 
          HF::Protocol::Packet &  | 
          packet,  | 
        
        
           | 
           | 
          HF::Common::ByteArray &  | 
          payload,  | 
        
        
           | 
           | 
          size_t  | 
          offset  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Receive message. 
Handle the received HANFUN message.
- Parameters
 - 
  
    | packet | Received packet of the message.  | 
    | payload | Received payload of the message.  | 
    | offset | Offset of the received message.  | 
  
   
 
 
◆ send()
      
        
          | void Device::send  | 
          ( | 
          HF::Protocol::Packet &  | 
          packet | ) | 
           | 
        
      
 
Node device send. 
Send a HANFUN packet.
- Parameters
 - 
  
    | packet | HANFUN packet to send.  | 
  
   
 
 
The documentation for this struct was generated from the following file: