Skip to content

ConnectivitySamplingPackage

The sampling package for collecting connectivity, wifi, Bluetooth and beacon data.

Register it before you deploy a protocol that uses its measure types:

SamplingPackageRegistry().register(ConnectivitySamplingPackage());

Key points:

Inheritance

Constructors

ConnectivitySamplingPackage

ConnectivitySamplingPackage()

Constants

BEACON

String const BEACON

Measure type for Beacon ranging to detect and estimate proximity to Bluetooth beacons (e.g., iBeacon, Eddystone). Collects beacon identifiers (UUID, major, minor), estimated distance and RSSI while the phone is inside a monitored region.

BLUETOOTH

String const BLUETOOTH

Measure type for collection of nearby Bluetooth devices on a regular basis.

CONNECTIVITY

String const CONNECTIVITY

Measure type for continuous collection of connectivity status of the phone (none/mobile/wifi).

  • Event-based measure.
  • Uses the Smartphone primary device for data collection.
  • No sampling configuration needed.
  • Collected as Connectivity data.

WIFI

String const WIFI

Measure type for collection of wifi information (SSID, BSSID, IP).

Properties

samplingSchemes

DataTypeSamplingSchemeMap get samplingSchemes
override

The default sampling schemes for all dataTypes in this package.

All sampling packages should defined a DataTypeSamplingScheme for each data type.

Methods

create

Probe? create(
  1. String type
)
override

Creates a new Probe of the specified type. Note that type should be one of the dataTypes that this package supports. Returns null if a probe cannot be created for the type.

onRegister

void onRegister()
override

Callback method when this package is being registered.