Subscribe
SubscribeOptions - Subscribe
Since 6.3.0:
The SubscribeOptions
class specifies options when subscribing to events using a CloudEvent
.
structured - SubscribeOptions - Subscribe
Enable or disable encoding of event data in a structured data format.
This option instructs the Cloud to encode all events sent to the device for this subscription in a compact structured data format.
The exact format used is implementation-specific. The application is expected to parse the data in this format using the methods of the CloudEvent
class, such as dataStructured()
.
By default, this option is disabled.
// PROTOTYPE - setter
SubscribeOptions& structured(bool enabled)
// PROTOTYPE - getter
bool structured() const;
For more information, see structured subscription in the typed and extended publish page.