ESP3D  3.0
Firmware for ESP boards connected to 3D Printer
NetConfig Class Reference

#include <netconfig.h>

Public Member Functions

 NetConfig ()
 
 ~NetConfig ()
 

Static Public Member Functions

static bool isValidIP (const char *string)
 
static bool isHostnameValid (const char *hostname)
 
static uint32_t IP_int_from_string (const char *s)
 
static String IP_string_from_int (uint32_t ip_int)
 
static bool isIPModeDHCP (uint8_t mode)
 
static bool isDHCPServer (uint8_t mode)
 
static const char * hostname (bool fromsettings=false)
 
static char * mac2str (uint8_t mac[8])
 
static bool begin ()
 
static void end ()
 
static void handle ()
 
static uint8_t getMode ()
 
static bool started ()
 
static String localIP ()
 

Detailed Description

Definition at line 57 of file netconfig.h.

Constructor & Destructor Documentation

◆ NetConfig()

NetConfig::NetConfig ( )

Definition at line 50 of file netconfig.cpp.

◆ ~NetConfig()

NetConfig::~NetConfig ( )

Definition at line 54 of file netconfig.cpp.

Member Function Documentation

◆ begin()

bool NetConfig::begin ( )
static

begin WiFi setup

Definition at line 215 of file netconfig.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ end()

void NetConfig::end ( )
static

End WiFi

Definition at line 308 of file netconfig.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getMode()

uint8_t NetConfig::getMode ( )
static

Definition at line 207 of file netconfig.cpp.

Here is the caller graph for this function:

◆ handle()

void NetConfig::handle ( )
static

Handle not critical actions that must be done in sync environement

Definition at line 361 of file netconfig.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ hostname()

const char * NetConfig::hostname ( bool  fromsettings = false)
static

Definition at line 331 of file netconfig.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IP_int_from_string()

uint32_t NetConfig::IP_int_from_string ( const char *  s)
static

Helper to convert IP string to int

Definition at line 73 of file netconfig.cpp.

◆ IP_string_from_int()

String NetConfig::IP_string_from_int ( uint32_t  ip_int)
static

Helper to convert int to IP string

Definition at line 86 of file netconfig.cpp.

◆ isDHCPServer()

bool NetConfig::isDHCPServer ( uint8_t  mode)
static

Definition at line 400 of file netconfig.cpp.

Here is the caller graph for this function:

◆ isHostnameValid()

bool NetConfig::isHostnameValid ( const char *  hostname)
static

Check if Hostname string is valid

Definition at line 96 of file netconfig.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isIPModeDHCP()

bool NetConfig::isIPModeDHCP ( uint8_t  mode)
static

Definition at line 385 of file netconfig.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isValidIP()

bool NetConfig::isValidIP ( const char *  string)
static

Check if IP string is valid

Definition at line 144 of file netconfig.cpp.

Here is the caller graph for this function:

◆ localIP()

String NetConfig::localIP ( )
static

Get IP string what ever is enabled

Definition at line 119 of file netconfig.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mac2str()

char * NetConfig::mac2str ( uint8_t  mac[8])
static

Definition at line 60 of file netconfig.cpp.

Here is the caller graph for this function:

◆ started()

static bool NetConfig::started ( )
inlinestatic

Definition at line 74 of file netconfig.h.

Here is the caller graph for this function:

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