Shop - GammaGames/kano_wand GitHub Wiki
A scanner class to connect to wands
Instance variables
wand_class
{class} -- Class to use for new wand devicesdebug
{bool} -- Print debug messages
Instance methods
Constructor
- Create a new scanner- Keyword Arguments:
wand_class
{class} -- Class to use when connecting to wand (default: {Wand})debug
{bool} -- Print debug messages (default: {False})
- Keyword Arguments:
scan
- Scan for devices. By default it will scan and connect to any Kano wands, but the behavior can be modified with the provided arguments- Keyword Arguments:
name
{str} -- Name of the device to scan for (default: {None})prefix
{str} -- Prefix of name of device to scan for (default: {"Kano-Wand"})mac
{str} -- MAC Address of the device to scan for (default: {None})timeout
{float} -- Timeout before returning from scan (default: {1.0})connect
{bool} -- Connect to the wands automatically (default: {False})
- Returns {Wand[]} -- Array of found wand objects
- Keyword Arguments: