Skip to content

WiFiGenericClass

詳細情報

メンバー

WiFiGenericClass()

WiFiGenericClass::WiFiGenericClass()

onEvent()

wifi_event_id_t WiFiGenericClass::onEvent(WiFiEventCb cbEvent, system_event_id_t event=SYSTEM_EVENT_MAX)

引数

  • WiFiEventCb cbEvent WiFiEventCb
  • system_event_id_t event optional filter (WIFI_EVENT_MAX is all events)

戻り値

wifi_event_id_t

onEvent()

wifi_event_id_t WiFiGenericClass::onEvent(WiFiEventFuncCb cbEvent, system_event_id_t event=SYSTEM_EVENT_MAX)

引数

  • WiFiEventFuncCb cbEvent
  • system_event_id_t event

戻り値

wifi_event_id_t

onEvent()

wifi_event_id_t WiFiGenericClass::onEvent(WiFiEventSysCb cbEvent, system_event_id_t event=SYSTEM_EVENT_MAX)

引数

  • WiFiEventSysCb cbEvent
  • system_event_id_t event

戻り値

wifi_event_id_t

removeEvent()

void WiFiGenericClass::removeEvent(WiFiEventCb cbEvent, system_event_id_t event=SYSTEM_EVENT_MAX)

引数

  • WiFiEventCb cbEvent WiFiEventCb
  • system_event_id_t event optional filter (WIFI_EVENT_MAX is all events)

removeEvent()

void WiFiGenericClass::removeEvent(WiFiEventSysCb cbEvent, system_event_id_t event=SYSTEM_EVENT_MAX)

引数

  • WiFiEventSysCb cbEvent
  • system_event_id_t event

removeEvent()

void WiFiGenericClass::removeEvent(wifi_event_id_t id)

引数

  • wifi_event_id_t id

channel()

Return the current channel associated with the network

int32_t WiFiGenericClass::channel(void)

戻り値

int32_t channel (1-13)

persistent()

void WiFiGenericClass::persistent(bool persistent)

引数

  • bool persistent

enableSTA()

bool WiFiGenericClass::enableSTA(bool enable)

引数

  • bool enable bool

戻り値

bool ok

enableAP()

bool WiFiGenericClass::enableAP(bool enable)

引数

  • bool enable bool

戻り値

bool ok

setSleep()

bool WiFiGenericClass::setSleep(bool enable)

引数

  • bool enable bool

戻り値

bool ok

getSleep()

get modem sleep enabled

bool WiFiGenericClass::getSleep()

戻り値

bool true if modem sleep is enabled

setTxPower()

bool WiFiGenericClass::setTxPower(wifi_power_t power)

引数

  • wifi_power_t power enum maximum wifi tx power

戻り値

bool ok

getTxPower()

wifi_power_t WiFiGenericClass::getTxPower()

戻り値

wifi_power_t

getStatusBits()

int WiFiGenericClass::getStatusBits()

戻り値

int

waitStatusBits()

int WiFiGenericClass::waitStatusBits(int bits, uint32_t timeout_ms)

引数

  • int bits
  • uint32_t timeout_ms

戻り値

int

mode()

bool WiFiGenericClass::mode(wifi_mode_t)

引数

  • wifi_mode_t ``

戻り値

bool

getMode()

get WiFi mode

wifi_mode_t WiFiGenericClass::getMode()

戻り値

wifi_mode_t WiFiMode

_eventCallback()

esp_err_t WiFiGenericClass::_eventCallback(void *arg, system_event_t *event)

引数

  • void * arg
  • system_event_t* event

戻り値

esp_err_t

hostByName()

int WiFiGenericClass::hostByName(const char *aHostname, IPAddress &aResult)

引数

  • constchar * aHostname Name to be resolved
  • IPAddress& aResult structure to store the returned IP address

戻り値

int 1 if aIPAddrString was successfully converted to an IP address, else error code

calculateNetworkID()

IPAddress WiFiGenericClass::calculateNetworkID(IPAddress ip, IPAddress subnet)

引数

  • IPAddress ip
  • IPAddress subnet

戻り値

IPAddress

calculateBroadcast()

IPAddress WiFiGenericClass::calculateBroadcast(IPAddress ip, IPAddress subnet)

引数

  • IPAddress ip
  • IPAddress subnet

戻り値

IPAddress

calculateSubnetCIDR()

uint8_t WiFiGenericClass::calculateSubnetCIDR(IPAddress subnetMask)

引数

  • IPAddress subnetMask

戻り値

uint8_t