SocketIO is a compatibility library on top of the MBED Websockets API. Currently the broadcast paradigm is supported. There is much more to the SocketIO spec that could be built into this API. Have fun!
Dependents: df-2013-thermostat-handson df-2013-minihack-thermostat-complete df-2013-minihack-thermostat df-2013-thermostat-remotes ... more
Revision 5:912301390ce1, committed 2013-07-08
- Comitter:
- ansond
- Date:
- Mon Jul 08 03:37:20 2013 +0000
- Parent:
- 4:ad06c58c7cf4
- Child:
- 6:f71f8a61dc98
- Commit message:
- revert an update
Changed in this revision
SocketIO.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/SocketIO.cpp Mon Jul 08 03:35:29 2013 +0000 +++ b/SocketIO.cpp Mon Jul 08 03:37:20 2013 +0000 @@ -165,10 +165,10 @@ // format: Session_ID YY ZZ CHANNEL char t_sessionkey[128]; - sscanf(response,"%s %d %d %s",t_sessionkey,&val1,&val2,this->channel); + sscanf(response,"%s %d %d %s",t_sessionkey,&val1,&val2,channel); // create - sprintf(sessionkey,"%s/%s",this->channel,t_sessionkey); + sprintf(sessionkey,"%s/%s",channel,t_sessionkey); } // acquire the session key for our session