Documentation ¶
Index ¶
Constants ¶
View Source
const ( MqttBrokerURL = "tls://mqtt.googleapis.com:443" CACertsURL = "https://pki.goog/roots.pem" ProtocolVersion = 4 // corresponds to MQTT 3.1.1 ReconnectDelay = 20 * time.Second TokenDuration = 24 * time.Hour // maximum 24 h )
Variables ¶
This section is empty.
Functions ¶
func GetCACertPool ¶
GetCACertPool gets the latest Google CA certs from 'https://pki.goog/roots.pem'
Types ¶
type Config ¶
type Config struct { ProjectID string `yaml:"projectID"` Region string `yaml:"region"` RegistryID string `yaml:"registryID"` DeviceID string `yaml:"deviceID"` PrivateKey string `yaml:"privateKey"` Algorithm string `yaml:"algorithm"` StorePath string `yaml:"storePath"` }
Config stores the data for connecting to the MQTT broker.
Click to show internal directories.
Click to hide internal directories.