node connector for us
Revision 2:0dd332c09bf1, committed 2016-12-16
- Comitter:
- 3116redtrain
- Date:
- Fri Dec 16 10:22:29 2016 +0000
- Parent:
- 1:52e1dae5dce9
- Commit message:
- resolve an error;
Changed in this revision
CushionNodeConnector.cpp | Show annotated file Show diff for this revision Revisions of this file |
CushionNodeConnector.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r 52e1dae5dce9 -r 0dd332c09bf1 CushionNodeConnector.cpp --- a/CushionNodeConnector.cpp Fri Dec 16 08:28:19 2016 +0000 +++ b/CushionNodeConnector.cpp Fri Dec 16 10:22:29 2016 +0000 @@ -2,6 +2,10 @@ CushionNodeConnector::CushionNodeConnector(char * hostAndPort){ socketio= new SocketIO(hostAndPort); + MESS_STOP = 0x01; + MESS_START = 0x02; + MESS_SIT = 0x11; + MESS_FRUST = 0x12; type_name[MESS_STOP]="stop"; type_name[MESS_START]="start"; type_name[MESS_SIT]="status_sit";
diff -r 52e1dae5dce9 -r 0dd332c09bf1 CushionNodeConnector.h --- a/CushionNodeConnector.h Fri Dec 16 08:28:19 2016 +0000 +++ b/CushionNodeConnector.h Fri Dec 16 10:22:29 2016 +0000 @@ -9,10 +9,10 @@ class CushionNodeConnector { public: - static const int MESS_STOP = 0x01; - static const int MESS_START = 0x02; - static const int MESS_SIT = 0x11; - static const int MESS_FRUST = 0x12; + int MESS_STOP; + int MESS_START; + int MESS_SIT; + int MESS_FRUST; /* Constructor