Azure Iot Rest API Message from cloud to device -
get : https://myiot.azure-devices.net/devices/mydevice/messages/devicebound?api-version=2016-02-03
authorization: sas key
i getting 204 no content response above api while receiving message using postman request maker cloud device.when send messages device cloud appearing in iot hub giving error 204 while receiving messages cloud.
first, if haven't sent cloud-to-device messages , no content response(error code:204) calling api(https://myiot.azure-devices.net/devices/mydevice/messages/devicebound?api-version=2016-02-03
). expected. means the server has fulfilled request, there no new information send back.
second, want receive device-to-cloud message have sent. unreachable. because api used receive cloud-to-device messages.
in short, device-to-cloud , cloud-to-device different messaging primitives azure iot hub provides communicate device. , device-to-device communication want not supported natively azure iot hub.
finally, how send cloud-to-device message?
for test purpose, can send cloud-to-device message device explorer. more detailed information can reference here.
Comments
Post a Comment