Discovery with theengs decoder (#1106)

* Discovery with theengs decoder

* Add devices to doc

* Correct missing suffix for DT24
This commit is contained in:
Florian authored and GitHub committed 2021-12-11 11:54:08 -06:00
1 parent 7c5538be65
commit 7dc49165a0
8 files changed
+119 -424

No files matched your search

+2 -2
View File
@@ -143,9 +143,9 @@ void LYWSD03MMC_connect::notifyCB(NimBLERemoteCharacteristic* pChar, uint8_t* pD
for (std::vector<BLEdevice*>::iterator it = devices.begin(); it != devices.end(); ++it) {
BLEdevice* p = *it;
if ((strcmp(p->macAdr, (char*)mac_address.c_str()) == 0)) {
if (p->sensorModel == LYWSD03MMC)
if (p->sensorModel_id.compare("LYWSD03MMC") == 0)
BLEdata["model"] = "LYWSD03MMC";
else if (p->sensorModel == MHO_C401)
else if (p->sensorModel_id.compare("MHO_C401") == 0)
BLEdata["model"] = "MHO_C401";
}
}