ict-soil-dendrometer-probe/transformers/main/source.js
// Dendrometer payload for command = 1.
Dendrometer payload for command = 1.
Dendrometer payload for command = 1 .
function runTests1() {
  var payload_1 = "AAAHMRBqLy8BAULMR65CrzMz";
  var result_1 = transform("2019-03-29T06:02:04.539Z", 65959, 15, payload_1);
  assert (result_1.length === 2, 
    'Expected command 1 array length = 2');
  assert (result_1[STEM_DIAMETER].data.stemDiameter === 102.13999938964844, 
    'Expected stem diameter = 102.13999938964844');
  assert (result_1[STEM_TEMPERATURE].data.stemTemperature === 87.5999984741211, 
    'Expected stem tempreature = 87.5999984741211');
}
function runTests1 ( ) { var payload_1 = "AAAHMRBqLy8BAULMR65CrzMz" ; var result_1 = transform ( "2019-03-29T06:02:04.539Z" , 65959 , 15 , payload_1 ) ; assert ( result_1 . length === 2 , 'Expected command 1 array length = 2' ) ; assert ( result_1 [ STEM_DIAMETER ] . data . stemDiameter === 102.13999938964844 , 'Expected stem diameter = 102.13999938964844' ) ; assert ( result_1 [ STEM_TEMPERATURE ] . data . stemTemperature === 87.5999984741211 , 'Expected stem tempreature = 87.5999984741211' ) ; }
Dendrometer payload for command = 1.
Dendrometer payload for command = 1 .