_handleLoginResponse(data) {
        if (data[8] === 0x00) {
            debug('login success');
            this._resolveResponse(0x09, true);
            this.pingTimeout = setTimeout(() => {
                this.pingTimeout = null;
                this._sendPing();
            }, this.options.pingInterval || PH803W_PING_INTERVAL);
        } else {
            debug('login failed');
            this._rejectResponse(0x09, new Error('Login rejected by device, check the passcode'));
        }
    }
/**
     * Handle a Login-Response from Device
     *
     * @param {Buffer} data Received data
     * @private
     */
Handle a Login-Response from Device
@param {Buffer} data Received data
@private
Handle a Login - Response from Device @param { Buffer } data Received data @private
_handleLoginResponse(data) {
        if (data[8] === 0x00) {
            debug('login success');
            this._resolveResponse(0x09, true);
            this.pingTimeout = setTimeout(() => {
                this.pingTimeout = null;
                this._sendPing();
            }, this.options.pingInterval || PH803W_PING_INTERVAL);
        } else {
            debug('login failed');
            this._rejectResponse(0x09, new Error('Login rejected by device, check the passcode'));
        }
    }
_handleLoginResponse ( data ) { if ( data [ 8 ] === 0x00 ) { debug ( 'login success' ) ; this . _resolveResponse ( 0x09 , true ) ; this . pingTimeout = setTimeout ( ( ) => { this . pingTimeout = null ; this . _sendPing ( ) ; } , this . options . pingInterval || PH803W_PING_INTERVAL ) ; } else { debug ( 'login failed' ) ; this . _rejectResponse ( 0x09 , new Error ( 'Login rejected by device, check the passcode' ) ) ; } }
Handle a Login-Response from Device
 @param {Buffer} data Received data
 @private
Handle a Login - Response from Device @param { Buffer } data Received data @private