Hierarchy

Index

Constructors

constructor

Properties

created

created: Date

Time of creation of this MQTT Topic in ISO 8601 UTC date/time format. Example; "2022-07-08T08:41:01.657916Z".

name

name: string

Unique identifier name for the MQTT Topic.

This contains only lowercase alphanumeric characters. The ., _ and - characters are also allowed to separate words instead of a space BUT can not be at the beginning or end of the name.

payload

payload: string

The expected MQTT payload structure coming from the MQTT broker. e.g. "Topic:\nRaw / / / / / / \n\nPayload:\n{\n \"v\": \"695\",\n \"t\": 1628095260089,\n \"q\": 1\n}\n\nField Description:\nV is a string but could be a bool or a number.\nT is timestamp in epoch (ms)\nQ is quality, 1 is good, 0 is bad"

title

title: string

Display name (title) for the MQTT Topic. This is the friendly name displayed.

It can use any character, numeric, space and special character in this parameter.

topic

topic: string

The expected structure of the MQTT Topics coming from the MQTT broker. e.g. "Raw / / / / / / "

updated

updated: Date

Time of modifying any variable of this MQTT Topic in ISO 8601 UTC date/time format. Example; "2022-07-08T08:41:01.657916Z".

Methods

clone

getClass

  • getClass(): Function

mapping

  • mapping(): {}

serializeArray

  • serializeArray(obj: any[]): Object

serializeObject

  • serializeObject(obj: any): any

serializeObjectInstance

  • serializeObjectInstance(obj: Object): Object

stringify

  • stringify(): string

toJSONObject

  • toJSONObject(): Object