public WristbandCharacteristic GetCharacteristicByTag(string peripheralName, WristbandCharacteristicTag characteristicTag) { WristbandProfile profile = GetProfileByName(peripheralName); if (profile == null) { return(null); } foreach (WristbandCharacteristic characteristic in profile.characteristics) { if (characteristic.tag == characteristicTag) { return(characteristic); } } //Debug.LogError("GetCharacteristicByTag ERROR :: characteristic tag '"+characteristicTag.ToString()+"' not found!"); throw new WristbandServiceException("GetProfileByName ERROR :: profile '" + peripheralName + "' not found!"); return(null); }
public WristbandCharacteristic GetCharacteristicByTag(string peripheralName, WristbandCharacteristicTag characteristicTag) { return(GetCharacteristicByTag_Mock()); }
public WristbandCharacteristic(WristbandCharacteristicTag tag, string id) { this.tag = tag; this.id = id; }
private WristbandCharacteristic getCharacteristicByTag(WristbandCharacteristicTag tag) { return(services.GetCharacteristicByTag(connectedWristbandProfile.peripheralName, tag)); }