Add Pro Check Universal sensor support. (#5798)

Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
Sean Brogan 2023-11-27 23:00:48 -08:00 committed by GitHub
parent 3940c6ac4e
commit af8258168b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -54,7 +54,8 @@ bool MopekaProCheck::parse_device(const esp32_ble_tracker::ESPBTDevice &device)
if (static_cast<SensorType>(manu_data.data[0]) != STANDARD_BOTTOM_UP && if (static_cast<SensorType>(manu_data.data[0]) != STANDARD_BOTTOM_UP &&
static_cast<SensorType>(manu_data.data[0]) != LIPPERT_BOTTOM_UP && static_cast<SensorType>(manu_data.data[0]) != LIPPERT_BOTTOM_UP &&
static_cast<SensorType>(manu_data.data[0]) != PLUS_BOTTOM_UP) { static_cast<SensorType>(manu_data.data[0]) != PLUS_BOTTOM_UP &&
static_cast<SensorType>(manu_data.data[0]) != PRO_UNIVERSAL) {
ESP_LOGE(TAG, "Unsupported Sensor Type (0x%X)", manu_data.data[0]); ESP_LOGE(TAG, "Unsupported Sensor Type (0x%X)", manu_data.data[0]);
return false; return false;
} }

View File

@ -17,7 +17,9 @@ enum SensorType {
TOP_DOWN_AIR_ABOVE = 0x04, TOP_DOWN_AIR_ABOVE = 0x04,
BOTTOM_UP_WATER = 0x05, BOTTOM_UP_WATER = 0x05,
LIPPERT_BOTTOM_UP = 0x06, LIPPERT_BOTTOM_UP = 0x06,
PLUS_BOTTOM_UP = 0x08 PLUS_BOTTOM_UP = 0x08,
PRO_UNIVERSAL = 0xC // Pro Check Universal
// all other values are reserved // all other values are reserved
}; };