public void Initialize(string serialId, UicProject project, List <EmbeddedDriverModule> edms) { _edms = edms; List <EDMWrapper> edmWrappers = new List <EDMWrapper>(); foreach (EmbeddedDriverModule element in edms) { //building of ther maps BuildEdmMap(element.GetCapability()); // edms must be converted in a actual type to serialize the capabilities edmWrappers.Add(new EDMWrapper(element)); } RESTClient.RESTClient.Initialize(serialId, DataAndAttributeValueWrapper.GetJSON(edmWrappers), _logger); }
public void Push(IEnumerable <AttributeValue> values) { RESTClient.RESTClient.PostAsync(DataAndAttributeValueWrapper.GetJSON(values), _logger); }
public void Push(AttributeValue value) { RESTClient.RESTClient.PostAsync(DataAndAttributeValueWrapper.GetJSON(value), _logger); }
public void Dispose() { RESTClient.RESTClient.PostAsync(DataAndAttributeValueWrapper.GetJSON("Dispose"), _logger); }
public void Debug(string debug) { RESTClient.RESTClient.PostAsync(DataAndAttributeValueWrapper.GetJSON(debug), _logger); }
public void Connect(Action <Command> commandHandler) { _commandHandler = commandHandler; RESTClient.RESTClient.PostAsync(DataAndAttributeValueWrapper.GetJSON("Connect"), _logger); }