MCPcopy Create free account
hub / github.com/circircir-circle/human_exist_device / onConnect

Method onConnect

ESP32_LD2410/src/main.cpp:174–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172class MyServerCallbacks : public BLEServerCallbacks
173{
174 void onConnect(BLEServer *pServer)
175 {
176 deviceConnected = true;
177 resr_count_down = 999999999; // 一旦连接, 把该值设置到足够大, 避免断开蓝牙
178 oldDeviceConnected = deviceConnected;
179 Serial.println("现在有设备接入~");
180 };
181
182 void onDisconnect(BLEServer *pServer)
183 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected