GlobalConfiguration

data class GlobalConfiguration(val flags: GenericFlags = GenericFlags(), val session: SessionConfiguration = SessionConfiguration(), val name: String = "PowerGoblin instance", val plot: PlotConfiguration = PlotConfiguration(), val statusPeriod: Long? = 1000, val logPath: String = "logs/", val telnetPort: Int = 9000, val httpContentPath: String = "web/", val httpPort: Int = 8080, val mqttHost: String = "localhost", val mqttPort: Int = 1883, val mqttTopicPrefix: String, val simulatedCount: Int = 0)

Application wide configuration.

Constructors

Link copied to clipboard
constructor(flags: GenericFlags = GenericFlags(), session: SessionConfiguration = SessionConfiguration(), name: String = "PowerGoblin instance", plot: PlotConfiguration = PlotConfiguration(), statusPeriod: Long? = 1000, logPath: String = "logs/", telnetPort: Int = 9000, httpContentPath: String = "web/", httpPort: Int = 8080, mqttHost: String = "localhost", mqttPort: Int = 1883, mqttTopicPrefix: String, simulatedCount: Int = 0)

Properties

Link copied to clipboard
Link copied to clipboard

Path to http content (relative to the application root)

Link copied to clipboard
val httpPort: Int = 8080

Port for http access

Link copied to clipboard

Path to log files (relative to the application root)

Link copied to clipboard

MQTT server host name

Link copied to clipboard
val mqttPort: Int = 1883

Port for MQTT access

Link copied to clipboard

Prefix for MQTT topics

Link copied to clipboard
Link copied to clipboard

Configuration for plot generation

Link copied to clipboard
Link copied to clipboard

How many simulated meters to generate

Link copied to clipboard
val statusPeriod: Long? = 1000

Timer period for status messages & device scan

Link copied to clipboard
val telnetPort: Int = 9000

Port for telnet access

Functions

Link copied to clipboard
Link copied to clipboard