knolleary / pubsubclient

A client library for the Arduino Ethernet Shield that provides support for MQTT.
http://pubsubclient.knolleary.net/
MIT License
3.78k stars 1.46k forks source link

When callback is registered to topic that contains underscore, the underscore is replaced with space #1053

Closed lombaardcj closed 2 months ago

lombaardcj commented 2 months ago

Hi,

When I publish to a topic say BOARD/control/site_id using mosquittopub, i get the topic in the callback function and it looks like BOARD/control/site id with a space where the `` is supposed to be?

Is this known behaviour for PubSubClient, or a bug?

lombaardcj commented 2 months ago

My terminal does not print the underscore properly. Case closed