ict-soil-dendrometer-probe/transformers/main/source.js
// Soil moisture payload for command = 0.
Soil moisture payload for command = 0.
Soil moisture payload for command = 0 .
function runTests0() {
  var payload_0 = "AAAHMRBqLy8BAELMR65CrzMzwqxmZg==";
  var result_0 = transform("2019-03-29T06:02:04.539Z", 65959, 15, payload_0);
  assert(result_0.length === 4, 
    'Expected command 0 array length = 4');
  assert (result_0[VWC_COUNT - 2].data.vwcCount === 102.13999938964844, 
    'Expected vwcCount = 102.13999938964844');
  assert (result_0[TEMPERATURE - 2].data.temperature === 87.5999984741211, 
    'Expected temperature = 87.5999984741211');
  assert (result_0[EC - 2].data.ec === -86.19999694824219, 
    'Expected EC = -86.19999694824219');
  assert (result_0[VWC - 2].data.vwc === -65.59798942367554, 
    'Expected EC = -65.59798942367554');
}
function runTests0 ( ) { var payload_0 = "AAAHMRBqLy8BAELMR65CrzMzwqxmZg==" ; var result_0 = transform ( "2019-03-29T06:02:04.539Z" , 65959 , 15 , payload_0 ) ; assert ( result_0 . length === 4 , 'Expected command 0 array length = 4' ) ; assert ( result_0 [ VWC_COUNT - 2 ] . data . vwcCount === 102.13999938964844 , 'Expected vwcCount = 102.13999938964844' ) ; assert ( result_0 [ TEMPERATURE - 2 ] . data . temperature === 87.5999984741211 , 'Expected temperature = 87.5999984741211' ) ; assert ( result_0 [ EC - 2 ] . data . ec === - 86.19999694824219 , 'Expected EC = -86.19999694824219' ) ; assert ( result_0 [ VWC - 2 ] . data . vwc === - 65.59798942367554 , 'Expected EC = -65.59798942367554' ) ; }
Soil moisture payload for command = 0.
Soil moisture payload for command = 0 .