I Created Android App with AWS IoT core SDK, App is successfully created and receive data from AWS IoT Core to Android Application but If I publish JSON data from android app to AWS IoT core it shows publish delivered but its not working
Its working when executing command in MQTT test client as shown in pic
In Aws IoT core shows two types of publish data in android sdk one is publish string and another one is publish data I used publish string (String input_on = "{ "CMD": "setdigout 000"}";) help me to solve the problem you save my life
private static final String input_commands = "352625698315494/commands";
AWSIotMqttManager mqttManager;
try {
mqttManager.publishString(input_on, input_commands, AWSIotMqttQos.QOS0);
} catch (Exception e) {
Log.e(LOG_TAG, "Publish error.", e);
}
CodePudding user response: