sabuhish / fastapi-mqtt

fastapi-mqtt is extension for MQTT protocol
https://sabuhish.github.io/fastapi-mqtt/
MIT License
256 stars 43 forks source link

MQTT subscription topic matching does not conform to spec #46

Closed plundeen closed 1 year ago

plundeen commented 1 year ago

The FastMQTT.match function does not handle wildcards according to the MQTT specification. Per Section 4.7.1.2:

"sport/#" also matches the singular "sport", since # includes the parent level.

But the FastMQTT.match() method would not consider "sport" a match on the wildcard'ed subscription "sport/#".

sabuhish commented 1 year ago

Hello, did your PR solve the issue you had? I was talking about this PR #47

plundeen commented 1 year ago

Yes, thanks!