IoT Core Broker Service, gRPC: BrokerDataService.Publish
Статья создана
Обновлена 26 ноября 2024 г.
Publishes message on behalf of specified broker
gRPC request
rpc Publish (PublishBrokerDataRequest) returns (PublishBrokerDataResponse)
PublishBrokerDataRequest
{
"broker_id": "string",
"topic": "string",
"data": "bytes"
}
Field |
Description |
broker_id |
string Required field. ID of broker publishing message |
topic |
string Required field. Topic where message should be published |
data |
bytes Content of the message |
PublishBrokerDataResponse
{}
Field |
Description |
Empty |