diff options
author | Michael Carpenter <malcom2073@gmail.com> | 2012-11-07 20:18:35 -0500 |
---|---|---|
committer | Michael Carpenter <malcom2073@gmail.com> | 2012-11-07 20:18:35 -0500 |
commit | 2883cb42a4401c998b78b8c05fae218ae19643c4 (patch) | |
tree | b34c4045b976aec90879e6c5cc4b1329fe5a973b | |
parent | 0d94224feadb2ff99db710ac9c81798ee8176571 (diff) | |
download | automotive-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.cpp | 2 |
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()); |