Loading…

Method Name: met_m_from_internal_format

Method ID: 0x40A1

Method Label: Decode meters

Method Help: Decode meters from the internal sensor representation


  • {
  • float result;
  • unsigned short temp_ushort;
  • if ((encoded_value & 0x8000) == 0x8000)
  • {
  • result = ((encoded_value - 32768) * 4 + 32768.0) / 1000.0;
  • }
  • else
  • {
  • result = encoded_value / 1000.0;
  • }


Please login for more