Skip to content

Instantly share code, notes, and snippets.

@jmorrell
Created July 10, 2013 03:15
Show Gist options
  • Save jmorrell/5963214 to your computer and use it in GitHub Desktop.
Save jmorrell/5963214 to your computer and use it in GitHub Desktop.
johnny-five error
$ node
> var five = require("johnny-five");
undefined
> var board = new five.Board();
1373425923774 Board Connecting...
undefined
> 1373425923777 Serial Found possible serial port /dev/cu.usbmodem1411
1373425923778 Board -> Serialport connected /dev/cu.usbmodem1411
1373425927165 Board <- Serialport ready /dev/cu.usbmodem1411
string_decoder.js:109
charStr += buffer.toString(this.encoding, 0, end);
^
RangeError: toString() radix argument must be between 2 and 36
at Number.toString (native)
at StringDecoder.write (string_decoder.js:109:21)
at ReadStream.onData (readline.js:839:39)
at ReadStream.EventEmitter.emit (events.js:117:20)
at Board.<anonymous> (/Users/jmorrell/Dropbox/workspace/arduino/node_modules/johnny-five/lib/board.js:283:27)
at Board.<anonymous> (/Users/jmorrell/Dropbox/workspace/arduino/node_modules/johnny-five/lib/board.js:130:18)
at null.<anonymous> (/Users/jmorrell/Dropbox/workspace/arduino/node_modules/johnny-five/node_modules/firmata/lib/firmata.js:385:25)
at g (events.js:175:14)
at EventEmitter.emit (events.js:92:17)
at Object.SYSEX_RESPONSE.(anonymous function) [as 106] (/Users/jmorrell/Dropbox/workspace/arduino/node_modules/johnny-five/node_modules/firmata/lib/firmata.js:211:11)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment