Slight change to support uuid string transactionids from the client websocket
authorMichael Carpenter <malcom2073@gmail.com>
Thu, 23 Aug 2012 09:53:22 +0000 (05:53 -0400)
committerMichael Carpenter <malcom2073@gmail.com>
Thu, 23 Aug 2012 09:53:22 +0000 (05:53 -0400)
plugins/websocketsink/websocketsinkmanager.cpp

index 2ba108f..9f6a992 100644 (file)
@@ -60,7 +60,7 @@ void WebSocketSinkManager::addSingleShotSink(libwebsocket* socket, VehicleProper
                stringstream s;
                
                //TODO: Dirty hack hardcoded stuff, jsut to make it work.
-               s << "{\"type\":\"methodReply\",\"name\":\"get\",\"data\":[{\"name\":\"running_status_speedometer\",\"value\":\"" << velocity << "\"}],\"transactionid\":" << id << "}";
+               s << "{\"type\":\"methodReply\",\"name\":\"get\",\"data\":[{\"name\":\"running_status_speedometer\",\"value\":\"" << velocity << "\"}],\"transactionid\":\"" << id << "\"}";
                
                string replystr = s.str();
                printf("Reply: %s\n",replystr.c_str());