bluetooth androidでdisconnectが呼ばれた際に、notifyCharacteristicChangedを呼ぶとnullpointerで落ちる

bluetooth androidでdisconnectが呼ばれた際に、notifyCharacteristicChangedを呼ぶとnullpointerで落ちる

今一つ苦しんでいる問題です。 発生の流れとしては、以下の通りになります。 1.peripheralにつないでいる、central端末がdiscconectになって、callbackのonConnectionStateCh続きを読むbluetooth androidでdisconnectが呼ばれた際に、notifyCharacteristicChangedを呼ぶとnullpointerで落ちる[…]

Bluetoothでiosのperipehralでandroidが2度登録されてしまう問題(誰か助けて!)

Bluetoothでiosのperipehralでandroidが2度登録されてしまう問題(誰か助けて!)

bluetoothの3端末debugをやっていたら、初回の端末登録画面で、androidのcentralの画面表示がおかしくなった。 調べてみると、なぜだか、oncharacteristicChangedが2回同間隔で呼続きを読むBluetoothでiosのperipehralでandroidが2度登録されてしまう問題(誰か助けて!)[…]