New Data Filters and Bug Fixes
Version 1.6.0 adds support for two new filters, fixes a bug in the GPIO class, and deprecates a few methods in the GPIO and Temperature classes.
Features
- Supports delta value and threshold filters
- Requires firmware 1.0.1 to use
- Deprecates functions that were misspelled or misrepresents the purpose of the function
- Fixes bug in the GPIO class that would cause a crash when used with firmware prior to 1.0.0
Code Changes
FilterConfigBuilder
- Added DeltaValueBuilder and ThresholdBuilder inner classes
GPIO
- Modified code that executed the analog and digital input callbacks to pass in -1 if GPIO pin is not available
- This change also fixes a bug in the callback code that is caused when using the class with firmware prior to 1.0.0
- Deprecated receivedAnalogInputAsAbsValue method
- Replaced with receivedAnalogInputAsAbsReference
- The function name does not accurately reflect what the value parameter signifies
Temperature
- Deprecated withSampingPeriod function in the SamplingConfigBuilder class.
- Replaced with withSamplingPeriod function
- Old function name misspelled "Sampling"