Giter Site home page Giter Site logo

udoorest's Introduction

UDOO Quad/Dual REST

UDOO Quad/Dual REST based framework using Spark Java. This project uses the Spark Java framework to provide the basis of simple RESTful commands to control the pins on your UDOO board. This is a work in progress and implements the setting and reading of pins on the Quad/Dual board.

Getting Started

Since you will probably want to do your own thing - rather than a jar - I suggest you just download or fork the project and load into Eclipse.

I based this on a Java Spark project

Prerequisities

Java 8 is a must on the compliation IDE and the UDOO. I was able to use openjdk for this.

Installing

Just import the project. You can make a runnable jar, port that to the udoo and run it. Default port is 4567.

There are two main rourtes to use based on the IP of the UDOO

http://192.168.178.53:4567/gpiowrite/12/1 - which writes ON to Pin 12 - returns a 1 or 0

http://192.168.178.53:4567/gpioread/12 - which returns a json string thus

{"id":12,"value":0,"uri":"/sys/class/gpio/gpio3/","currentPinState":"LOW","currentPinMode":"OUTPUT"}

And so on...

Deployment

I deployed a quadrest.jar file and just run it with java -jar quadrest.java - build a service round it if you wish

Built With

Spark Java - ( Not Apache ) Maven for the Java Spark default project framework Serial java lib - rxtx 2.1.7

Authors

Dave Robertson

License

This project is licensed under the MIT License

Acknowledgments

  • Spark Java guys for an awesomely simple framework

udoorest's People

Contributors

daverobertson63 avatar

Watchers

James Cloos 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.