lib/binarypacketdecoder.js
/**
 * Determine if the given data begins with the Huawei vendor ID.
 * @param {Buffer} data The binary packet as a buffer.
 */
Determine if the given data begins with the Huawei vendor ID.
@param {Buffer} data The binary packet as a buffer.
Determine if the given data begins with the Huawei vendor ID . @param { Buffer } data The binary packet as a buffer .
function isValidHuawei(data) {
  let isHuaweiVendorId = (data.readUInt16BE(0) === HUAWEI_VENDOR_ID);
  return isHuaweiVendorId;
}
function isValidHuawei ( data ) { let isHuaweiVendorId = ( data . readUInt16BE ( 0 ) === HUAWEI_VENDOR_ID ) ; return isHuaweiVendorId ; }
Determine if the given data begins with the Huawei vendor ID.
Determine if the given data begins with the Huawei vendor ID .