ARMmbed / ble-x-nucleo-idb0xa1

port of BLE_API to ST BLE shield
14 stars 5 forks source link

The BLE is breaked automaticfly when transfer data ? #25

Open panuniverse opened 7 years ago

panuniverse commented 7 years ago

The succeed log

*****WRITE CAS
BlueNRGGattServer::getCharacteristicFromHandle()>>Attr Handle received 2
handle(0)=1
handle(1)=1
handle(2)=1
handle(3)=2
Found Characteristic Properties 0xc (handle=22 handle_1=24
updating bleCharacteristic valueHandle=23,                corresponding serviceHandle=21 len=20
EVT_BLUE_GATT_WRITE_PERMIT_REQBlueNRGGattServer::getCharacteristicFromHandle()>>Attr Handle received 2
handle(0)=1
handle(1)=1
handle(2)=1
handle(3)=2
Found Characteristic Properties 0xc (handle=22 handle_1=24)

The failed log

EVT_DISCONN_COMPLET setting scan response data (_scanResponseLen=0)
advInterval=1600 advType=0

EVT_LE_META_EVENEVT_LE_CONN_COMPLETE
EVT_BLUE_GATT_ATTRIBUTE_MODIFIE
BlueNRGGattServer::getCharacteristicFromHandle()>>Attr Handle received 2
handle(0)=1
handle(1)=1
handle(2)=1
handle(3)=2
handle(4)=2
Found Characteristic Properties 0x10 (handle=24
CharHandle 24, length: 2, Data:
getProperties 0x1
currentHandle
*****NOTIFICATION CASE

@thegecko @danros

pan- commented 7 years ago

@panuniverse Could you provide more context and detail what your issue is ?

dadiliebian commented 6 years ago

I have resolved it ,thank you