ncs v2.6.1
If I use bt_conn_le_create() and do not use the default (0) value for create_param->timeout, the actual connection creation timeout does not match the description in the comment: @brief Connection initiation timeout (N * 10 MS)
For example, if create_param->timeout set to 0, I can add printk in conn.c and find that bt_dev.create_param.timeout = 300, and the actual timeout is indeed 3000ms. However, if create_param->timeout is set to 300, and in conn.c, printk bt_dev.create_param.timeout is also equal to 300, the actual create connection timeout is 300ms!
I use BT_CONN_CB_DEFINE()with .connected , print in the callback and check the timestamp to know the actual timeout duration.
This is very confusing, and I can't see any problems in the code. I hope an expert can answer my doubts.