예제 #1
0
        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);
        }
예제 #2
0
 public void Push(IEnumerable <AttributeValue> values)
 {
     RESTClient.RESTClient.PostAsync(DataAndAttributeValueWrapper.GetJSON(values), _logger);
 }
예제 #3
0
 public void Push(AttributeValue value)
 {
     RESTClient.RESTClient.PostAsync(DataAndAttributeValueWrapper.GetJSON(value), _logger);
 }
예제 #4
0
 public void Dispose()
 {
     RESTClient.RESTClient.PostAsync(DataAndAttributeValueWrapper.GetJSON("Dispose"), _logger);
 }
예제 #5
0
 public void Debug(string debug)
 {
     RESTClient.RESTClient.PostAsync(DataAndAttributeValueWrapper.GetJSON(debug), _logger);
 }
예제 #6
0
 public void Connect(Action <Command> commandHandler)
 {
     _commandHandler = commandHandler;
     RESTClient.RESTClient.PostAsync(DataAndAttributeValueWrapper.GetJSON("Connect"), _logger);
 }