function handleCode(code) {
  log('evaluating: >>>\r\n ' + code + ' \r\n>>>EOT');
  try {
    evalInContext(code);
  } catch (err) {
    fakeConsole.error(err);
  }

  serialDevice.write(fakeConsole.toString(), function (err) {
    if (err) {
      log('error while sending console data: ' + err);
    } else {
      fakeConsole.clear();
    }
  });
}
// handles code thats to be evaluated and sends response to uart device
handles code thats to be evaluated and sends response to uart device
handles code thats to be evaluated and sends response to uart device
function handleCode(code) {
  log('evaluating: >>>\r\n ' + code + ' \r\n>>>EOT');
  try {
    evalInContext(code);
  } catch (err) {
    fakeConsole.error(err);
  }
  serialDevice.write(fakeConsole.toString(), function (err) {
    if (err) {
      log('error while sending console data: ' + err);
    } else {
      fakeConsole.clear();
    }
  });
}
function handleCode ( code ) { log ( 'evaluating: >>>\r\n ' + code + ' \r\n>>>EOT' ) ; try { evalInContext ( code ) ; } catch ( err ) { fakeConsole . error ( err ) ; } serialDevice . write ( fakeConsole . toString ( ) , function ( err ) { if ( err ) { log ( 'error while sending console data: ' + err ) ; } else { fakeConsole . clear ( ) ; } } ) ; }
handles code thats to be evaluated and sends response to uart device
handles code thats to be evaluated and sends response to uart device