Various improvements (#264)
- Replace C function pointers with C++ `std::function` in `Thread`, `Timer` and `DispatcherThread` - Rename `SystemEvent`-related functions - WiFi: fix auto-connect when WiFi disconnects from bad signal - WiFi: fix auto-connect when WiFi fails to auto-connect - WiFi: implement disconnect() when tapping connected WiFi ap in WiFi management app
This commit is contained in:
committed by
GitHub
parent
d72852a6e2
commit
3f1bfee3f5
@@ -31,10 +31,8 @@ private:
|
||||
bool enabled = false;
|
||||
|
||||
// Dispatcher calls this and forwards to non-static function
|
||||
static void enableFromDispatcher(std::shared_ptr<void> context);
|
||||
void enableFromDispatcher(const EspNowConfig& config);
|
||||
|
||||
static void disableFromDispatcher(std::shared_ptr<void> context);
|
||||
void disableFromDispatcher();
|
||||
|
||||
static void receiveCallback(const esp_now_recv_info_t* receiveInfo, const uint8_t* data, int length);
|
||||
|
||||
Reference in New Issue
Block a user