MQTT icon indicating copy to clipboard operation
MQTT copied to clipboard

Callback context

Open norgepaul opened this issue 7 years ago • 1 comments

Is it possible to add add a constructor overload that accepts a context for the callback so we can have non static callback functions?

If not, do you now of a workaround?

Cheers, Paul

norgepaul avatar May 14 '17 15:05 norgepaul

@norgepaul, I had a similar need and actually inherited from this MQTT library and implemented a virtual topicPosted method instead of using a callback. Just add it.

AndrewWeiss avatar Jun 13 '17 16:06 AndrewWeiss