ESPHome  2023.5.4
Public Member Functions | Protected Attributes
esphome::network::IPAddress Struct Reference

#include <ip_address.h>

Public Member Functions

 IPAddress ()
 
 IPAddress (uint8_t first, uint8_t second, uint8_t third, uint8_t fourth)
 
 IPAddress (uint32_t raw)
 
 operator uint32_t () const
 
std::string str () const
 
bool operator== (const IPAddress &other) const
 
uint8_t operator[] (int index) const
 
uint8_t & operator[] (int index)
 

Protected Attributes

std::array< uint8_t, 4 > addr_
 

Detailed Description

Definition at line 10 of file ip_address.h.

Constructor & Destructor Documentation

◆ IPAddress() [1/3]

esphome::network::IPAddress::IPAddress ( )
inline

Definition at line 12 of file ip_address.h.

◆ IPAddress() [2/3]

esphome::network::IPAddress::IPAddress ( uint8_t  first,
uint8_t  second,
uint8_t  third,
uint8_t  fourth 
)
inline

Definition at line 13 of file ip_address.h.

◆ IPAddress() [3/3]

esphome::network::IPAddress::IPAddress ( uint32_t  raw)
inline

Definition at line 14 of file ip_address.h.

Member Function Documentation

◆ operator uint32_t()

esphome::network::IPAddress::operator uint32_t ( ) const
inline

Definition at line 20 of file ip_address.h.

◆ operator==()

bool esphome::network::IPAddress::operator== ( const IPAddress other) const
inline

Definition at line 33 of file ip_address.h.

◆ operator[]() [1/2]

uint8_t esphome::network::IPAddress::operator[] ( int  index) const
inline

Definition at line 37 of file ip_address.h.

◆ operator[]() [2/2]

uint8_t& esphome::network::IPAddress::operator[] ( int  index)
inline

Definition at line 38 of file ip_address.h.

◆ str()

std::string esphome::network::IPAddress::str ( ) const
inline

Definition at line 28 of file ip_address.h.

Field Documentation

◆ addr_

std::array<uint8_t, 4> esphome::network::IPAddress::addr_
protected

Definition at line 41 of file ip_address.h.


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