|
Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
|
Parameters for epacket_bt_gatt_connect. More...
#include <epacket_bt_central.h>
Data Fields | |
| struct bt_le_conn_param | conn_params |
| Connection parameters to setup connection with. | |
| bt_addr_le_t | peer |
| Peer device to connect to. | |
| k_timeout_t | inactivity_timeout |
| Automatically disconnect if no data sent or received on the command or data characteristics for this long. | |
| k_timeout_t | absolute_timeout |
| Unconditionally terminate the connection after this long. | |
| uint32_t | conn_timeout_ms |
| Duration to wait while attempting to setup connection. | |
| uint8_t | preferred_phy |
| Preferred PHY of the connection (BT_GAP_LE_PHY_*) | |
| bool | subscribe_commands |
| Subscribe to the command characteristic. | |
| bool | subscribe_data |
| Subscribe to the data characteristic. | |
| bool | subscribe_logging |
| Subscribe to the logging characteristic. | |
| bool | subscribe_cloud_uplink |
| Subscribe to the cloud uplink characteristic. | |
| bool | wait_subscriptions |
| Wait until subscriptions apply to return. | |
| bool | existing_only |
| Only reuse an existing connection; return -ENOTCONN rather than creating one. | |
Parameters for epacket_bt_gatt_connect.
| k_timeout_t epacket_bt_gatt_connect_params::absolute_timeout |
Unconditionally terminate the connection after this long.
K_FOREVER to disable.
| struct bt_le_conn_param epacket_bt_gatt_connect_params::conn_params |
Connection parameters to setup connection with.
| uint32_t epacket_bt_gatt_connect_params::conn_timeout_ms |
Duration to wait while attempting to setup connection.
| bool epacket_bt_gatt_connect_params::existing_only |
Only reuse an existing connection; return -ENOTCONN rather than creating one.
| k_timeout_t epacket_bt_gatt_connect_params::inactivity_timeout |
Automatically disconnect if no data sent or received on the command or data characteristics for this long.
K_FOREVER to disable.
| bt_addr_le_t epacket_bt_gatt_connect_params::peer |
Peer device to connect to.
| uint8_t epacket_bt_gatt_connect_params::preferred_phy |
Preferred PHY of the connection (BT_GAP_LE_PHY_*)
| bool epacket_bt_gatt_connect_params::subscribe_cloud_uplink |
Subscribe to the cloud uplink characteristic.
| bool epacket_bt_gatt_connect_params::subscribe_commands |
Subscribe to the command characteristic.
| bool epacket_bt_gatt_connect_params::subscribe_data |
Subscribe to the data characteristic.
| bool epacket_bt_gatt_connect_params::subscribe_logging |
Subscribe to the logging characteristic.
| bool epacket_bt_gatt_connect_params::wait_subscriptions |
Wait until subscriptions apply to return.