This group includes connections APIs.
Reply to connection parameters update request AT_BLE_CONN_PARAM_UPDATE_REQUEST.
- Parameters
-
[in] | handle | handle of the connection to be updated |
[in] | accept | accept or refuse connection parameters proposed by peer slave device |
[in] | ce_len_min | Minimum CE length |
[in] | ce_len_max | Maximum CE length |
- Returns
- Upon successful completion the function shall return AT_BLE_SUCCESS, Otherwise the function shall return at_ble_status_t
Connect to a peer device.
Connecting to a peer device, implicitly starting the necessary scan operation then connecting if a device in the peers list is found in case of using default mode AT_BLE_CONNECTION_AUTO. In case of using AT_BLE_CONNECTION_DIRECT mode, device will try to connect directly to provided peer address only without scanning. This API returns immediately after the operation is programmed, actual connection establishment or failure is marked with AT_BLE_CONNECTED event
- Parameters
-
[in] | peers | List of peers' addresses that the device will connect to one of them |
[in] | peer_count | Number peers trying to connect with. In case of using AT_BLE_CONNECTION_DIRECT mode, peer_count should be 1. |
[in] | scan_interval | Scan interval in 625us units |
[in] | scan_window | Scan window in 625us units |
[in] | connection_params | Parameters of the established connection |
- Note
- Default connection mode is AT_BLE_CONNECTION_AUTO
- See Also
- at_ble_set_conn_mode
- Returns
- Upon successful completion the function shall return AT_BLE_SUCCESS, Otherwise the function shall return at_ble_status_t
Cancels an ongoing connection attempt.
- Returns
- Upon successful completion the function shall return AT_BLE_SUCCESS, Otherwise the function shall return at_ble_status_t
Update the connection parameters of an ongoing connection.
Connection parameter update command can be used by both master and slave of the connection.
For master of the connection, new connection parameters will be applied immediately.
For slave of the connection, a connection update message request will be send to master. Then master will be able to accept or refuse those parameters within 30 seconds otherwise link is automatically disconnected.
- Note
- This API returns after programming the new values but before they take effect, actual effect of the parameters is marked by the event AT_BLE_CONN_PARAM_UPDATE_DONE
- Parameters
-
[in] | handle | handle of the connection to be updated |
[in] | connection_params | new parameters to be used |
- Returns
- Upon successful completion the function shall return AT_BLE_SUCCESS, Otherwise the function shall return at_ble_status_t
Disconnect a connected peer device and receive response through AT_BLE_DISCONNECTED event.
- Parameters
-
- Note
- At AT_BLE_DISCONNECTED event, for reason of disconnection see Bluetooth error code at Bluetooth core specification; vol 2, Core System Package [BR/EDR Controller volume], Part D
- Returns
- Upon successful completion the function shall return AT_BLE_SUCCESS, Otherwise the function shall return at_ble_status_t
Set connection mode parameter.
- Parameters
-
- Returns
- Upon successful completion the function shall return AT_BLE_SUCCESS, Otherwise the function shall return at_ble_status_t