Add Switchbot support and discovery. (#995)
* Use a task to process immediate BLE actions to prevent MQTT disconnection if the action takes too long to complete. * Add state_on and state_off parameters to createDiscovery
This commit is contained in:
1 parent
a15a1c0851
commit
8d6acbee12
7 files changed
+222
-62
No files matched your search
@@ -66,5 +66,14 @@ public:
|
||||
void publishData() override;
|
||||
};
|
||||
|
||||
class SBS1_connect : public zBLEConnect {
|
||||
uint8_t m_notifyVal;
|
||||
void notifyCB(NimBLERemoteCharacteristic* pChar, uint8_t* pData, size_t length, bool isNotify);
|
||||
|
||||
public:
|
||||
SBS1_connect(NimBLEAddress& addr) : zBLEConnect(addr) {}
|
||||
bool processActions(std::vector<BLEAction>& actions) override;
|
||||
};
|
||||
|
||||
#endif //ESP32
|
||||
#endif //zBLEConnect_h
|
||||
Reference in new issue
Block a user