ESPHome 2025.7.1
Loading...
Searching...
No Matches
esphome::Device Class Reference

#include <device.h>

Public Member Functions

void set_device_id (uint32_t device_id)
 
uint32_t get_device_id ()
 
void set_name (const char *name)
 
const char * get_name ()
 
void set_area_id (uint32_t area_id)
 
uint32_t get_area_id ()
 

Protected Attributes

uint32_t device_id_ {}
 
uint32_t area_id_ {}
 
const char * name_ = ""
 

Detailed Description

Definition at line 5 of file device.h.

Member Function Documentation

◆ get_area_id()

uint32_t esphome::Device::get_area_id ( )
inline

Definition at line 12 of file device.h.

◆ get_device_id()

uint32_t esphome::Device::get_device_id ( )
inline

Definition at line 8 of file device.h.

◆ get_name()

const char * esphome::Device::get_name ( )
inline

Definition at line 10 of file device.h.

◆ set_area_id()

void esphome::Device::set_area_id ( uint32_t area_id)
inline

Definition at line 11 of file device.h.

◆ set_device_id()

void esphome::Device::set_device_id ( uint32_t device_id)
inline

Definition at line 7 of file device.h.

◆ set_name()

void esphome::Device::set_name ( const char * name)
inline

Definition at line 9 of file device.h.

Field Documentation

◆ area_id_

uint32_t esphome::Device::area_id_ {}
protected

Definition at line 16 of file device.h.

◆ device_id_

uint32_t esphome::Device::device_id_ {}
protected

Definition at line 15 of file device.h.

◆ name_

const char* esphome::Device::name_ = ""
protected

Definition at line 17 of file device.h.


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