|
PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
|
31 int event, id, handle;
32 int navId, spdId, irId;
33 char buttonCmd, buttonCmdPrev;
34 int speedLeft = 0, speedRight = 0, speedVal = 50;
42 print(
"navId: %d\r", navId);
45 print(
"spdId: %d\r", spdId);
48 print(
"irId: %d\r", irId);
55 print(
"event: %c, id: %d, handle: %d\r",
60 print(
"Incoming POST request\r");
64 print(
"go=%c\r", buttonCmd);
65 buttonCmdPrev = buttonCmd;
70 print(
"v=%d\r", speedVal);
71 buttonCmd = buttonCmdPrev;
76 print(
"Incoming GET request\r");
86 print(
"Reply: %01b%01b\r", irLeft, irRight);
97 speedRight = speedVal;
100 speedLeft = -speedVal;
101 speedRight = speedVal;
104 speedLeft = speedVal;
105 speedRight = -speedVal;
108 speedLeft = -speedVal;
109 speedRight = -speedVal;
116 print(
"speedLeft: %d, speedRight: %d\r", speedLeft, speedRight);
#define HTTP
One of the argument option tokens that can be used with the LISTEN command token to set up an HTTP ev...
#define GET
A token returned by POLL to indicate that a GET request with a path that matched one on a listener ha...
API for the Parallax WX Wi-Fi Module ESP8266-WROOM-02 (Part #32420). This library has a preliminary A...
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 drive_speed(int left, int right)
Set wheel speeds in encoder ticks per second. An encoder tick is 1/64th of a revolution,...
void wifi_poll(int *event, int *id, int *handle)
Check for activity like incoming HTTP GET/POST requests, HTTP/WebSocket/TCP connections/disconnection...
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 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...
#define POST
A token returned by POLL to indicate that a POST request with a path that matched one set up on a lis...
int wifi_listen(char protocol, char *path)
Activate a listener process to monitor HTTP or WebSocket protocol activity on port 80 with a specifie...
This library takes care of encoder monitoring and servo signaling, and provides a simple set of funct...
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 ...