Sub BLE_Connected (Services As Map)
If ConnectState = cstatePreConnect Then
ConnectState = cstateConnect
'Log("BLE Connected")
bleService = Services.GetValueAt(2)
readCharacteristic = bleService.GetCharacteristics.GetValueAt(0)
Manager.ReadCharacteristic(readCharacteristic)
Manager.SetCharacteristicNotification(readCharacteristic, True)
writeCharacteristic = bleService.GetCharacteristics.GetValueAt(0)
ToastMessageShow(Locale("connected to " &TheConnectingBeacon.name), True)
End If
End Sub