Namespace Sensus.Probes
Classes
DataRateCalculator
A memoryless data rate calculator and rate limiter.
DataRateCalculator.SamplingAction
Sampling action.
ListeningProbe
Listening Probes are triggered by a change in state within the underlying device. For example, when an accelerometer reading is emitted, the
Accelerometer
PollingProbe
Polling Probes are triggered at regular intervals. When triggered, the Polling
Background Considerations
On Android, each Polling
Polling on iOS is generally less reliable than on Android. By design, iOS apps are restricted from performing processing in the background,
with the following exceptions for Polling
Significant location change processing: If Significant
Change is enabled, the PollingPoll Probe will wake up each time the user's physical location changes significantly. This change is triggered by a change in cellular tower, which is roughly on the order of several kilometers.Push notification processing: If you configure push notifications, the Polling
Probe will be woken up at the desired time to take a reading. Note that the reliability of these timings is subject to push notification throttling imposed by the Apple Push Notification Service. The value of PollingSleep should be set conservatively for all probes, for example no lower than 15-20 minutes. The push notification backend server will attempt to deliver push notifications slightly ahead of their scheduled times. If such a push notification arrives at the device before the scheduled time, then the local notification (if AlertDuration MS User is enabled) will be cancelled.When Backgrounded
Beyond these exceptions, all processing within Sensus for iOS must be halted when the user backgrounds the app. Sensus does its best to support
Polling
Probe
Each Probe collects data of a particular type from the device. Sensus contains Probes for many of the hardware sensors present on many smartphones as well as several software events (e.g., receipt of SMS messages). Sensus also contains Probes that can prompt the user for information, which the user supplies via speech or textual input. Sensus defines a variety of Probes, with platform availability and quality varying by device manufacturer (e.g., Apple, Motorola, Samsung, etc.). Availability and reliability of Probes will depend on the device being used.
Probe.MostRecentDatumChangedDelegateAsync
Delegate for methods that handle Most