RPC Signals

On this page you will find the available signals that the rpc server receives, along with a description and the series of arguments it gets. This page is useful if you want to develop a plugin which handles rpc signals.

*Scanner Signals*

Name ID Post Description Arguments
DONGLES_ADDED 100 scanner_dongle_added This signals is generated as a reply to refreshScanners after add_dongle None
NO_DONGLES 101 scanner_no_dongle Generated as a reply to refreshScanners with no add_dongles None
CYCLE_COMPLETE 120 scanner_cycle_complete Generated after a scan cycle has completed, this means all the registered scanner dongles had done they're scanning for this round None
CYCLE_START 121 scanner_cycle_start This signal is generated after startScanningCycle is received None
CYCLE_SCAN_DONGLE 122 scanner_cycle_scan_start Generated each time a dongle starts scanning *address*: dongle address
CYCLE_SCAN_DONGLE_COMPLETED 123 scanner_cycle_scan_end Generated each time a dongle completes scanning *address*: dongle address
DONGLE_NOT_AVAILABLE 124 scanner_cycle_dongle_not_available Some times an inquiry might fail to start *address*: dongle address
FOUND_DEVICE 130 scanner_cycle_found_device Generated when devices had been found. *address*: dongle address *records*: an array of dicts {address, name, devclass, rssi}

*Upload Signals*

Name ID Post Description Arguments
DONGLES_ADDED 500 uploader_dongle_added This signals is generated as a reply to refreshScanners after add_dongle None
NO_DONGLES 501 dongle_no_dongle Generated as a reply to refreshScanners with no add_dongles None
CYCLE_UPLOAD_DONGLE 520 uploader_cycle Generated each time the system switches upload dongles *address*: next uploader dongle to use
FILE_UPLOADED 530 uploader_success Generated when the file has been accepted (retval=0 from obexftp) *dongle*: address of uploader, *address*: remote device address, *port*: port used for the obex transfer, *files*: array of file names sent
FILE_FAILED 531 uploader_failed Generated when the file upload has been failed (retval!=0 from obexftp) *dongle*: address of uploader, *address*: remote device address, *port*: port used for the obex transfer, *files*: array of file names sent, *stdout*: standard output from obexftp, *stderr*: error output from obexftp
SDP_RESOLVED 540 uploader_spd_ok SDP record has been found *dongle*: address of uploader, *address*: remote device address, *port*: port where the service is provided.
SDP_NORECORD 541 uploader_spd_no SDP no record has been found (service not provided) *dongle*: address of uploader, *address*: remote device address.
SDP_TIMEOUT 542 uploader_spd_timeout SDP resolving has timedout (not yet used) *dongle*: address of uploader, *address*: remote device address.
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License