hirotakaster / MQTT

MQTT for Photon, Spark Core
Other
216 stars 118 forks source link

Modified to be compatible with more OOP paradigms. #93

Open MysteryPoo opened 2 years ago

MysteryPoo commented 2 years ago

This methodology allows the mqtt driver to exist in non-global space (such as belonging to another wrapper class). Other features here allow default constructor, with post constructed Initialization (but only a single time). Also, the callback feature is backwards compatible with a global function callback OR the option of registering other objects (by means of the ISubCallback interface) to a list of callback listeners.

hirotakaster commented 2 years ago

Hi @MysteryPoo , Thanks for your PR. I have a comment about the MutexLocker and UnRegisterCallback :)