paho.mqtt.python
paho.mqtt.python copied to clipboard
Validator Function
I am looking for a validator function for topic. I have a bunch of strings and I need to check if the strings are a valid mqtt topic or not.
What is the best way to achieve this?
I do not want to use regex to do this, and am hoping to use some function in the library already implemented to achieve this.