|
PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
|
Go to the documentation of this file.
77 #if defined(__cplusplus)
103 #define WX_ALL_COM -1
114 #define USB_PGM_TERM -2
369 #define GPIO_DI 1 // 1 // -> DI
378 #define GPIO_DO 3 // 2 // <- DO
387 #define GPIO_RTS 15 // 3 // <- //rTS
397 #define GPIO_CTS 13 // 4 // <-> /CTS
406 #define GPIO_ASC 5 // 5 // <- ASC
415 #define GPIO_DBG 2 // 6 // <- DBG
424 #define GPIO_PGM 0 // 7 // -> PGM
438 #ifndef INVALID_REQUEST
442 #define INVALID_REQUEST 1
446 #ifndef INVALID_ARGUMENT
450 #define INVALID_ARGUMENT 2
454 #ifndef WRONG_ARGUMENT_COUNT
458 #define WRONG_ARGUMENT_COUNT 3
462 #ifndef NO_FREE_LISTENER
466 #define NO_FREE_LISTENER 4
470 #ifndef NO_FREE_CONNECTION
474 #define NO_FREE_CONNECTION 5
478 #ifndef LOOKUP_FAILED
482 #define LOOKUP_FAILED 6
486 #ifndef CONNECTION_FAILED
490 #define CONNECTION_FAILED 7
498 #define SEND_FAILED 8
502 #ifndef INVALID_STATE
507 #define INVALID_STATE 9
516 #define INVALID_SIZE 10
524 #define DISCONNECTED 11
528 #ifndef NOT_IMPLEMENTED_ERROR_12
532 #define NOT_IMPLEMENTED_ERROR_12 12
544 #ifndef INTERNAL_ERROR
549 #define INTERNAL_ERROR 14
571 #ifndef OUT_OF_MEMORY
575 #define OUT_OF_MEMORY -1
579 #ifndef UNDEFINED_NEG2
583 #define UNDEFINED_NEG2 -2
595 #ifndef ROUTING_PROBLEM
599 #define ROUTING_PROBLEM -4
603 #ifndef OPERATION_IN_PROCESS
607 #define OPERATION_IN_PROCESS -5
611 #ifndef UNDEFINED_NEG6
615 #define UNDEFINED_NEG6 -6
619 #ifndef NUMBER_TOO_LARGE
623 #define NUMBER_TOO_LARGE -7
627 #ifndef CONNECTION_ABORTED
631 #define CONNECTION_ABORTED -8
635 #ifndef CONNECTION_RESET
639 #define CONNECTION_RESET -9
643 #ifndef CONNECTION_CLOSED
647 #define CONNECTION_CLOSED -10
651 #ifndef NOT_CONNECTED
655 #define NOT_CONNECTED -11
659 #ifndef ILLEGAL_ARGUUMENT
663 #define ILLEGAL_ARGUUMENT -12
667 #ifndef UNDEFINED_NEG13
671 #define UNDEFINED_NEG13 -13
675 #ifndef UDP_SEND_ERROR
679 #define UDP_SEND_ERROR -14
683 #ifndef ALREADY_CONNECTED
688 #define ALREADY_CONNECTED -15
692 #ifndef SSL_HANDSHAKE_FAILED
696 #define SSL_HANDSHAKE_FAILED -28
700 #ifndef SSL_APPLICATION_INVALID
704 #define SSL_APPLICATION_INVALID -61
780 int wifi_ip(
int mode,
int *ipAddr);
792 int wifi_join(
char *network,
char *password);
851 void wifi_poll(
int *event,
int *
id,
int *handle);
887 int wifi_print(
int protocol,
int handle,
const char *fmt, ...);
901 int wifi_recv(
int handle,
char *data,
int size);
948 int wifi_scan(
int protocol,
int handle,
const char *fmt, ...);
963 char wifi_send(
int handle,
char *data,
int size);
1031 #if defined(__cplusplus)
char wifi_send(int handle, char *data, int size)
Transmit WebSocket/TCP data, or extended HTTP body (after REPLY command).
char * wifi_bufferSize(int bytes)
Sets the size (in bytes) of the Wi-Fi communication buffer.
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.
int wifi_mode(int mode)
Set or check the Wi-Fi module's network mode.
void wifi_poll(int *event, int *id, int *handle)
Check for activity like incoming HTTP GET/POST requests, HTTP/WebSocket/TCP connections/disconnection...
char * wifi_command(char *command)
Send a string command to the Wi-Fi module using its serial protocol, and get the Wi-Fi module's respo...
int wifi_replyStringCopy(char *targetStr)
Copy a reply from the libwifi response buffer to a character array.
int wifi_join(char *network, char *password)
Attempt to join a network via the ssid access point using passphrase.
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_recv(int handle, char *data, int size)
Retrieve incoming HTTP body or WebSocket/TCP data.
Structure that contains data used by simple text device libraries.
void wifi_stop(void)
Stops the process started by wifi_start and recovers any memory that was allocated for command/reply ...
int wifi_leave(int newMode)
Leave an AP network and transition into a mode that's not pure STA. The wi-fi module will forget the ...
int wifi_connect(char *address, int port)
Attempt a TCP connection to address on port.
int wifi_listen(char protocol, char *path)
Activate a listener process to monitor HTTP or WebSocket protocol activity on port 80 with a specifie...
int wifi_ip(int mode, int *ipAddr)
Check the IP address for the Parallax Wi-Fi module.
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 ...
This library supports creating and managing one or more full duplex serial connections with periphera...
int wifi_disconnect(int idOrHandle)
Terminate an established connection or listener via its handle or id (respectively),...