User Manual
87
87
88
88
88
88
88
89
89
89
89
90
90
90
90
90
91
91
91
91
94
94
94
94
94
94
95
95
95
95
95
96
100
100
100
101
101
101
102
102
103
104
104
109
109
109
110
110
uint8_t begin (uint16_t port)
void stop (void)
int beginPacket (IPAddress ip, uint16_t port)
int beginPacket (const char *host, uint16_t port)
int endPacket (void)
int parsePacket (void)
IPAddress remoteIP (void)
uint16_t remotePort (void)
Stream API
int read (void)
int read (unsigned char* buffer, size_t len) int read (char* buffer, size_t len)
int peek (void)
int available (void)
void flush (void)
size_t write (uint8_t byte)
size_t write (const uint8_t *buffer, size_t size)
Callback Handlers
void setReceivedCallback (udpcallback_t fp)
Examples
UDP Echo Server
AdafruitHTTP
AdafruitHTTP API
HTTP Headers
bool addHeader (const char* name, const char* value)
bool clearHeaders (void)
HTTP GET Requests
bool get (char const* url)
bool get (char const* host, char const* url)
HTTP POST Requests
bool post (char const* url, char const* encoded_data)
bool post (char const* host, char const* url, char const* encoded_data)
HTTP GET Example
AdafruitHTTPServer
AdafruitHTTPServer API
Constructor
Adding Pages
1. HTTPPageRedirect Records (Page Redirection Entries)
2. HTTPPage Records (Standard Pages)
Converting Static Content (HTTPResources)
Implementing Dynamic Page Handlers
Registering the Pages
Starting/Stopping the HTTP Server
Complete Example
AdafruitMQTT
Constructors
Functions
Connection Management
bool connected(void)
© Adafruit Industries https://learn.adafruit.com/introducing-the-adafruit-wiced-feather-wifi Page 6 of 202










