Subscribe
Subscribe (CloudEvent) - Subscribe
Since 6.3.0:
// PROTOTYPES
bool subscribe(const char* name, particle::EventHandlerWithCloudEvent* handler,
const particle::SubscribeOptions& opts = particle::SubscribeOptions());
bool subscribe(const char* name, std::function<particle::EventHandlerWithCloudEvent> handler,
const particle::SubscribeOptions& opts = particle::SubscribeOptions());
// Cloud event subscription handler prototype
void mySubscriptionHandler(CloudEvent event);
// EventHandlerWithCloudEvent
typedef void (EventHandlerWithCloudEvent)(CloudEvent event);
For more information and examples, see the typed and extended publish page.