AdvertisingDataValidator

class AdvertisingDataValidator(deviceName: String, isLe2MPhySupported: Boolean, isLeCodedPhySupported: Boolean, isLeExtendedAdvertisingSupported: Boolean, leMaximumAdvertisingDataLength: @Range(from = 31, to = 1650) Int = if (isLeExtendedAdvertisingSupported) 1650 else 31)

A class that validates advertising data for given environment.

Constructors

Link copied to clipboard
constructor(deviceName: String, isLe2MPhySupported: Boolean, isLeCodedPhySupported: Boolean, isLeExtendedAdvertisingSupported: Boolean, leMaximumAdvertisingDataLength: @Range(from = 31, to = 1650) Int = if (isLeExtendedAdvertisingSupported) 1650 else 31)

Functions

Link copied to clipboard

Validates the advertising parameters and payload.