SidewalkDevice

An object encapsulating attributes of an Amazon Sidewalk Device.

Parameters

name

The friendly Bluetooth name of the remote device.

address

The hardware address of this BluetoothDevice. For example, "00:11:22:AA:BB:CC".

endpointId

The hardware ID of the device. This could be a Sidewalk ID for a registered device or a Sidewalk Manufacturing Serial Number (SMSN) for an unregistered device.

truncatedSmsn

The truncated Sidewalk Manufacturing Serial Number (SMSN) value (5-Byte hex string).

fullSmsn

The full length Sidewalk Manufacturing Serial Number (SMSN) value (32-Byte hex string).

rssi

Received signal strength in dBm. The valid range is -127, 126.

beaconInfo

Additional information contained within the Amazon Sidewalk Beacon.

apId

Optional 4 character ascii encoded Advertised Product Identifier string, not present in all device beacons.

macAddress

Optional 6 Byte MAC address in hexadecimal format with no separators (XXXXXXXXXXXX), not present in all device beacons.

Properties

Link copied to clipboard
val address: String
Link copied to clipboard
val apId: String?
Link copied to clipboard
Link copied to clipboard
val endpointId: String
Link copied to clipboard
open override val endpointIdFilter: String

A filter for the hardware ID of the device if present.

Link copied to clipboard
val fullSmsn: String?
Link copied to clipboard
val macAddress: String?
Link copied to clipboard
val name: String
Link copied to clipboard
open override val nameFilter: String

A filter for the advertised name of the device if present.

Link copied to clipboard
val rssi: Int
Link copied to clipboard
val truncatedSmsn: String

Functions

Link copied to clipboard
open fun isEmpty(): Boolean

Return true if both nameFilter and endpointIdFilter are empty, false otherwise.