Closed suculent closed 6 years ago
After couple weeks I've noticed that the PubSubClient::loop() function is not called in the upper code... which was the reason why the callback didn't happen and no messages were received.
Everything started working normally after adding the forgotten call.
First of all, sorry that I'm asking here... it seems to me like a generic C/C++ question but it's probably too generic to be searched on Google. I was grown somewhere between Z80 assembler and high-level languages like Objective-C, Swift and JavaScript, so the C-side is temporarily unfamiliar to me.
In your header, you declare:
In my .h:
In my .cpp:
The callback function does not get called. Why?