publishing topic to MQTT with eclipse paho client

i have used eclipse Paho plugin(org.eclipse.paho.client.mqttv3, version 1.2.5), i am trying to publishing custom topics. whenever i try to publish topic with full width characters like full width colon(:), full width semi-colon(;) the mqttClient.publish(topic, message) goes into wait state and the topic is not published.


mqttClient.publish("test/:/test1", message);

here message is of type MqttMessage

this is how i created my mqttClient

MqttConnectOptions connectionOptions= new MqttConnectOptions();
MqttClient mqttClient = new MqttClient("tcp://localhost:1883", "someclient", new MemoryPersistence());

Source link