GpioClient Class Reference

Interacts with Gpio service.

#include <gpioClient.h>

Inheritance diagram for GpioClient:

Public Member Functions

 GpioClient (std::string &ip, int dport, int sport)
 
void getGpios (dpyGpio::gpio_list_handler handler)
 
void setGpioValue (dpyGpio::result_handler_function handler, const std::string &gpioid, bool value)
 Modifies a gpio value. More...
 
void getGpioStatus (dpyGpio::gpio_status_handler_function handler, const std::string &gpioid)
 
void setGpioConfiguration (dpyGpio::result_handler_function handler, const std::string &gpioid, dpyGpio::GpioInfoConf gpioConfiguration)
 
void gpioEvents_S (dpyGpio::gpio_status_handler_function handler)
 Start receiving GPIO events.
 
void gpioEvents_U ()
 Stops receiving GPIO events.
 
- Public Member Functions inherited from DpyMwClient
 DpyMwClient (std::string &ip, int dport, int sport)
 
void start ()
 
void stop ()
 
void subscribe (int messageType, boost::any handler)
 
void unsubscribe (int messageType)
 
bool isAlive ()
 
void monitorServiceAvailability_S (const f_hearbeat_handler &handler)
 
void monitorServiceAvailability_U ()
 

Additional Inherited Members

- Protected Member Functions inherited from DpyMwClient
void sendRequest (int requestType, int responseType, std::string content, boost::any handler, int ms_timeout=2000)
 
- Protected Attributes inherited from DpyMwClient
map_proto_register_client m_register_map
 
std::mutex m_map_mutex
 

Member Function Documentation

void setGpioValue ( 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