Giter VIP home page Giter VIP logo

mtlinq's Introduction

MTSharp

.Net library for comsuming MTConnect streams written in pure C#.

This library utilizes Linq and Xml.Linq to simplify and speed up the parsing of streams.

The structure was taken mostly from https://github.com/mtconnect/mtlinq but cleaned up and optimized to have ~30% gain in performance.

MTConnect.Probe()

MTConnect.Probe() gets all the devices but not the current result set. This is great if you need to get the Devices in a stream but do not need the data at the time. MTConnect.Probe will make a request every time it is called, so if you want the devices from the last time, use MTConnect.Devices(). If MTConnect.Probe has has not been called, MTConnect.Devices will make the call for you.

MTConnect.Current()

MTConnect.Current() is used to get all Devices in a stream along with an enumerable dataset of Result's.

Examples

Get all devices in a stream

Notice below how the example url does not contain a "/current" at the end, DO NOT add the "/current".

MTConnect connect = new MTConnect("http://url-to-stream");
IEnumerable<Device> devices = connect.Probe().Select(entry => entry.Value);

Get the results for a device in a stream

This example get all results for a device named "TestDevice" within the stream.

MTConnect connect = new MTConnect("http://url-to-stream");
IEnumerable<Result> results = connect.Current()["TestDevice"];

mtlinq's People

Contributors

jacob-ebey avatar

Stargazers

Rudolf Meyer avatar Adam Kauffman avatar  avatar  avatar Abdelkrim from Brussels avatar José Augusto Guimarães avatar

Watchers

James Cloos avatar William Sobel avatar Nate Price avatar Linh Huynh avatar Moneer Helu avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.