WebServer::send()
名称
WebServer::send()
説明
クライアントにレスポンスを送信する。
書式
#include <WebServer.h>
void WebServer::send(int code, const char* content_type = NULL, const String& content = String(""));
void WebServer::send(int code, char* content_type, const String& content);
void WebServer::send(int code, const String& content_type, const String& content);
void WebServer::send(int code, const char* content_type, const char* content);
引数
| code |
|
| content_type |
|
| content |
|
戻り値
なし。
注意
contentは、そのまま送信されるようです。
使用例
バージョン
| Hardware: | ESP-WROOM-32 |
| Software: | Arduino core for the ESP32 2.0.4 |
最終更新日
August 16, 2026