文档管理中心
我的
HiCar ReferencesLinux设备接入API参考设备接口发现/连接接口StructsBleParams

BleParams

展开

Name

Type

Desc

*serviceUuid

const char

使用Gatts进行Nearby数据通信时所需的service uuid。

*readUuid

const char

Gatt service对应的read characteristic uuid。

*writeUuid

const char

Gatt service对应的write characteristic uuid。

serviceEnable

int

Gatts是否启动service:

  • 0:未启动
  • 1:启动

attrPerm

int

GATT协议标准中属性(Attribute)读写权限(permissions)。

charProp

int

GATT协议标准中特征(characteristic)对应的性质(properties)。

minInterval

int

Gatt client发广播时最小时间间隔,单位毫秒(ms)。

maxInterval

int

Gatt client发广播时最大时间间隔,单位毫秒(ms)。

timeout

int

Gatt client广播超时时间,单位秒(s)。

0表示一直发广播。目前默认为120秒。

*nearbyAdvData

char

Gatt client发送的广播数据。

iadvDataLen

int

Gatt client发送的广播数据长度。