Communication library to the Rovio's HTTP server. More...


Go to the source code of this file.
Classes | |
| class | rovio_http |
| Provides direct communication to the Rovio to via cURL. More... | |
| struct | rovio_response |
Defines | |
| #define | HOST "/rovio_shared/host" |
| #define | PASS "/rovio_shared/pass" |
| #define | USER "/rovio_shared/user" |
Functions | |
| void | rovio_response_clean (rovio_response *resp) |
| size_t | write_data (char *ptr, size_t size, size_t nmemb, rovio_response *buf) |
Communication library to the Rovio's HTTP server.
rovio_http allows direct communication to the Rovio's HTTP server. This library uses cURL to transmit messages to and from the Rovio.
Definition in file rovio_http.h.
| #define HOST "/rovio_shared/host" |
The hostname ROS parameter name
Definition at line 70 of file rovio_http.h.
| #define PASS "/rovio_shared/pass" |
The password ROS parameter name
Definition at line 65 of file rovio_http.h.
| #define USER "/rovio_shared/user" |
The username ROS parameter name
Definition at line 60 of file rovio_http.h.
| void rovio_response_clean | ( | rovio_response * | resp | ) |
Cleanup any resources used by a rovio_response struct.
| resp | the rovio_response struct to cleanup |
Definition at line 127 of file rovio_http.cpp.
| size_t write_data | ( | char * | ptr, |
| size_t | size, | ||
| size_t | nmemb, | ||
| rovio_response * | buf | ||
| ) |
The callback function used by cURL to store the response from the Rovio. This function should only be used by cURL internally by the rovio_http.
Definition at line 99 of file rovio_http.cpp.