Last active
December 22, 2015 02:29
-
-
Save toshiyukihina/6403722 to your computer and use it in GitHub Desktop.
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, { | |
success: function(obj) { | |
session.log('blink-rgx-led', 'Succeeded to start blinking the led'); | |
}, | |
error: function(type, code) { | |
session.log('blink-rgx-led', 'Type:' + type + ', Unexpected status => ' + code); | |
} | |
}); | |
session.log('blink-rgx-led', 'Done!'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment