NodeJS Teletask API
node-teletaks is a library communicating with a Teletaks domotics system using Node.js.
installation
$ npm install node-teletask --save
Basic Example
The following example creates a pololu object and communicates with the pololu gateway using the CoAP protocol:
var Teletask = ; var HOST = '127.0.0.1';var PORT = 55957; var teletask = HOSTPORT; teletask; // get the status of relay with number 21teletask; // send a keepalive to keep the connection open over a longer timeteletask;
API
Connection:
- connect()
Teletaks api:
- get()
- set()
- groupset()
- logEnable()
- logDisable()
- keepalive()
objects:
- report object
- functions
- settings
connect([host],[port])
connect to a Teletask central, using a port and host (or ip address) and returns a Teletask object.
get(function, number, callback)
[TODO]
set(function, number, data)
[TODO]
keepalive()
[TODO]
groupset()
not implemented yet
log()
not implemented yet
Teletask.Report
[TODO]
Teletask.functions
[TODO]
Teletask.Settings
[TODO]