This example code shows how to use the Java library in the AWS IoT Core Websockets repo with Jitpack.
The benefit of using it as a library is that you don't need to include this code in each project.
To see how it is used look at the tests in the BasicMqttOverWebsocketsProviderTest class.
-
Add tests for changing the default region
-
Add tests for changing the endpoint address
-
Add example of cross-account MQTT over WebSockets