Communication library to the Rovio's HTTP server. More...
#include <rovio_shared/rovio_http.h>
Go to the source code of this file.
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.cpp.
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 90 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 62 of file rovio_http.cpp.