我的ESP32(主)和NRF52840(从)通信传数据的过程中蓝牙会突然断掉重连,大概会浪费掉1-2s的时间,有没有可以配置ble连接时长的啊,是在在ESP32中配置,还是52840中配置?求大佬指点。比如说这种情况:
Message arrived [port/rnd/time/2] {"lift":8,"time":9}
Setting new characteristic value to "9"
Message arrived [port/rnd/time/2] {"lift":8,"time":8}
Setting new characteristic value to "8"
Message arrived [port/rnd/time/2] {"lift":8,"time":0}
Setting new characteristic value to "0"
Message arrived [port/rnd/time/2] {"lift":8,"time":-1}
Setting new characteristic value to "-1"
Message arrived [port/rnd/time/2] {"lift":8,"time":-1}
Setting new characteristic value to "-1"
onDisconnect
Message arrived [port/rnd/time/2] {"lift":8,"time":-1}
Forming a connection to e2:e4:e5:ae:bc:65
- Created client
- 2-BLE FreeHeap: 92220
onConnect
- Connected to server
- Found our service
- Found our characteristic
Setting new characteristic value to "-1"
Message arrived [port/rnd/time/2] {"lift":8,"time":-1}
Setting new characteristic value to "-1"