This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "blink-rgx-led", | |
"version": "1.0", | |
"description": "Blinks a LED equipped with Rooster GX.", | |
"bugs": { | |
"mail": "bugs@example.com" | |
}, | |
"main" : "blink-rgx-led.so", | |
"models" : { | |
"Led" : { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# deb cdrom:[Debian GNU/Linux 6.0.5 _Squeeze_ - Official i386 NETINST Binary-1 20120512-20:43]/ wheezy main | |
#deb cdrom:[Debian GNU/Linux 6.0.5 _Squeeze_ - Official i386 NETINST Binary-1 20120512-20:43]/ wheezy main | |
deb http://cdn.debian.net/debian/ wheezy main | |
deb-src http://cdn.debian.net/debian/ wheezy main | |
deb http://security.debian.org/ wheezy/updates main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"config_log" : { | |
"direction" : "syslog", | |
"filter" : { | |
"error" : true, | |
"warn" : true, | |
"info" : true, | |
"trace" : true, | |
"debug" : true | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "blink-rgx-led", | |
"version": "1.0", | |
"description": "Blinks a LED equipped with Rooster GX.", | |
"bugs": { | |
"mail": "bugs@example.com" | |
}, | |
"models" : { | |
"Led" : { | |
"array" : false, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var moat = require('moat'); | |
var context = moat.init(); | |
var session = context.session; | |
session.log('blink-rgx-led', 'Start to control blinking LED!'); | |
var mapper = session.newModelMapperStub('Led'); | |
var device = mapper.newModelStub(); | |
device.startBlink(session, null, { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"models" : { | |
"Led" : { | |
"array" : false, | |
"shared" : false, | |
"attributes" : {}, | |
"commands" : { | |
"startBlink" : {"paramType" : null} | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"models" : { | |
"Led" : { | |
"array" : true, | |
"shared" : false, | |
"attributes" : { | |
"ledId": {"type": "int32"} | |
}, | |
"commands" : { | |
"startBlink" : {"paramType" : null}, | |
"stopBlink" : {"paramType" : null} |
NewerOlder