#author("2016-08-12T13:47:44+09:00","default:nari","nari")
[[FrontPage]]
#author("2016-08-12T13:59:49+09:00","default:nari","nari")

* EPS8266_Arduino [#z9ef4844]

- [[GitHub - esp8266/Arduino: ESP8266 core for Arduino:https://github.com/esp8266/Arduino]]
-- [[Arduino/reference.md at master · esp8266/Arduino · GitHub:https://github.com/esp8266/Arduino/blob/master/doc/reference.md]]
-- [[Arduino/libraries.md at master · esp8266/Arduino · GitHub:https://github.com/esp8266/Arduino/blob/master/doc/libraries.md]]

** EPS8266WebServer クラス [#b4b9b182]

- [[Arduino/libraries/ESP8266WebServer/src at master · esp8266/Arduino · GitHub:https://github.com/esp8266/Arduino/tree/master/libraries/ESP8266WebServer/src]]


:ESP8266WebServer(''IPAddress addr, int port = 80'')|
:ESP8266WebServer(''int port = 80'')|
:~ESP8266WebServer()|

:void begin()|
:void handleClient()|

:void close()|
:void stop()|

:bool authenticate(''const char * username, const char * password'')|
:void requestAuthentication()|

:void on(''const String &uri, THandlerFunction handler'')|
:void on(''const String &uri, HTTPMethod method, THandlerFunction fn'')|
:void on(''const String &uri, HTTPMethod method, THandlerFunction fn, THandlerFunction ufn'')|
:void addHandler(''RequestHandler* handler'')|
:void serveStatic(''const char* uri, fs::FS& fs, const char* path, const char* cache_header = NULL '')|
:void onNotFound(''THandlerFunction fn'')|  //called when handler is not assigne
:void onFileUpload(''THandlerFunction fn'')| //handle file upload

:String uri()  |
:HTTPMethod method() |
:WiFiClient client()  |
:HTTPUpload& upload()  |

:String arg(''String name'')|        // get request argument value by name
:String arg(''int i'')|              // get request argument value by number
:String argName(''int i'')|          // get request argument name by number
:int args()|                     // get arguments count
:bool hasArg(''String name'')|       // check if argument exists
:void collectHeaders(''const char* headerKeys[], const size_t headerKeysCount'')| // set the request headers to collect
:String header(''String name'')|      // get request header value by name
:String header(''int i'')|              // get request header value by number
:String headerName(''int i'')|          // get request header name by number
:int headers()|                     // get header count
:bool hasHeader(''String name'')|       // check if header exists

:String hostHeader()|            // get request host header if available or empty String if not

:void send(''int code, const char* content_type = NULL, const String& content = String(""''))|
:void send(''int code, char* content_type, const String& content'')|
:void send(''int code, const String& content_type, const String& content'')|
:void send_P(''int code, PGM_P content_type, PGM_P content'')|
:void send_P(''int code, PGM_P content_type, PGM_P content, size_t contentLength'')|

:void setContentLength(''size_t contentLength'')|
:void sendHeader(''const String& name, const String& value, bool first = false'')|
:void sendContent(''const String& content'')|
:void sendContent_P(''PGM_P content'')|
:void sendContent_P(''PGM_P content, size_t size'')|


トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS