Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Open Web BoardのBLE実装でNotifucationのValue(onnotifyのgattEvent.value)が取れないのを修正
--- ./gecko/dom/bluetooth/bluedroid/BluetoothGatt.cpp.orig 2015-03-19 02:05:19.361468298 +0900
+++ ./gecko/dom/bluetooth/bluedroid/BluetoothGatt.cpp 2015-03-19 02:50:24.378295237 +0900
@@ -2922,7 +2922,9 @@
data_conn_id.AppendInt(mNotifyConnCommPara.connId);
nsString data_value;
-// data_value.APpendInt(mNotifyParaData);
+ char strValue[MAX_HEX_VAL_STR_LEN];
+ array2str(mNotifyParaData.value, mNotifyParaData.len, strValue, sizeof(strValue));
+ data_value = NS_ConvertUTF8toUTF16(strValue);
nsString data_bdAddr;
BdAddressTypeToString(&mNotifyParaData.bda, data_bdAddr);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment