30 #ifndef _REC_ROBOTINO_API2_COM_H_ 31 #define _REC_ROBOTINO_API2_COM_H_ 33 #include "rec/robotino/api2/defines.h" 34 #include "rec/robotino/api2/ComId.h" 35 #include "rec/robotino/api2/RobotinoException.h" 49 #ifdef REC_ROBOTINO_API2_CLASS_ATTRIBUTE 50 REC_ROBOTINO_API2_CLASS_ATTRIBUTE
68 Com(
const char* name );
77 Com(
const char* name,
bool multiThreadedSerialization );
88 Com(
const char* name,
bool multiThreadedSerialization,
bool localIPCEnabled );
110 void connectToServer(
bool isBlocking =
true );
118 void disconnectFromServer();
126 bool isConnected()
const;
137 void setAutoReconnectEnabled(
bool enable );
150 void setAddress(
const char* address );
160 const char* address()
const;
169 void setName(
const char* name );
178 void setMultiThreadedSerializationEnabled(
bool enabled );
183 bool isLocalConnection()
const;
188 unsigned int msecsElapsed()
const;
197 void processEvents();
205 void processComEvents();
213 void processChargerEvents();
221 void processPowerButtonEvents();
229 void processFactory4Events();
239 virtual void errorEvent(
const char* errorString );
249 virtual void connectedEvent();
259 virtual void connectionClosedEvent();
271 virtual void logEvent(
const char* message,
int level );
274 WorkerThread* _thread;
Represents a communication device.
Definition: Com.h:48
Definition: AnalogInput.h:36
The id of a Com object.
Definition: ComId.h:48