lib/testlistener.js
/**
 * Emit simulated radio decoding packets
 * @param {TestListener} instance The given instance.
 */
Emit simulated radio decoding packets
@param {TestListener} instance The given instance.
Emit simulated radio decoding packets @param { TestListener } instance The given instance .
function emitRadioDecodings(instance) {
  let time = new Date().getTime();
  let huaweiTime = Math.round(time / 1000).toString(16);
  let simulatedBinaryData = Buffer.from('48570124a52cffffff000001' +
                                        'fee150bada55' + huaweiTime +
                                        instance.rssi[0].toString(16) + 'ff00' +
                                        '0702011a03ff7d02', 'hex');
  updateSimulatedRssi(instance);
  instance.decoder.handleData(simulatedBinaryData, TEST_ORIGIN, time,
                              instance.decodingOptions);
}
function emitRadioDecodings ( instance ) { let time = new Date ( ) . getTime ( ) ; let huaweiTime = Math . round ( time / 1000 ) . toString ( 16 ) ; let simulatedBinaryData = Buffer . from ( '48570124a52cffffff000001' + 'fee150bada55' + huaweiTime + instance . rssi [ 0 ] . toString ( 16 ) + 'ff00' + '0702011a03ff7d02' , 'hex' ) ; updateSimulatedRssi ( instance ) ; instance . decoder . handleData ( simulatedBinaryData , TEST_ORIGIN , time , instance . decodingOptions ) ; }
Emit simulated radio decoding packets
 @param {TestListener} instance The given instance.
Emit simulated radio decoding packets @param { TestListener } instance The given instance .