|
PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
|
17 char hostIP[] =
"192.168.43.243";
19 "GET /tpfm HTTP/1.1\r\n"\
20 "Host: 192.168.43.243\r\n"\
21 "Connection: keep-alive\r\n"\
22 "Accept: *" "/" "*\r\n\r\n";
25 int event, id, handle;
36 print(
"Connection attempts: ");
45 print(
"tcpHandle = %d\r\r", tcpHandle);
47 int length = strlen(request);
48 print(
"GET request length: %d\r", length);
49 print(
"GET request\r======================================\r");
51 print(
"\r------------------------------------\rEnd of GET request\r\r\r");
57 for(
int n = 0; n < 100; n++)
61 print(
"event: %c, id: %d, handle: %d\r",
74 length = strlen(tcp_str);
75 print(
"\r\r\rServer response length: %d\r", length);
76 print(
"Server response to GET request\r");
77 print(
"======================================\r");
79 print(
"\r------------------------------------\r");
80 print(
"End of server response to GET request\r\r\r");
88 print(
"Client: x = %d, y = %d\r",
x, y);
95 print(
"\r\rDisconnect from handle %d\r\r\r...\r\r\r", tcpHandle);
API for the Parallax WX Wi-Fi Module ESP8266-WROOM-02 (Part #32420). This library has a preliminary A...
void wifi_setBuffer(char *buffer, int size)
Sets the Wi-Fi buffer to an user declared external character array.
fdserial * wifi_start(int fromDO, int toDI, int baud, int comSelect)
Set up Wi-Fi module serial connections for data command and transparent data communication.
void wifi_poll(int *event, int *id, int *handle)
Check for activity like incoming HTTP GET/POST requests, HTTP/WebSocket/TCP connections/disconnection...
#define TCP
Constant that can be passed to the wifi_print/scan's type parameter to tell it to treat the formatted...
int print(const char *format,...) __attribute__((format(printf
Print format "..." args to the default simple terminal device. The output is limited to 256 bytes.
int putStrWithNpcVals(const char *s)
Print string to the debug port, and display all non printable characters (NPCs) as decimal ASCII valu...
int int int int int sscanAfterStr(char *buffer, char *str, char *fmt,...) __attribute__((format(printf
Store values represented by characters in a buffer in variable list using "..." args.
int wifi_scan(int protocol, int handle, const char *fmt,...)
The Wi-Fi module version of the simpletext library's scan function. It simplifies extracting data c...
int wifi_connect(char *address, int port)
Attempt a TCP connection to address on port.
int wifi_print(int protocol, int handle, const char *fmt,...)
The Wi-Fi module version of the simpletext library's print function. It simplifies formatting data ...
int wifi_disconnect(int idOrHandle)
Terminate an established connection or listener via its handle or id (respectively),...