EpicEric / pony-mqtt

:horse: MQTT client in Pony
https://epiceric.github.io/pony-mqtt-docs/mqtt--index/
MIT License
6 stars 1 forks source link

MQTTTopic function to check if topic belongs to filter #10

Closed EpicEric closed 6 years ago

EpicEric commented 6 years ago

Not useful to the library, but users may want to check if a topic name fits a topic filter.

Create a function that returns true only if input name and filter are valid, and the filter matches the name.

Add tests.