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