(self)
Get the receiver signal strength indicator (RSSI) value from the device.

        Returns the RSSI as in integer in dBm.
Get the receiver signal strength indicator (RSSI) value from the device.
Get the receiver signal strength indicator ( RSSI ) value from the device .
def get_rssi(self):
        """
        Get the receiver signal strength indicator (RSSI) value from the device.

        Returns the RSSI as in integer in dBm.
        """
        # The BGAPI has some strange behavior where it will return 25 for
        # the RSSI value sometimes... Try a maximum of 3 times.
        for i in range(0, 3):
            self._backend.send_command(
                CommandBuilder.connection_get_rssi(self._handle))
            _, response = self._backend.expect(
                ResponsePacketType.connection_get_rssi)
            rssi = response['rssi']
            if rssi != 25:
                return rssi
            time.sleep(0.1)
        raise BGAPIError("get rssi failed")
def get_rssi ( self ) : # The BGAPI has some strange behavior where it will return 25 for # the RSSI value sometimes... Try a maximum of 3 times. for i in range ( 0 , 3 ) : self . _backend . send_command ( CommandBuilder . connection_get_rssi ( self . _handle ) ) _ , response = self . _backend . expect ( ResponsePacketType . connection_get_rssi ) rssi = response [ 'rssi' ] if rssi != 25 : return rssi time . sleep ( 0.1 ) raise BGAPIError ( "get rssi failed" )