Topic

data class Topic(val userId: Long, val deviceMac: String, val characteristicName: String)

Data class that represents MQTT topic

Constructors

Link copied to clipboard
constructor(userId: Long, deviceMac: String, characteristicName: String)

Functions

Link copied to clipboard

Topic name format: c/{user_id}/{mac_address}/{characteristicName}

Properties

Link copied to clipboard

internal representation of characteristic name

Link copied to clipboard

MAC address of Bluetooth LE device

Link copied to clipboard

id of currently logged-in user