summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Carpenter <malcom2073@gmail.com>2012-11-07 20:18:35 -0500
committerMichael Carpenter <malcom2073@gmail.com>2012-11-07 20:18:35 -0500
commit2883cb42a4401c998b78b8c05fae218ae19643c4 (patch)
treeb34c4045b976aec90879e6c5cc4b1329fe5a973b
parent0d94224feadb2ff99db710ac9c81798ee8176571 (diff)
downloadautomotive-message-broker-2883cb42a4401c998b78b8c05fae218ae19643c4.tar.gz
Change for get property json request to have a property/value pair, instead of a name/value pair
-rw-r--r--plugins/websocketsink/websocketsinkmanager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/websocketsink/websocketsinkmanager.cpp b/plugins/websocketsink/websocketsinkmanager.cpp
index e189ae2c..a9a2d608 100644
--- a/plugins/websocketsink/websocketsinkmanager.cpp
+++ b/plugins/websocketsink/websocketsinkmanager.cpp
@@ -123,7 +123,7 @@ void WebSocketSinkManager::addSingleShotSink(libwebsocket* socket, VehicleProper
//TODO: Dirty hack hardcoded stuff, jsut to make it work.
string tmpstr = "";
tmpstr = property;
- s << "{\"type\":\"methodReply\",\"name\":\"get\",\"data\":[{\"name\":\"" << tmpstr << "\",\"value\":\"" << reply->value->toString() << "\"}],\"transactionid\":\"" << id << "\"}";
+ s << "{\"type\":\"methodReply\",\"name\":\"get\",\"data\":[{\"property\":\"" << tmpstr << "\",\"value\":\"" << reply->value->toString() << "\"}],\"transactionid\":\"" << id << "\"}";
string replystr = s.str();
//printf("Reply: %s\n",replystr.c_str());