Allows to interact with a ServiceName service.

#include <gpioApi.h>

Public Member Functions

 GpioManager (std::string ip="127.0.0.1")
 
bool isAlive ()
 Method to check if Gpio Service is alive. More...
 
void monitorServiceAvailability_S (dpyGpio::service_availability_handler handler)
 
void monitorServiceAvailability_U ()
 
void gpioEvents_S (dpyGpio::gpio_status_handler_function handler)
 
void gpioEvents_U ()
 
void asyncGetGpios (dpyGpio::gpio_list_handler handler)
 
void asyncSetGpioValue (dpyGpio::result_handler_function handler, const std::string &gpioid, bool value)
 Modifies a gpio value. More...
 
void asyncGetGpioStatus (dpyGpio::gpio_status_handler_function handler, const std::string &gpioid)
 
void asyncSetGpioConfiguration (dpyGpio::result_handler_function handler, const std::string &gpioid, dpyGpio::GpioInfoConf gpioConfiguration)
 

Member Function Documentation

void asyncSetGpioValue ( dpyGpio::result_handler_function  handler,
const std::string &  gpioid,
bool  value 
)
Parameters
handlerHandler to be called when a response comes from the service
gpioidgpio id
valuegpio value to modify
bool isAlive ( )
Returns
Boolean indicating if Gpio is alive