Added
- New error codes .zeroingRequired and .deviceNotReady for when the SDK detects that the sensor needs to zero or is currently zeroing, respectively. All functions that interact with the CO sensor may return these error codes.
Added
- ConnectionUpdate protocol which returns more detailed connection state information beyond success or failure.
Added
- New scanAndConnect() function which, going forward, will be the only way to connect to a Smokerlyzer device since it handles zeroing and has been updated to use ConnectionUpdate protocol.
Added
- New error codes .scanFailed and .failedToFinalize for scanAndConnect() function, and .failedToStabilize for breath test functions.
Added
- getDeviceName(), getIsConnected() functions for parity with Android SDK.
Added
- New enableSensor() and disableSensor() which are zeroing-aware versions of setSensorState().
Added
- New error codes .zeroingRequired and .deviceNotReady for when the SDK detects that the sensor needs to zero or is currently zeroing, respectively. All functions that interact with the CO sensor may return these error codes.
Changed
- getBatteryLife() renamed to getBatteryReading()
Changed
- getSerial() renamed to getSerialNumber()
Changed
- getUsageCount() renamed to getUsage()
Changed
- disconnectFromPeriperhal() renamed to disconnect()
Fixed
- Firmware version now parses correctly.
Depreciated
- getCoppm() from SmokerlyzerBluetooth
Depreciated
- scanForPeripheral() from SmokerlyzerBluetooth
Depreciated
- connectToPeripheral() from SmokerlyzerBluetooth
Depreciated
- setSensorState() from SmokerlyzerBluetooth
Additional Developer Notes
- Please note this SDK version is a beta release and has undergone only basic testing during development. This version can only be used for DEMONSTRATION PURPOSES only.