Advertising Interval

nRF5 SDK v16.0.0

Detailed Description

  • ADV_INT is the feature to read and set the advertising interval.
  • Legal values for the advertising interval are between 32 and 16384, inclusive. The real interval time is approximately equal to (adv_interval)*0.625 ms, e.g. an advertising interval of 3200 is approximately 2 seconds.
  • - Errors for ADV_INT are returned as TOA_RSP_ERROR_UNSUPPORTED or TOA_RSP_ERROR_PARAMETERS errors

Enumeration Type Documentation

Command codes for ADV_INT.

Enumerator
ADV_INT_CMD_READ_FEATURES

ADV_INT Read supported features

ADV_INT_CMD_READ_VAL

ADV_INT Read current value

ADV_INT_CMD_WRITE_VAL

ADV_INT Write new value (2 bytes, little Endian)

: Response codes from ADV_INT

Enumerator
ADV_INT_RSP_READ_FEATURES_OK
 Parameter is a 1 byte bitfield with bit 0 indicating

read is supported and bit 1 indicating write is supported

ADV_INT_RSP_READ_VAL_OK
 Parameter is a 2 byte value of the current advertising interval,

as specified above

ADV_INT_RSP_WRITE_VAL_OK

Parameter is the new advertising interval (2 bytes, little Endian)