def get_device_name(self):
        """
        return the device name

        :return: str
        """
        command = const.CMD_OPTIONS_RRQ
        command_string = b'~DeviceName\x00'
        response_size = 1024

        cmd_response = self.__send_command(command, command_string, response_size)
        if cmd_response.get('status'):
            device = self.__data.split(b'=', 1)[-1].split(b'\x00')[0]
            return device.decode()
        else:
            return ""
def get_device_name ( self ) : command = const . CMD_OPTIONS_RRQ command_string = b'~DeviceName\x00' response_size = 1024 cmd_response = self . __send_command ( command , command_string , response_size ) if cmd_response . get ( 'status' ) : device = self . __data . split ( b'=' , 1 ) [ - 1 ] . split ( b'\x00' ) [ 0 ] return device . decode ( ) else : return ""
return the device name

        :return: str