• Home
  • Raw
  • Download

Lines Matching refs:print_message

25 def print_message(message, newlines=2):  function
54 print_message('neard may have crashed or disappeared. '
59 print_message('Could not find object.')
61 print_message(str(e))
63 print_message(str(e))
178 print_message('Failed to create a proxy to the Manager interface.')
203 print_message('Added adapter: ' + adapter)
225 print_message('Removed adapter: ' + adapter)
234 print_message('Found ' + name + ': ' +
245 print_message('No adapters found.')
248 print_message(' ' + str(adapter), newlines=0)
268 print_message('Status ' + adapter + ': ', newlines=0)
274 print_message(' ' + key + ' = ' + value, newlines=0)
302 print_message('Started polling.')
315 print_message('Stopped polling.')
328 print_message('Tag "' + tag + '" not found.')
331 print_message('Tag ' + tag + ': ', newlines=1)
334 print_message(' ' + key + ' = ' + str(value), newlines=0)
338 print_message('Records: ', newlines=1)
354 print_message('Device "' + device + '" not found.')
358 print_message('No records on device.')
360 print_message('Records: ', newlines=1)
375 print_message('Record "' + record + '" not found.')
378 print_message('Record ' + record + ': ', newlines=1)
391 print_message('Writing record type "' + record_type +
414 print_message('Tag "' + tag + '" not found.')
417 print_message('Tag written!')
434 print_message('Device "' + device + '" not found.')
437 print_message('NDEF pushed to device!')
454 print_message('NFC console! Run "help" for a list of commands.',
467 print_message('Command "initialize" expects no arguments.')
473 print_message('Initializes the neard D-Bus client. This can be '
480 print_message('Command "adapters" expects no arguments.')
486 print_message('Displays the D-Bus object paths of the available '
493 print_message('Usage: adapter_status <adapter>')
499 print_message('Returns the properties of the given NFC adapter.\n\n'
506 print_message('Usage: enable_adapter <adapter>')
512 print_message('Powers up the adapter. Ex: "enable_adapter nfc0"')
518 print_message('Usage: disable_adapter <adapter>')
524 print_message('Powers down the adapter. Ex: "disable_adapter nfc0"')
530 print_message('Usage: start_poll <adapter>')
536 print_message('Initiates a poll loop.\n\n Ex: "start_poll nfc0"')
542 print_message('Usage: stop_poll <adapter>')
548 print_message('Stops a poll loop.\n\n Ex: "stop_poll nfc0"')
554 print_message('Usage read_tag <tag>')
560 print_message('Reads the contents of a tag. Ex: read_tag nfc0/tag0')
565 print_message('Usage: write_tag <tag> Text <encoding> '
569 print_message('Encoding must be one of "UTF-8" or "UTF-16".')
578 print_message('Usage: write_tag <tag> URI <uri>')
583 print_message('Only types "Text" and "URI" are supported by this '
591 print_message('Usage: write_tag <tag> [params]')
602 print_message('Writes the given data to a tag. Usage:\n'
610 print_message('Usage read_device <device>')
616 print_message('Reads the contents of a device. Ex: read_device '
623 print_message('Usage: push_to_device <device> [params]')
634 print_message('Pushes the given data to a device. Usage:\n'
646 print_message('Command "exit" expects no arguments.')
650 print_message('Goodbye!')
654 print_message('Did not understand: ' + resp)
659 print_message('Exits the console.')