feat&fix: 小智云聊增加蓝牙功能 (#1732)
This commit is contained in:
@ -21,17 +21,25 @@ public:
|
||||
void Shutdown5V();
|
||||
void Start4G();
|
||||
void Shutdown4G();
|
||||
void Enable4G();
|
||||
void Disable4G();
|
||||
void Sleep();
|
||||
void CheckBatteryStatus();
|
||||
void OnChargingStatusChanged(std::function<void(bool)> callback);
|
||||
void OnChargingStatusDisChanged(std::function<void(bool)> callback);
|
||||
void OnBtLinkStatusChanged(std::function<void(bool)> callback);
|
||||
void InitializeBtModul();
|
||||
void DeinitBtModul();
|
||||
private:
|
||||
esp_timer_handle_t timer_handle_;
|
||||
std::function<void(bool)> charging_callback_;
|
||||
std::function<void(bool)> discharging_callback_;
|
||||
std::function<void(bool)> bt_link_callback_;
|
||||
int is_charging_ = -1;
|
||||
int is_discharging_ = -1;
|
||||
int call_count_ = 0;
|
||||
TaskHandle_t m_bt_task_handle;
|
||||
static void BtTask(void *arg);
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user