def device_discovered (self, address, device_class, rssi, name):
if name:<EOL><INDENT>print(("<STR_LIT>" %(address, name, device_class, rssi)))<EOL><DEDENT>else:<EOL><INDENT>print(("<STR_LIT>" % (address, device_class)))<EOL>print(("<STR_LIT>" %(address, device_class, rssi)))<EOL><DEDENT>
Called when a bluetooth device is discovered.

address is the bluetooth address of the device

device_class is the Class of Device, as specified in [1]
             passed in as a 3-byte string

name is the user-friendly name of the device if lookup_names was
set when the inquiry was started.  otherwise None

This method exists to be overriden.

[1] https://www.bluetooth.org/foundry/assignnumb/document/baseband