I have this application using the mqtt-client java library to connect to an ActiveMQ broker via mqtt. The subscribing, publishing and receiving of the messages work fine as long as my topic does not have a forward slash (/).
I understand that forward slashs are special characters in mqtt and as per activemq mqtt support the "/"
will be converted to "."
. However, in my case, I need to connect to topics that have been created using JMS and which are written as an uri (example http://activemq.apache.org/) and will therefore have "/" on their names.
Is there anyway to scape the "/"
on mqtt? At the moment, if I try connecting to a topic called http://activemq.apache.org/
it will in fact connect to http:..activemq.apache.org.