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:
1 parent
91ab8dcdf1
commit
e838d3cee0
5 files changed
+67
-44
No files matched your search
+12
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user