IoT Command Reference
The JavaScript commands are used for controlling IoT devices connected to AppShed apps. The devices must be running either the AppShed Free Firmware or the AppShed Pro Firmware.
Commands
The following commands are used in your AppShed App to control the AppShed Board.
app.getPin(n) - This will return the value of pin n (n being the pin number, 0 to 39)
app.setPin(n,val) x - Set the value of pin "n" to the value "val". For digital pins, val should be 0 or 1. For analog pins, val can be 0-1024.
app.analogRead(n) x - Returns the value of analog pin n.