Exemplo n.º 1
0
 public void ReportStatus(string report, GattDeviceServicesResult status)
 {
     if (status == null)
     {
         ;
     }
     OnBluetoothStatus?.Invoke(this, new BluetoothCommunicationStatus(report, status.ProtocolError, status.Status));
 }
Exemplo n.º 2
0
 public void ReportStatus(string report, GattCharacteristicsResult status)
 {
     if (status == null)
     {
         OnBluetoothStatus?.Invoke(this, new BluetoothCommunicationStatus(report, null, GattCommunicationStatus.ProtocolError));
     }
     else
     {
         OnBluetoothStatus?.Invoke(this, new BluetoothCommunicationStatus(report, status.ProtocolError, status == null ? GattCommunicationStatus.ProtocolError : status.Status));
     }
 }
Exemplo n.º 3
0
 public void ReportStatus(string report, GattCommunicationStatus status)
 {
     OnBluetoothStatus?.Invoke(this, new BluetoothCommunicationStatus(report, null, status));
 }