Remove std::string as the model id and use decoder enum. (#1143)

* Remove std::string as the model id and use decoder enum.

* Update decoder version

* Check model id is in decoder range when launching discovery.

* Add BLEconnect enum MIN/MAX
This commit is contained in:
h2zero authored and GitHub committed 2022-01-24 20:09:15 -06:00
1 parent 91ab8dcdf1
commit e838d3cee0
5 files changed
+67 -44

No files matched your search

+12 -1
View File
@@ -168,7 +168,18 @@ struct BLEdevice {
bool isWhtL;
bool isBlkL;
bool connect;
std::string sensorModel_id;
int sensorModel_id;
};
class BLEconectable {
public:
enum id {
MIN = 1000,
LYWSD03MMC,
MHO_C401,
DT24_BLE,
MAX,
};
};
JsonObject& getBTJsonObject(const char* json = NULL, bool haPresenceEnabled = true);