NLNevisPairingCodeDecoding

Summary

Inheritance

Inherits from: NSObject

Public static functions

extractDeviceIDFromNevisPairingCode:(NSString *pairingCode)
virtual uint64_t
Returns the device ID encoded in pairingCode if pairingCode is a valid pairing code; if invalid, returns 0.
extractNevisPairingCodeFromDeviceID:(uint64_t deviceId)
virtual NSString *
Encodes the given Nevis device ID into a 6-character pairing code, if deviceId is a valid Nevis tag number (i.e.

Public static functions

extractDeviceIDFromNevisPairingCode:

virtual uint64_t extractDeviceIDFromNevisPairingCode:(
  NSString *pairingCode
)

Returns the device ID encoded in pairingCode if pairingCode is a valid pairing code; if invalid, returns 0.

Details
Parameters
[in] pairingCode
The pairing code of the Nevis.

extractNevisPairingCodeFromDeviceID:

virtual NSString * extractNevisPairingCodeFromDeviceID:(
  uint64_t deviceId
)

Encodes the given Nevis device ID into a 6-character pairing code, if deviceId is a valid Nevis tag number (i.e.

it begins with 18B430040). If invalid, returns nil.

Details
Parameters
[in] deviceId
The device ID of the Nevis.