serialportClient.h
Go to the documentation of this file.
1 
4 #pragma once
5 #include "../../../../LIBRARIES/MIDDLEWARE/src/com/dpyMwClient.h"
6 #include "serialportApi.h"
7 
13 {
14 private:
15  void RegisterCallbacks();
16 public:
17  SerialPortClient(std::string &ip, int dport, int sport);
19 
25 
32  void setSerialPortConfiguration(dpySerialPort::handler_function handler, const std::string &portid, dpySerialPort::SerialPortConf serialPortConfiguration);
33 
40  void send(dpySerialPort::handler_function handler, const std::string &portid, const std::string &data);
41 
46 
50  void serialPortEvent_U();
51 
52 };
boost::function< void(boost::system::error_code, std::map< std::string, dpySerialPort::SerialPortConf > serialPortMap)> serialPort_list_handler
Prototype of the handler function for getting serial port list.
Definition: serialportApi.h:61
Definition: serialportTypes.h:44
void getSerialPortList(dpySerialPort::serialPort_list_handler handler)
Method which requests serial port list.
boost::function< void(boost::system::error_code error_code, const std::string &portid, const std::string &data)> serialport_receive_handler_function
Prototype of the handler function for receiving serial port message.
Definition: serialportApi.h:69
void send(dpySerialPort::handler_function handler, const std::string &portid, const std::string &data)
Send message through serial port.
boost::function< void(boost::system::error_code &ec)> handler_function
Handler for status function callback.
Definition: serialportApi.h:54
void serialPortEvent_U()
Stops receiving serial port events.
Manages dealer and susbriber.
Definition: dpyMwClient.h:59
void setSerialPortConfiguration(dpySerialPort::handler_function handler, const std::string &portid, dpySerialPort::SerialPortConf serialPortConfiguration)
Modifies serial port configuration.
void serialPortEvent_S(dpySerialPort::serialport_receive_handler_function handler)
Start receiving serial port events.
Interacts with SerialPort service.
Definition: serialportClient.h:12