Fonctions membres publiques statiques | Amis | Liste de tous les membres
Référence de la classe EspDrv

#include <EspDrv.h>

Fonctions membres publiques statiques

static bool wifiDriverInit (Stream *espSerial)
 
static bool wifiDriverInitSerial (Stream *espSerial)
 
static bool wifiConnect (const char *ssid, const char *passphrase)
 
static bool wifiStartAP (const char *ssid, const char *pwd, uint8_t channel, uint8_t enc, uint8_t espMode)
 
static void config (IPAddress local_ip)
 
static void configAP (IPAddress local_ip)
 
static int8_t disconnect ()
 
static uint8_t getConnectionStatus ()
 
static uint8_t * getMacAddress ()
 
static void setMacAddress (uint8_t *mac)
 
static void getIpAddress (IPAddress &ip)
 
static void getIpAddressAP (IPAddress &ip)
 
static bool getNetmask (IPAddress &mask)
 
static bool getGateway (IPAddress &mask)
 
static char * getCurrentSSID ()
 
static uint8_t * getCurrentBSSID ()
 
static int32_t getCurrentRSSI ()
 
static uint8_t getScanNetworks ()
 
static char * getSSIDNetoworks (uint8_t networkItem)
 
static int32_t getRSSINetoworks (uint8_t networkItem)
 
static uint8_t getEncTypeNetowrks (uint8_t networkItem)
 
static char * getFwVersion ()
 
static int getMode ()
 
static bool startServer (uint16_t port, uint8_t sock)
 
static bool startClient (const char *host, uint16_t port, uint8_t sock, uint8_t protMode)
 
static void stopClient (uint8_t sock)
 
static uint8_t getServerState (uint8_t sock)
 
static uint8_t getClientState (uint8_t sock)
 
static bool getData (uint8_t connId, uint8_t *data, bool peek, bool *connClose)
 
static int getDataBuf (uint8_t connId, uint8_t *buf, uint16_t bufSize)
 
static bool sendData (uint8_t sock, const uint8_t *data, uint16_t len)
 
static bool sendData (uint8_t sock, const __FlashStringHelper *data, uint16_t len, bool appendCrLf=false)
 
static bool sendDataUdp (uint8_t sock, const char *host, uint16_t port, const uint8_t *data, uint16_t len)
 
static uint16_t availData (uint8_t connId)
 
static bool ping (const char *host)
 
static void reset ()
 
static void init ()
 
static void getRemoteIpAddress (IPAddress &ip)
 
static uint16_t getRemotePort ()
 
static void setReadUntilWaitCb (void(*cb)(bool status))
 

Amis

class WiFiEsp
 
class WiFiEspServer
 
class WiFiEspClient
 
class WiFiEspUdp
 

Documentation des fonctions membres

◆ availData()

uint16_t EspDrv::availData ( uint8_t  connId)
static

◆ config()

void EspDrv::config ( IPAddress  local_ip)
static

◆ configAP()

void EspDrv::configAP ( IPAddress  local_ip)
static

◆ disconnect()

int8_t EspDrv::disconnect ( )
static

◆ getClientState()

uint8_t EspDrv::getClientState ( uint8_t  sock)
static

◆ getConnectionStatus()

uint8_t EspDrv::getConnectionStatus ( )
static

◆ getCurrentBSSID()

uint8_t * EspDrv::getCurrentBSSID ( )
static

◆ getCurrentRSSI()

int32_t EspDrv::getCurrentRSSI ( )
static

◆ getCurrentSSID()

char * EspDrv::getCurrentSSID ( )
static

◆ getData()

bool EspDrv::getData ( uint8_t  connId,
uint8_t *  data,
bool  peek,
bool *  connClose 
)
static

◆ getDataBuf()

int EspDrv::getDataBuf ( uint8_t  connId,
uint8_t *  buf,
uint16_t  bufSize 
)
static

Receive the data into a buffer. It reads up to bufSize bytes.

Renvoie
received data size for success else -1.

◆ getEncTypeNetowrks()

uint8_t EspDrv::getEncTypeNetowrks ( uint8_t  networkItem)
static

◆ getFwVersion()

char * EspDrv::getFwVersion ( )
static

◆ getGateway()

bool EspDrv::getGateway ( IPAddress mask)
static

◆ getIpAddress()

void EspDrv::getIpAddress ( IPAddress ip)
static

◆ getIpAddressAP()

void EspDrv::getIpAddressAP ( IPAddress ip)
static

◆ getMacAddress()

uint8_t * EspDrv::getMacAddress ( )
static

◆ getMode()

int EspDrv::getMode ( )
static

◆ getNetmask()

bool EspDrv::getNetmask ( IPAddress mask)
static

◆ getRemoteIpAddress()

void EspDrv::getRemoteIpAddress ( IPAddress ip)
static

◆ getRemotePort()

uint16_t EspDrv::getRemotePort ( )
static

◆ getRSSINetoworks()

int32_t EspDrv::getRSSINetoworks ( uint8_t  networkItem)
static

◆ getScanNetworks()

uint8_t EspDrv::getScanNetworks ( )
static

◆ getServerState()

uint8_t EspDrv::getServerState ( uint8_t  sock)
static

◆ getSSIDNetoworks()

char * EspDrv::getSSIDNetoworks ( uint8_t  networkItem)
static

◆ init()

void EspDrv::init ( )
static

◆ ping()

bool EspDrv::ping ( const char *  host)
static

◆ reset()

void EspDrv::reset ( )
static

◆ sendData() [1/2]

bool EspDrv::sendData ( uint8_t  sock,
const uint8_t *  data,
uint16_t  len 
)
static

◆ sendData() [2/2]

bool EspDrv::sendData ( uint8_t  sock,
const __FlashStringHelper *  data,
uint16_t  len,
bool  appendCrLf = false 
)
static

◆ sendDataUdp()

bool EspDrv::sendDataUdp ( uint8_t  sock,
const char *  host,
uint16_t  port,
const uint8_t *  data,
uint16_t  len 
)
static

◆ setMacAddress()

void EspDrv::setMacAddress ( uint8_t *  mac)
static

◆ setReadUntilWaitCb()

void EspDrv::setReadUntilWaitCb ( void(*)(bool status)  cb)
static

◆ startClient()

bool EspDrv::startClient ( const char *  host,
uint16_t  port,
uint8_t  sock,
uint8_t  protMode 
)
static

◆ startServer()

bool EspDrv::startServer ( uint16_t  port,
uint8_t  sock 
)
static

◆ stopClient()

void EspDrv::stopClient ( uint8_t  sock)
static

◆ wifiConnect()

bool EspDrv::wifiConnect ( const char *  ssid,
const char *  passphrase 
)
static

◆ wifiDriverInit()

bool EspDrv::wifiDriverInit ( Stream espSerial)
static

◆ wifiDriverInitSerial()

bool EspDrv::wifiDriverInitSerial ( Stream espSerial)
static

◆ wifiStartAP()

bool EspDrv::wifiStartAP ( const char *  ssid,
const char *  pwd,
uint8_t  channel,
uint8_t  enc,
uint8_t  espMode 
)
static

Documentation des fonctions amies et associées

◆ WiFiEsp

friend class WiFiEsp
friend

◆ WiFiEspClient

friend class WiFiEspClient
friend

◆ WiFiEspServer

friend class WiFiEspServer
friend

◆ WiFiEspUdp

friend class WiFiEspUdp
friend