Skip to content

Commit

Permalink
readme fix
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoschwartz committed Apr 8, 2014
1 parent 98c255f commit a2d0855
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,8 @@ Mode is to change the mode on a pin. For example:
* /mode/8/o sets pin number 8 as an output
* /mode/8/i sets pin number 8 as an input

You can also directly call variables that are defined in your sketch. At the moment only integer variables are supported by the library. To access a variable in your sketch, you have to declare it first. For example, if your aREST instance is called "rest" and the variable "temperature":
* rest.variable("temperature",&temperature);
You can then call the variable using a REST call:
You can also directly call variables that are defined in your sketch. At the moment only integer variables are supported by the library. To access a variable in your sketch, you have to declare it first, and then call it from with a REST call. For example, if your aREST instance is called "rest" and the variable "temperature":
* rest.variable("temperature",&temperature); declares the temperature in the Arduino sketch
* /temperature returns the value of the variable in JSON format

## Troubleshooting
Expand Down

0 comments on commit a2d0855

Please sign in to comment.