Skip to content

Instantly share code, notes, and snippets.

@Babibubebon
Created March 20, 2015 16:34
Show Gist options
  • Save Babibubebon/e6019549d0544e429d12 to your computer and use it in GitHub Desktop.
Save Babibubebon/e6019549d0544e429d12 to your computer and use it in GitHub Desktop.
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