|
FireSync API
|
| kStatus kHxNode_AddEnvironUpdateHandler | ( | kHxNode | node, |
| kCallbackFx | function, | ||
| kPointer | receiver | ||
| ) |
Registers a callback function for periodic environment updates.
This function allows an application to take advantage of the environment polling infrastructure that already exists within the kHardware library, rather than duplicating that infrastructure. Registered callbacks can perform I/O that would normally be unsuitable for frequent health callbacks. (The environment callback period will typically be 0.2 - 1 Hz, while the health callback period might be 5 Hz or more.)
Note, environmental monitoring callbacks may be disabled in rescue firmware builds, to increase system stability. In this case, callback registration will succeed, but the specified callbacks will never be invoked.