Examples

1. Monitor (streaming)

In this example, you will learn to monitor POT value by displaying it on web browser. One can display values of several sensors on a single or multiple web pages. Note that, the values will be updated on streaming. For updating results on page refresh, see this example.

Hardware

- Get an Arduino board, POT and few jumpers
- Connect a POT at analog pin# A0
- Connect Arduino board with computer

swDuino monitor streaming example

Sketch

- Open Arduino IDE
- Install swDuino Arduino library (if not yet installed)
- Open example: Files > Examples > swDuino-Lib > write sketch
- Upload it to Arduino board.

swDuino

- Open swDuino
- Configure Serial/COM and HTTP/Web server (optional)
- Start swDuino Server

Web browser

- Open web browser
- Browse this page: http://[server]:[port]/files/examples/monitor_stream.html (click here if you have used the default configuration for HTTP/Web server)
- Go to Output to experience results

swDuino monitor streaming example output