NIMMSTAManager
Holds the connected devices of the NIMMSTA App and some settings. Now uses dependency injection instead of singleton pattern.
Properties
Indicates whether the system allows managing multiple connected devices simultaneously. This property can be null if the setting value is not initialized or retrieved.
Returns currently connected devices
Provides a list of currently managed NIMMSTA devices. Each device in the list represents an instance of NIMMSTADevice, which is managed maintained by this NIMMSTAManager instance.
Determines whether a button input should be interpreted as a motion trigger.
Stores and manages the current settings of the NIMMSTAManager.
Functions
Adds or updates NIMMSTADevice in devices
Associates a light tag with a specific location on a device, identified by its MAC address.
Cancels all ongoing connect attempts
Cancels a specific ongoing connect attempt with the given connectionCode or address
Cancels the search for scanners
Gets info if compatibility mode can be changed.
Gets and sets compatibility mode. Please check canChangeCompatibilityMode if can be changed.
Tries to connect to a device with the given address Can be canceled with cancelConnect
Tries to connect to a device with the given connection code Can be canceled with cancelConnect
Detaches a light tag associated with a specific MAC address.
Displays the connect activity to scan with a scanner
Gets a new connection code from the NIMMSTA App
Tries to return the device with the given address null if not found
Initial request after creation to get devices and settings
Removes a specific device from the list of managed devices.
Removes a device with the specified address from the list of managed devices.
Starts the search for light tags
Starts the search for scanners.
Sets the desired light tags, associating each tag with the default illumination configuration.
Sets the desired light tags with the specified illumination configuration.
Sets the desired light tags with a specific illumination configuration.
Sets the desired light tags associated with the specified MAC addresses, applying the default illumination configuration for each light tag.
Sets the desired light tags associated with the given MAC addresses, applying the specified illumination configuration to each tag.
Sets the desired light tags for the specified devices, identified by their MAC addresses, applying the given illumination configuration settings which include color, intensity, and blinking pattern.
Cancels the search for light tags