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

Do I need to 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()?

Parents
  • 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

Reply
  • 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

Children
No Data
Related