FileTopic

abstract class FileTopic(path: String) : Topic<Nothing>

Defines a Topic which is used to transmit files between the SOComm device and the outside SDK (in both directions).

SOCommOutsideAPI <--> SOCommInsideAPI

Parameters

path

Defines the path for the given topic. The path is a unique string across all topics. Think of it like the path of MQTT (just without the wildcard options).

Inheritors

Constructors

Link copied to clipboard
constructor(path: String)

Properties

Link copied to clipboard

Specifies the path of the "in" topic for the SDK communication within the FileApi (Outside -> Inside).

Link copied to clipboard
Link copied to clipboard

Specifies the path of the "out" topic for the SDK communication within the FileApi (Inside -> Outside).

Link copied to clipboard

Functions

Link copied to clipboard
override fun deserialize(byteArray: ByteArray): Nothing

De-Serializes the given byteArray into the type T.

Link copied to clipboard
override fun serialize(item: Nothing): ByteArray

Serializes the given item into a ByteArray to be transmitted over the air.

Link copied to clipboard
open override fun toString(): String