ESTMeshNearablesScanResultVO

@interface ESTMeshNearablesScanResultVO : NSObject

ESTMeshNearablesScanResultVO represents single sticker discovery recorded in delivered Mesh scan report.

  • Identifier of discovered nearable.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic) NSString *_Nonnull nearableIdentifier;

    Swift

    var nearableIdentifier: String { get }
  • RSSI (Strength of the signal) of discovered device.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic) NSNumber *_Nonnull rssi;

    Swift

    var rssi: NSNumber { get }
  • Measured Power (Strength of the signal from 1m) of discovered device. Default value is -45 dBm.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic) NSNumber *_Nonnull measuredPower;

    Swift

    var measuredPower: NSNumber { get }
  • Distance calculated from the RSSI and measured power.

    Declaration

    Objective-C

    @property (readonly, getter=getDistance, strong, nonatomic)
        NSNumber *_Nonnull distance;

    Swift

    var distance: NSNumber { get }
  • Designated initializer parsing provided data to properties.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithData:(nonnull NSData *)data;

    Swift

    init(data: Data)

    Parameters

    data

    Data of single result.

    Return Value

    Initialized result object.

  • Initializer of class taking actual values of properties.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithIdentifier:(nonnull NSString *)deviceIdentifier
                                          rssi:(nonnull NSNumber *)rssi;

    Swift

    init(identifier deviceIdentifier: String, rssi: NSNumber)

    Parameters

    deviceIdentifier

    Identifier of discovered device.

    rssi

    Strength of the signal of discovered device.

    Return Value

    Initialized object

  • Raw scan report’s result reading from device.

    Declaration

    Objective-C

    - (nonnull NSData *)data;

    Swift

    func data() -> Data

    Return Value

    NSData object.