Classes | Defines | Functions
rovio_http.h File Reference

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

#include <curl/curl.h>
#include <ros/ros.h>
#include <semaphore.h>
#include <string>
Include dependency graph for rovio_http.h:
This graph shows which files directly or indirectly include this file:

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)

Detailed Description

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.

Author:
Russell Toris, WPI - rctoris@wpi.edu
Date:
April 6, 2014

Definition in file rovio_http.h.


Define Documentation

#define HOST   "/rovio_shared/host"

The hostname ROS parameter name

Definition at line 33 of file rovio_http.h.

#define PASS   "/rovio_shared/pass"

The password ROS parameter name

Definition at line 28 of file rovio_http.h.

#define USER   "/rovio_shared/user"

The username ROS parameter name

Definition at line 23 of file rovio_http.h.


Function Documentation

Cleanup any resources used by a rovio_response struct.

Parameters:
respthe 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.



rovio_shared
Author(s): Russell Toris
autogenerated on Thu Aug 27 2015 14:56:40