Bonescript
getPlatform([callback])
Arguments
- callback: called upon completion
Return value
- name: name of the board
- serialNumber: serial number of the board
- version: revision of the board
- bonescript: verison of bonescript
callback(x)
- x: same as the return value.
Example
var b = require('bonescript'); b.getPlatform(printData); function printData(x) { console.log('name = ' + x.name); console.log('version = ' + x.version); console.log('serialNumber = ' + x.serialNumber); console.log('bonescript = ' + x.bonescript); }
Build and execute instructions
- Plug the board in or point to it on the network
- Click the run button above
Last updated by blog.hangerhead.com on Sat Apr 20 2013 05:21:29 GMT-0000 (UTC).