Re: [web-bluetooth] Consider an event when a device is physically disconnected

For DFU case, the GATT operation (characteristic write) causes the 
remote device to disconnect as you can read at 
http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk52.v0.9.2%2Fbledfu_appswitching.html&cp=4_0_2_4_2_2_2,

> First, you must write the value 0100 to the CCCD for the DFU Control
 Point characteristic to enable DFU notifications. Next, you must 
write the value 01-XX (where XX is the code for the type of image, see
 DFU Control Point) to the DFU Control Point to start a DFU procedure.
 **The application will then disconnect and reset into bootloader/DFU 
mode.** Note that no acknowledgement will be sent when writing to the 
Control Point, but the application sends a GAP disconnect on the link 
to tell the peer that the link is closed. You can then transfer the 
firmware image.

![ota_dfu_buttonless](https://cloud.githubusercontent.com/assets/634478/13313097/d0646b74-db9b-11e5-8696-e67ef2853051.png)



-- 
GitHub Notification of comment by beaufortfrancois
Please view or discuss this issue at 
https://github.com/WebBluetoothCG/web-bluetooth/issues/215#issuecomment-188657168
 using your GitHub account

Received on Thursday, 25 February 2016 07:44:53 UTC