Connections to my peripheral device are generally very short. I don't really need to have my device request a connection parameters update.
Does this mean that I can safely ignore the Connection Parameters Module and not call ble_conn_params_init()?
Connections to my peripheral device are generally very short. I don't really need to have my device request a connection parameters update.
Does this mean that I can safely ignore the Connection Parameters Module and not call ble_conn_params_init()?
Yes, there is no problem to not include ble_conn_params module. Though I would then recommend you to have a timeout handler in your application to ensure that the peripheral will disconnect after a certain of period of time if the central for unknown doesn't do as you expect. ("Unknown" could be the application on the central crash, and for that reason does not dicsonnect as intended.)
Yes, there is no problem to not include ble_conn_params module. Though I would then recommend you to have a timeout handler in your application to ensure that the peripheral will disconnect after a certain of period of time if the central for unknown doesn't do as you expect. ("Unknown" could be the application on the central crash, and for that reason does not dicsonnect as intended.)
Hi Kenneth -
Thanks for the response.
Our device will spend 95+% of it's time as a Broadcaster. We'll bring it into the office, configure the type of sensor we will be wiring it to, and take it back out on the floor.
In other words, connections to our configuration service will be very rare and only under reasonably well controlled conditions.
Since the device is battery operated, I've been trying to toss out everything I don't need that might consume even a little power.
Cheers!
--- ta2
@ta2: If the amount of time your device enters connection mode is very little compare to the idle and advertising time, I think it's doesn't matter if you have the connection parameter update or not.
But it will save you some code memory of course.
If you are happy with the answer from Kenneth, could you accept the answer ?
Hung Bai -
I'm OK on code memory at the moment, but there is an advantage to removing code in that it one less thing to execute. and, in this case, I can eliminate a timer as well.
--- ta2