fun fromEnv(device: Device): HomieMqttClient
Creates a new HomieMqttClient for the device default environment variables The environment must contain an MQTT_SERVER URI in format of tcp://host:port and an MQTT_CLIENT_ID variable Additionally, the method supports extracting the MQTT_USERNAME and MQTT_PASSWORD environment variables