Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Now we will add a REST Server interface, allowing you to control any device via the LAN using HTTP.
This will allow us to use other programming languages such as HTML5 / JS to control the devices.

...

Here's an example of how to use JQuery to control devices: 

 

The REST connection has a simple http server for static pages, you can add the directories that will be available from this server.

 

Info
The examples and code used in this tutorial can be found here:
https://github.com/OpenDevice/OpenDevice/tree/master/examples/opendevice-tutorial

 

 

See next stepBluetooth Connection

...