StatusFlags
public struct StatusFlags : OptionSet, Hashable
extension ManufacturerDataGymConnect.StatusFlags: Encodable
Status Flags
-
Declaration
Swift
public let rawValue: UInt8
-
Declaration
Swift
public init(rawValue: UInt8)
-
Has Static QR Code Advertising ID
If this bit is set, then the GymConnect peripheral supports device discovery/connection via a fixed/static advertising ID (ID contained in the device name). This advertising ID is present on a QR code which is attached to the device. Smartphone apps etc. can use this flag to determine if a QR code reader should be displayed during device discovery.
Declaration
Swift
public static let qrCodeAdvertising: ManufacturerDataGymConnect.StatusFlags
-
Solicited Advertising Status Valid
This flag indicates if the “Solicited Advertising Status” flag (the next flag) is valid/should be interpreted.
Declaration
Swift
public static let solicitedAdvertising: ManufacturerDataGymConnect.StatusFlags
-
Solicited Advertising Status
If the “solicitedAdvertising” (previous flag) is unset, then the state of this flag must be ignored/should not be interpreted. This flag being set means that advertising was “solicited”; The advertising was started as a result of an action by the user, as / opposed to automatic/“always on” advertising.
Declaration
Swift
public static let wasSolicited: ManufacturerDataGymConnect.StatusFlags
-
Encodes this value into the given encoder.
If the value fails to encode anything,
encoder
will encode an empty keyed container in its place.This function throws an error if any values are invalid for the given encoder’s format.
Declaration
Swift
public func encode(to encoder: Encoder) throws
Parameters
encoder
The encoder to write data to.