Show / Hide Table of Contents

    Namespace Sensus.Android.Probes.Context

    Classes

    AndroidAmbientTemperatureProbe

    AndroidBluetoothBroadcastReceiver

    A general-purpose broadcast receiver for monitoring BLE states.

    AndroidBluetoothClientGattCallback

    Android BLE GATT client callback. Makes requests to servers to read a characteristic upon encountering a service.

    AndroidBluetoothClientScannerCallback

    AndroidBluetoothDeviceProximityProbe

    Scans for the presence of other devices nearby that are running the current Protocol. When encountered, this Probe will read the device ID of other devices. This Probe also advertises the presence of the current device and serves requests for the current device's ID. This Probe reports data in the form of BluetoothDeviceProximityDatum objects.

    There are caveats to the conditions under which an Android device running this Probe will detect another device:

    • If the other device is an Android device with Sensus running in the foreground or background, detection is possible.
    • If the other device is an iOS device with Sensus running in the foreground, detection is possible.
    • If the other device is an iOS device with Sensus running in the background, detection is not possible.

    NOTE: The value of Id running on the other device must equal the value of Id running on the current device. When a Protocol is created from within the Sensus app, it is assigned a unique identifier. This value is maintained or changed depending on what you do:

    • When the newly created Protocol is copied on the current device, a new unique identifier is assigned to it. This breaks the connection between the Protocols.

    • When the newly created Protocol is shared via the app with another device, its identifier remains unchanged. This maintains the connection between the Protocols.

    Thus, in order for this AndroidBluetoothDeviceProximityProbe to operate properly, you must configure your Protocols in one of the two following ways:

    • Create your Protocol on one platform (either Android or iOS) and then share it with a device from the other platform for customization. The Id values of these Protocols will remain equal and this AndroidBluetoothDeviceProximityProbe will detect encounters across platforms.

    • Create your Protocols separately on each platform and then set the Id field on one platform (using the "Set Study Identifier" button) to match the Id value of the other platform (obtained via "Copy Study Identifier").

    See the iOS subclass of BluetoothDeviceProximityProbe for additional information.

    AndroidBluetoothServerAdvertisingCallback

    Android BLE server advertising callback. Receives events related to the starting and stopping of BLE advertising. Configures a BLE server that responds to client read requests.

    AndroidBluetoothServerGattCallback

    Android BLE GATT server callback. Serves requests from clients who wish to read the device ID characteristic.

    AndroidHumidityProbe

    AndroidLightProbe

    AndroidSoundProbe

    Back to top Copyright © 2014-2018 University of Virginia
    Generated by DocFX