SKEddystoneProximityData Class Reference

Inherits from SKSensorData : NSObject
Declared in SKEddystoneProximityData.h

Overview

An instance of SKEddystoneProximityData encapsulates measurements related to the Eddystone™ Proximity sensor.

– initWithSensorType:withTimestamp:

Returns an SKSensorData object, initialized with the given SKSensorType and SKSensorTimestamp.

- (instancetype)initWithSensorType:(SKSensorType)sensorType withTimestamp:(SKSensorTimestamp *)timestamp

Parameters

sensorType

The type of the sensor that produced this data object.

timestamp

The time were this data log was captured.

Return Value

A new SKSensorData object.

Declared In

SKSensorData.h

– initWithTimestamp:withNamespaceId:withInstanceId:withRssi:withTxPower:

Returns an SKEddystoneProximityData object, initialized with the time the data log was captured, its namespace and instance identifiers, as well as its rssi and txPower.

- (instancetype)initWithTimestamp:(NSDate *)timestamp withNamespaceId:(NSString *_Nullable)namespaceId withInstanceId:(NSUInteger)instanceId withRssi:(NSInteger)rssi withTxPower:(NSInteger)txPower

Parameters

timestamp

The time that this data log was captured.

namespaceId

A 10-byte (80 bit) identifier that can used to group a particular set of beacons. This value should be in Hexadecimal format, with a maximum character length of 20 characters.

instanceId

A 6-byte (48 bit) unsigned integer that is used to identify individual devices inside the namespace group. It ranges between 0 and 281474976710655.

rssi

The strength of the signal (Received Signal Strength Indication).

txPower

The strength of the signal measured at a distance of 1 meter.

Return Value

An SKEddystoneProximityData object.

Declared In

SKEddystoneProximityData.h

  namespaceId

A 10-byte (80 bit) identifier that can used to group a particular set of beacons. This value should be in Hexadecimal format, with a maximum character length of 20 characters.

@property (nonatomic, readonly, copy, nullable) NSString *namespaceId

Declared In

SKEddystoneProximityData.h

  instanceId

A 6-byte (48 bit) unsigned integer that is used to identify individual devices inside the namespace group. It ranges between 0 and 281474976710655.

@property (nonatomic, readonly) NSUInteger instanceId

Declared In

SKEddystoneProximityData.h

  rssi

The strength of the signal (Received Signal Strength Indication).

@property (nonatomic, readonly) NSInteger rssi

Declared In

SKEddystoneProximityData.h

  txPower

The strength of the signal measured at a distance of 1 meter.

@property (nonatomic, readonly) NSInteger txPower

Declared In

SKEddystoneProximityData.h

+ csvHeader

A string with a CSV formatted header that describes the data of the Eddystone™ Proximity sensor. This method is useful in combination with the csvString instance method of an SKSensorData object.

+ (NSString *)csvHeader

Return Value

A string with a CSV header.

Declared In

SKEddystoneProximityData.h