Fork me on GitHub
beagleboard.org

Bonescript

You might be able to see a newer version of this on beagleboard.org/support/bonescript/getPlatform

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

Simply plug the board in or point to it on the network.

See also

Related functions