Esempio n. 1
0
 private async Task ReadCharacteristicValue()
 {
     IsBusy = true;
     try
     {
         UpdateDisplayedValue(await m_gattServer.ReadCharacteristicValue(m_serviceGuid, m_characteristicGuid));
     }
     catch (GattException ex)
     {
         m_dialogManager.Toast(ex.Message);
     }
     IsBusy = false;
 }
 private async Task ReadValue()
 {
     IsBusy = true;
     try
     {
         UpdateDisplayedValue(await m_device.ReadCharacteristicValue(m_service, m_characteristic));
     }
     catch (GattException ex)
     {
         m_dialogs.Toast(ex.Message);
     }
     IsBusy = false;
 }