Created
March 20, 2015 16:34
-
-
Save Babibubebon/e6019549d0544e429d12 to your computer and use it in GitHub Desktop.
Open Web BoardのBLE実装でNotifucationのValue(onnotifyのgattEvent.value)が取れないのを修正
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- ./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