Hi there,
Just a minor flaw in the exercise, but a question concerning the callback from the event “le_param_updated”. In the solution to query the connection interval, it says that “interval” is deprecated.
structbt_conn_infoinfo;int err = bt_conn_get_info(conn, &info);double connection_interval = BT_GAP_US_TO_CONN_INTERVAL(info.le.interval) * 1.25;There is an easy fix for that
The info.le.interval_us is a uint32_t, whereas the deprecated info.le.interval is a uint16_t. But now in the callback for the event “le_param_update” there is still the deprecated uint16_t interval.
and as far as I saw, the interval in the callback is always 0. I am not sure if that is due to my phone though.
Kind regards, Dani
