Closed gmarino2048 closed 6 years ago
class Echo { public: Echo () { Particle.subscribe("Echo", &Echo::handler, this); } void handler (const char *eventName, const char* data) { Particle.publish("Echo Received", data); } };
This code doesn't work, but I cannot figure out why it doesn't
Decided to do it the old fashioned way: via brute force
class Echo { public: Echo () { Particle.subscribe("Echo", &Echo::handler, this); } void handler (const char *eventName, const char* data) { Particle.publish("Echo Received", data); } };
This code doesn't work, but I cannot figure out why it doesn't