"hi sent to MQTT, received from MQTT", Message not received!
Mouli-Shankar opened this issue · comments
Mouli Shankar commented
L114: "p + ", received from MQTT"" value p (sent message) is not recieved.
return IntegrationFlows.from(mqttInbound())
.transform(p -> p + ", received from MQTT")
.handle(logger())
.get();
Output
12:53:09.415 [MQTT Call: siSampleConsumer] INFO siSample - hi sent to MQTT, received from MQTT
Should be
12:53:09.415 [MQTT Call: siSampleConsumer] INFO siSample - hi sent to MQTT, hi received from MQTT
Gary Russell commented
??
.transform(p -> p + ", received from MQTT")
if p
is "hi sent to MQTT` then what you are getting is completely what you should expect.
The sample is simply concatenating ", received from MQTT"
to the inbound message. There is no logic to parse out the "hi" part.
Mouli Shankar commented
Understood thanks for your explanation.