HttpLoxoneClient

Loxone client using HTTP for communication.

Inheritors

Functions

Link copied to clipboard
abstract suspend fun <RESPONSE : LoxoneResponse> call(command: Command<RESPONSE>): RESPONSE
Link copied to clipboard
inline suspend fun <VAL : LoxoneMsgVal> LoxoneClient.callForMsg(command: LoxoneMsgCommand<VAL>): VAL
Link copied to clipboard
abstract suspend fun callRaw(command: String): String
Link copied to clipboard
abstract suspend fun callRawForData(command: String): ByteArray

Call given command and return response as raw data. Can be used to retrieve files, icons, etc.

Link copied to clipboard
abstract suspend fun close()
Link copied to clipboard
abstract suspend fun postRaw(command: String, payload: ByteArray): String

Sends given payload to command's endpoint using HTTP POST to Loxone and returns the response body as text.