Provider

Overview

Related Modules:

Broadcast

Description:

Defines the provider of events and data of a topic.

Summary

Data Fields

Variable Name

Description

Publish )(IUnknowniUnknown, const Topictopic, uint8 data, int16 len)

BOOL( 

Publishes events and data of a specified topic.

Details

Field Documentation

Publish

  1. BOOL(*Provider::Publish)([IUnknown]($api-api-SmartVision-Devices-IUnknown.md)*iUnknown,const[Topic]($api-api-SmartVision-Devices-Broadcast.md#gaf03f5bc94cad32ab628a6cdee09b0542) *topic, uint8 *data, int16 len)

Description:

Publishes events and data of a specified topic.

The events or data is published by the publisher, sent to all consumers who have subscribed to the topic, and processed by the consumers.

Parameters:

Name

Description

iUnknownIndicates external interface of the pub/sub feature.
topicIndicates the pointer to the topic to publish.
dataIndicates the pointer to the data to publish.
lenIndicates the length of the data to be published. The length must be the same as the data length. The caller must ensure the validity of this parameter.

Returns:

Returns TRUE if the topic is successfully published; returns FALSE otherwise.