Skip to content

0.1.0

Compare
Choose a tag to compare
@anubhav7nov anubhav7nov released this 28 Sep 06:17
· 32 commits to main since this release
13b166b

What's Changed

New Features

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