function toTemperature(upper4, lower8) {
  var data = ((parseInt(upper4,16) % 16) * 256) + parseInt(lower8,16);
  if(data > 2047) {
    return (data - 4096) / 16;
  }
  return data / 16;
}
/**
 * Convert the given bytes to temperature.
 * @param {String} upper4 The most-significant 4 bits of the temperature.
 * @param {String} lower8 The least-significant 8 bits of the temperature.
 */
Convert the given bytes to temperature.
@param {String} upper4 The most-significant 4 bits of the temperature.
@param {String} lower8 The least-significant 8 bits of the temperature.
Convert the given bytes to temperature . @param { String } upper4 The most - significant 4 bits of the temperature . @param { String } lower8 The least - significant 8 bits of the temperature .
function toTemperature(upper4, lower8) {
  var data = ((parseInt(upper4,16) % 16) * 256) + parseInt(lower8,16);
  if(data > 2047) {
    return (data - 4096) / 16;
  }
  return data / 16;
}
function toTemperature ( upper4 , lower8 ) { var data = ( ( parseInt ( upper4 , 16 ) % 16 ) * 256 ) + parseInt ( lower8 , 16 ) ; if ( data > 2047 ) { return ( data - 4096 ) / 16 ; } return data / 16 ; }
Convert the given bytes to temperature.
Convert the given bytes to temperature .