tommeyers wrote: ↑Wed Nov 20, 2019 4:36 pm
I have a feeling that the OP is publishing a wildcard not subscribing with a wildcard. OP what do you say. Sorry if I am wrong.
Re-reading the question I see that you are probably right.
OP: if you are trying to publish with a wildcard then the answer is that this is not a part of the MQTT spec.
It says that:
The Topic Name in the PUBLISH Packet MUST NOT contain wildcard characters
Although technically there should be nothing in the esp MQTT client preventing you from publishing to an invalid topic, we don't do any checks on the content of the topic, but a well-behaving broker will probably close the connection.