code: function (e) {
  			var device = winble.deviceManager.getDeviceFromContainerId(e.id);
  			if (device != null) {
  				var isConnected = e.properties["System.Devices.Connected"];
  				winble.logger.logDebug("onDeviceConnectionUpdated", device.gattDevice.name + " isConnected=" + device.isConnected + ", new isConnected=" + isConnected);
  				if (!isConnected) {
  					device.isDeleted = true;
  					winble.deviceManager.cleanReportList();
  				}
  			}
  		}
docs: A BLE device has just been connected or disconnected (though it seems that Windows does not currently call this when a device is connected, only disconnected). Look up the device in our list and, if it's one of ours, remove it from the reporting list so the client knows it's gone.