Open wiesener opened 5 years ago
I've just checked: write_value calls: gatt_characteristic1_call_write_value_sync Which seems to be generated code? Is there a way to call it asynchronously? And is there a way to reduce the connection interval from dbus?
I've just checked: write_value calls: gatt_characteristic1_call_write_value_sync Which seems to be generated code? Is there a way to call it asynchronously? And is there a way to reduce the connection interval from dbus?
I've measured the duration of sending one packet of 8 bytes to the peripheral with the code below:
auto tick = boost::posix_time::microsec_clock::local_time(); this->nus_char_tx->write_value(buffer); auto now = boost::posix_time::microsec_clock::local_time(); boost::posix_time::time_duration diff = now - tick; auto mili = diff.total_milliseconds(); std::cout << "Time elpased: " << mili << std::endl;
It gives me around 70-90 ms. My peripheral set the connection interval between 7.5-75 ms. So how could it be that long for sending just some data.
Best regards,