ActivitySense
ActivitySense

Contains all of the ActivitySense options that can be configured for a WirelessNode.  Activity Sense is a power saving feature that allows a Node to be in a low-power state when no activity is suspected, and then immediately jump to its normal sampling state when a certain activity threshold is reached.

enabled
bool enabled() const

Gets whether Activity Sense is enabled or disabled in this options object.

Returns

true if Activity Sense is enabled in this options object, false if it is disabled.

enabled
void enabled(
bool enable
)

Sets whether Activity Sense is enabled or disabled in this options object.

Parameters
enable
bool

Whether to enable (true) or disable (false) Activity Sense mode in this options object.

activityThreshold
float activityThreshold() const

Gets the current activity threshold value in this options object.  This is the threshold the channel must exceed, for activityTime seconds to begin sampling.

Returns

The activity threshold value (in G's) set in this options object.

activityThreshold
void activityThreshold(
float threshold
)

Sets the activity threshold value in this options object.  This is the threshold the channel must exceed, for activityTime seconds to begin sampling.

Parameters
threshold
float

The activity threshold value (in G's) to set in this options object.

inactivityThreshold
float inactivityThreshold() const

Gets the current inactivity threshold value in this options object.  This is the threshold the channel must drop below, for inactivityTimeout seconds to begin sampling.

Returns

The inactivity threshold value (in G's) set in this options object.

inactivityThreshold
void inactivityThreshold(
float threshold
)

Sets the inactivity threshold value in this options object.  This is the threshold the channel must drop below, for inactivityTimeout seconds to begin sampling.

Parameters
threshold
float

The inactivity threshold value (in G's) to set in this options object.

activityTime
float activityTime() const

Gets the amount of time that activity must be seen above activityThreshold before the Node enters its sampling mode, currently set in this options object.

Returns

The activity time value set in this options object.

activityTime
void activityTime(
float time
)

Sets the amount of time that activity must be seen above activityThreshold before the Node enters its sampling mode, in this options object.

Parameters
time
float

The activity time value to set in this options object.

inactivityTimeout
float inactivityTimeout() const

Gets the current amount of time that the Activity Sense mode runs without a value over the activityThreshold before it goes back into a low power mode, in this options object.

Returns

The inactivity timeout value set in this options object.

inactivityTimeout
void inactivityTimeout(
float timeout
)

Sets the current amount of time that the Activity Sense mode runs without a value over the activityThreshold before it goes back into a low power mode, in this options object.

Parameters
timeout
float

The inactivity timeout value to set in this options object.