This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

btle_connection_timeout while sending large no of packets

Hi, I need to send more than 500 packets(each 20 bytes) to the master for every 1 minute, through the timeout handler. But i cannot able send all the packets, btle_connection_timeout occurs after transmitting approximately 63 packets. Please give me a solution on this.

Regards, Balaji

Parents Reply
  • i am also facing the same problem now,

    this is i am using for sending, what may be the problem, is it possible to send morethan 20 bytes in a single packet?

    uint32_t ble_bts_notify_temp(ble_bts_t * p_bts, uint8_t current_temp) { ble_gatts_hvx_params_t params; uint16_t len = 5; uint8_t value[5]= "name"; memset(&params, 0, sizeof(params)); params.type = BLE_GATT_HVX_NOTIFICATION; params.handle = p_bts->temp_meas_char_handles.value_handle; params.p_data = value; params.p_len = &len;

    	return sd_ble_gatts_hvx(p_bts->conn_handle, &params); 
    

    }

Children
No Data
Related