From: Pawel Wasowski Date: Mon, 6 Mar 2017 09:09:43 +0000 (+0100) Subject: [Bluetooth] Fix GATT characteristic value change listener X-Git-Tag: submit/tizen_3.0/20170308.104234~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dc80f733c10e3aa6e368e64df079602e4564aeab;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git [Bluetooth] Fix GATT characteristic value change listener Function registered with addValueChangeListener was not called. Change-Id: Ida88778e21884510fece8c30b93da265b246db2b --- diff --git a/src/bluetooth/bluetooth_gatt_service.cc b/src/bluetooth/bluetooth_gatt_service.cc index fce5b566..1171038e 100755 --- a/src/bluetooth/bluetooth_gatt_service.cc +++ b/src/bluetooth/bluetooth_gatt_service.cc @@ -586,7 +586,7 @@ void BluetoothGATTService::OnCharacteristicValueChanged( } picojson::value result = picojson::value(picojson::object()); - picojson::object result_obj = result.get(); + picojson::object& result_obj = result.get(); result_obj.insert(std::make_pair(kHandle, picojson::value((double)(long)characteristic)));