| 172 | class 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 | { |
nothing calls this directly
no outgoing calls
no test coverage detected