password
Set the password from a plain String.
Convenience alternative to assigning password as a ByteString directly.
MqttClient("sensor") {
username = "meshdev"
password("large4cats")
}Content copied to clipboard
Parameters
value
The password string, encoded as UTF-8 bytes.
Optional password as an immutable ByteString (§3.1.3.6).