public class Main
extends java.lang.Object
Constructor and Description |
---|
Main() |
Modifier and Type | Method and Description |
---|---|
static void |
addCloudConnector(HeadlessThermostat thermostat,
Properties properties,
CertificateLoader certificateLoader)
Add cloud connector, AWS if all the properties has been set, MQTT otherwise.
|
static PeriodicPublisherCloud |
createAWSConnector(Properties properties,
CertificateLoader certificateLoader)
Creates an AWS connector.
|
static void |
initNetwork()
Wait for the network, set the current time using NTP.
|
static void |
main(java.lang.String[] args)
Entry Point.
|
static void |
start(HeadlessThermostat thermostat,
int port)
Starts the thermostat.
|
public static void main(java.lang.String[] args)
args
- not used.public static void initNetwork()
public static void addCloudConnector(HeadlessThermostat thermostat, Properties properties, CertificateLoader certificateLoader)
thermostat
- the thermostat.properties
- the properties to use for AWS loading.certificateLoader
- the CertificateLoader
to use.public static PeriodicPublisherCloud createAWSConnector(Properties properties, CertificateLoader certificateLoader)
properties
- the properties to use.certificateLoader
- the certificate loader to use.null
if not available.public static void start(HeadlessThermostat thermostat, int port)
thermostat
- the thermostat.port
- port of the thermostat.