src/windows/bleProxy.js
function () {
			winble.deviceManager.connectionWatcher = Windows.Devices.Enumeration.Pnp.PnpObject.createWatcher(
				Windows.Devices.Enumeration.Pnp.PnpObjectType.deviceContainer,
				["System.Devices.Connected"],
				"");
			winble.deviceManager.connectionWatcher.onupdated = winble.deviceManager.onDeviceConnectionUpdated;
			winble.deviceManager.connectionWatcher.start();
		}
function () {
			winble.deviceManager.connectionWatcher = Windows.Devices.Enumeration.Pnp.PnpObject.createWatcher(
				Windows.Devices.Enumeration.Pnp.PnpObjectType.deviceContainer,
				["System.Devices.Connected"],
				"");
			winble.deviceManager.connectionWatcher.onupdated = winble.deviceManager.onDeviceConnectionUpdated;
			winble.deviceManager.connectionWatcher.start();
		}
function ( ) { winble . deviceManager . connectionWatcher = Windows . Devices . Enumeration . Pnp . PnpObject . createWatcher ( Windows . Devices . Enumeration . Pnp . PnpObjectType . deviceContainer , [ "System.Devices.Connected" ] , "" ) ; winble . deviceManager . connectionWatcher . onupdated = winble . deviceManager . onDeviceConnectionUpdated ; winble . deviceManager . connectionWatcher . start ( ) ; }
Tell Windows to notify us whenever the connection status of a BLE device changes. It appears that IRL Windows only tells us when a device has been disconnected and not so much when newly connected.
Tell Windows to notify us whenever the connection status of a BLE device changes . It appears that IRL Windows only tells us when a device has been disconnected and not so much when newly connected .