/// <summary> /// A client to communicate with a wide range of EVCs /// </summary> /// <param name="commPort">Communcations interface to the device</param> protected EvcCommunicationClient(CommPort commPort) { CommPort = commPort; _receivedObservable = ResponseProcessors.MessageProcessor.ResponseObservable(CommPort.DataReceivedObservable) .Subscribe(msg => { Log.Debug($"[{CommPort.Name}][IN] << {ControlCharacters.Prettify(msg)}"); }); _sentObservable = CommPort.DataSentObservable.Subscribe( msg => { Log.Debug($"[{CommPort.Name}][OUT] >> {ControlCharacters.Prettify(msg)}"); }); }
public static ISegmentBuildDefinition StartsWith(ControlCharacters start) { return(StartsWith((byte)start)); }
public static ISegmentBuildDefinition AndEndsWith(this ISegmentBuildDefinition builder, ControlCharacters end) { return(AndEndsWith(builder, (byte)end)); }
public abstract string this[ControlCharacters controlCharacters] { get; set; }