MQTT Terminal is a MQTT Client for Androi with the possible to create multiple connections.
You can download from Google Play here:
- MQTT 5.0 and 3.1.1 compatible
- Multiple connections
- Send/Receive text or images
- SSL supported
- Subscribe to topic (wildcards supported)
- Enable/Disable notifications for the topic
You can found this example "Send temperature value over MQTT protocol with mbed" HERE
- Open the "MQTT Terminal" Application and create a new connection with the Broker informations.
- Open the new connection and insert a new topic (wildcards are accepted)
- Now you can receive/send text or images
For receive images with my App you need to follow these two steps:
-
First, send this string: image_ + (bytes image)
-
Second send the image bytes
Example:
ByteArrayOutputStream stream = new ByteArrayOutputStream();
Bitmap image = ...
image.compress(Bitmap.CompressFormat.PNG, 80, stream);
byte[] byteArray = stream.toByteArray();
int len = byteArray.length;
oServiceConnection.publish(topic, "image_" + len);
oServiceConnection.publish(topic, byteArray);
Copyright (C) 2018 edodm85.
Licensed under the MIT license.
(See the LICENSE file for the whole license text.)