0.1.0
What's Changed
- Improved TLS handling and add support for ALPN by @anubhav7nov in #43
New Features
- Add support for ALPN protocols. Alpn protocols can be passed inside MqttConnectOptions
- Add support for custom socket factory and ssl socket factory. These can be set inside MqttConnectOptions
Note: Set shouldUseNewSSLFlow to true to enable these features
Breaking Change
- Change how you create MqttConnectOptions
Before
val connectOptions = MqttConnectOptions(
serverUris = listOf(ServerUri(SERVER_URI, SERVER_PORT)),
clientId = clientId,
username = username,
keepAlive = KeepAlive(
timeSeconds = keepAliveSeconds
),
isCleanSession = cleanSessionFlag,
password = password
)
After
val connectOptions = MqttConnectOptions.Builder()
.serverUris(listof(ServerUri(SERVER_URI, SERVER_PORT)))
.clientId(clientId)
.userName(username)
.password(password)
.keepAlive(KeepAlive(timeSeconds = keepAliveSeconds))
.cleanSession(cleanSessionFlag)
.build()
- Removed socket factory from MqttV3Configuration. You should now set socketFactory and sslSocketFactory in MqttConnectOptions.
Full Changelog: 0.0.9...0.1.0