Efento Bluetooth
This object is used to initialize Efento bluetooth library as well as is an entry point for all bluetooth operations.
First, use init to initialize the library. Then use scanner to create and start bluetooth scan. Finally use sensorConnection to perform command on already scanned Efento device.
Note: Attempt to use scanner or sensorConnection without running init first, will result in IllegalStateException.
Functions
Creates and configures a BootloaderConnection instance for Efento device. This method prepares the parameters required for establishing a connection, but does not initiate the connection itself.
Creates and configures a GatewayConnection instance for a non-legacy Efento gateway. This method prepares the parameters required for establishing a connection, but does not initiate the connection itself. Use this for gateways where the Gateway.isLegacy flag is false.
Creates and configures a GatewayConnection instance for a legacy Efento gateway. This method prepares the parameters required for establishing a connection, but does not initiate the connection itself. Use this for gateways where the Gateway.isLegacy flag is true.
Initialize Efento bluetooth library.
Creates and configures a Scanner instance for Efento devices.
Creates and configures a SensorConnection instance for a non-legacy Efento sensor. This method prepares the parameters required for establishing a connection, but does not initiate the connection itself. Use this for sensors where the Sensor.isLegacy flag is false.
Creates and configures a SensorConnection instance for a legacy Efento sensor. This method prepares the parameters required for establishing a connection, but does not initiate the connection itself. Use this for sensors where the Sensor.isLegacy flag is true.