WiFiClient::operator bool()

名称

WiFiClient::operator bool()

説明

通信相手との接続状態を確認する。

書式

#include <WiFi.h>

int WiFiClient::operator bool();

戻り値

通信相手と接続していればtrue、接続していなければfalse。

使用例

バージョン

Hardware:ESP-WROOM-32
Software:Arduino core for the ESP32 2.0.4

最終更新日

September 4, 2022

inserted by FC2 system