Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
epacket_bt_gatt_connect_params Struct Reference

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.

Detailed Description

Parameters for epacket_bt_gatt_connect.

Field Documentation

◆ absolute_timeout

k_timeout_t epacket_bt_gatt_connect_params::absolute_timeout

Unconditionally terminate the connection after this long.

K_FOREVER to disable.

◆ conn_params

struct bt_le_conn_param epacket_bt_gatt_connect_params::conn_params

Connection parameters to setup connection with.

◆ conn_timeout_ms

uint32_t epacket_bt_gatt_connect_params::conn_timeout_ms

Duration to wait while attempting to setup connection.

◆ existing_only

bool epacket_bt_gatt_connect_params::existing_only

Only reuse an existing connection; return -ENOTCONN rather than creating one.

◆ inactivity_timeout

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.

◆ peer

bt_addr_le_t epacket_bt_gatt_connect_params::peer

Peer device to connect to.

◆ preferred_phy

uint8_t epacket_bt_gatt_connect_params::preferred_phy

Preferred PHY of the connection (BT_GAP_LE_PHY_*)

◆ subscribe_cloud_uplink

bool epacket_bt_gatt_connect_params::subscribe_cloud_uplink

Subscribe to the cloud uplink characteristic.

◆ subscribe_commands

bool epacket_bt_gatt_connect_params::subscribe_commands

Subscribe to the command characteristic.

◆ subscribe_data

bool epacket_bt_gatt_connect_params::subscribe_data

Subscribe to the data characteristic.

◆ subscribe_logging

bool epacket_bt_gatt_connect_params::subscribe_logging

Subscribe to the logging characteristic.

◆ wait_subscriptions

bool epacket_bt_gatt_connect_params::wait_subscriptions

Wait until subscriptions apply to return.


The documentation for this struct was generated from the following file: