def cmd_read(self, *args):
    if (args[0][0] == 'name'):
        name = self._magic_blue.get_device_name()
        logger.info('Received name: {}'.format(name))
    elif (args[0][0] == 'device_info'):
        device_info = self._magic_blue.get_device_info()
        logger.info('Received device_info: {}'.format(device_info))
    elif (args[0][0] == 'date_time'):
        datetime_ = self._magic_blue.get_date_time()
        logger.info('Received datetime: {}'.format(datetime_))
def cmd_read(self, *args):
    if (args[0][0] == 'name'):
        name = self._magic_blue.get_device_name()
        logger.info('Received name: {}'.format(name))
    elif (args[0][0] == 'device_info'):
        device_info = self._magic_blue.get_device_info()
        logger.info('Received device_info: {}'.format(device_info))
    elif (args[0][0] == 'date_time'):
        datetime_ = self._magic_blue.get_date_time()
        logger.info('Received datetime: {}'.format(datetime_))