Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

By default Camel Paho component operates on the binary payloads extracted out of (or put into) the MQTT message:

 

 

 

Code Block
// Receive payload
byte[] payload = (byte[]) consumerTemplate.receiveBody("paho:topic");
 
// Send payload
byte[] payload = "message".getBytes();
producerTemplate.sendBody("paho:topic", payload);

...