title: How to display nodejs raw Buffer data as Hex string
body: <p>The following code uses SerialPort module to listen to data from a bluetooth connection.</p>
  
  <p>I am expecting to see a stream of data in Hexadecimal format printed in console. But the console just shows some weird simbols. I want to know how can I decode and display the data in console. </p>
  
  <pre><code>var serialPort = new SerialPort("/dev/tty.EV3-SerialPort", {
    parser: SP.parsers.raw
  }, false); // this is the openImmediately flag [default is true]
  
  serialPort.open(function () {
   console.log('open');
   serialPort.on('data', function(data) {
     var buff = new Buffer(data, 'utf8'); //no sure about this
    console.log('data received: ' + buff.toString());
   });  
  });
  </code></pre>