Browse Source

update(VK_Client):教培版本重启用超时断连(6s)

dev-rebuild
jujihjuji 3 months ago
parent
commit
ee33a65fe1
  1. 11
      applications/VK_Client.c

11
applications/VK_Client.c

@ -292,11 +292,12 @@ int16_t client_yield(CLte_dev_t *pLte_dev) {
while (1) {
if (pLte_dev->client1->connect_sta == true) {
rt_err_t ret = rt_sem_take(pLte_dev->com_dev_rx_sem, 1000);
// if (rt_tick_get() - last_rx_tick > RT_TICK_PER_SECOND * 10) {
// rt_kprintf("timeout!!! reconnect.\n");
// hw_printf("timeout!!! reconnect.\n");
// pLte_dev->client1->connect_sta = false;
// }
#ifdef EDU_TRAINING
if (rt_tick_get() - last_rx_tick > RT_TICK_PER_SECOND * 6) {
LOG_I("timeout!!! reconnect.\n");
pLte_dev->client1->connect_sta = false;
}
#endif
if (RT_EOK == ret) {
rt_ssize_t len = 0;
while (1) {

Loading…
Cancel
Save