This class is responsible of the client logic. His main target is to subscribe to the server information (Alarms publishment) as well as to ask for information to the server (PID request).

#include <ecuClient>

Inheritance diagram for EcuClient:

Public Member Functions

 EcuClient (std::string ip, int dport, int sport)
 
void ecuAlarmEvent_S (dpyEcu::alarm_event_handler_function handler)
 
void ecuAlarmEvent_U ()
 
void asyncGetCurrentProtocol (dpyEcu::protocols_handler_function handler)
 
void asyncGetParameter (dpyEcu::parameters_handler_function handler, std::vector< std::string > EPIDs)
 
void asyncGetAvailableEPIDs (dpyEcu::epids_handler_function handler)
 
void asyncSetAlarm (dpyEcu::confirmation_alarm_handler_function handler, dpyEcu::Alarm alarm)
 
void asyncDeleteAlarm (dpyEcu::confirmation_alarm_handler_function handler, uint32_t id)
 
void asyncGetConfiguredAlarms (dpyEcu::alarms_handler_function handler)
 
void asyncAddCanFilter (dpyEcu::result_handler_function handler, dpyEcu::CANBusIdType id_type, uint32_t can_id, uint32_t can_mask)
 
void asyncRemoveCanFilter (dpyEcu::result_handler_function handler, dpyEcu::CANBusIdType id_type, uint32_t can_id)
 
void asyncResetCanFilter (dpyEcu::result_handler_function handler)
 
void asyncSetCanBusConfiguration (dpyEcu::result_handler_function handler, dpyEcu::CANBusConfiguration conf)
 
void ecuCanBusMessages_S (dpyEcu::can_bus_message_handler_function handler)
 
void ecuCanBusMessages_U ()
 
- 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