KO
|
EN
gitlite — search
Search
#python
#java
#python3
#arduino
#golang
#machine-learning
#rust
#html
#flask
#javascript
#seismology
#nodejs
node-tethercell
★ 10
Open GitHub ↗
Node.js lib for the Tethercell
Download README (.md)
Explore Similar Repositories
atom-alignment
:
Align selections for Atom `⌘⌥^ ]`
butterfly-docker
:
Dockerfile for butterfly
JPEG_Deblocking
:
Deblocking filter | DCT | PSNR
gulp-ts
:
TypeScript compiler plugin for Gulp
django-sae
:
用于新浪云平台SAE
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
node-tethercell
?
Download (.md)
# node-tethercell [](https://github.com/igrigorik/ga-beacon) Node.js lib for the [Tethercell](http://tetherboard.com) ## Install ```sh npm install tethercell ``` ## Usage ```javascript var Tethercell = require('tethercell'); ``` __Discover__ ```javascript Tethercell.discover(callback(tethercell)); ``` __Connect and Setup (discover services and characteristics)__ ```javascript tethercell.connectAndSetup(callback(error)); ``` __Disconnect__ ```javascript tethercell.disconnect(callback); ``` __Authorize__ ```javascript var pin = '00000000'; tethercell.authorize(pin, callback(error)); ``` __Turn on/off, is on__ ```javascript tethercell.turnOn(callback(error)); tethercell.turnOff(callback(error)); tethercell.isOn(callback(error, isOn)); ``` __Voltage__ ```javascript tethercell.readVoltage(callback(error, voltage)); ``` __Device Name__ ```javascript tethercell.readDeviceName(callback(error, deviceName)); var deviceName = 'TETHERCELL ONE'; tethercell.writeDeviceName(deviceName, callback(error)); ```