Device - Receive Device Bound Notification
此方法可用來擷取雲端到裝置的訊息 如需詳細資訊,請參閱 https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging 。 這項功能僅適用於標準層 IoT 中樞。 如需詳細資訊,請參閱選擇正確的 IoT 中樞 層。
GET https://fully-qualified-iothubname.azure-devices.net/devices/{id}/messages/deviceBound?api-version=2020-03-13
URI 參數
名稱 | 位於 | 必要 | 類型 | Description |
---|---|---|---|---|
id
|
path | True |
string |
裝置識別碼。 |
api-version
|
query | True |
string |
Api 的版本。 |
回應
名稱 | 類型 | Description |
---|---|---|
200 OK |
本文可以是任何八位數據流。 請注意,整個訊息的大小 (本文加上屬性) 必須小於 256 Kb。 |
|
204 No Content |
如果裝置消息佇列是空的,則不會傳送任何內容 |