public class PublishSubscribeSample extends Object
AWSIotMqttClient to subscribe to a topic and
publish messages to it. Both blocking and non-blocking publishing are
demonstrated in this example.| Modifier and Type | Class and Description |
|---|---|
static class |
PublishSubscribeSample.BlockingPublisher |
static class |
PublishSubscribeSample.NonBlockingPublisher |
| Constructor and Description |
|---|
PublishSubscribeSample() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args) |
static void |
setClient(AWSIotMqttClient client) |
public static void setClient(AWSIotMqttClient client)
public static void main(String[] args) throws InterruptedException, AWSIotException, AWSIotTimeoutException
Copyright © 2019. All rights reserved.