Devices - Invoke Method

디바이스에서 직접 메서드를 호출합니다. 자세한 내용은 https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-direct-methods 을 참조하세요.

POST https://fully-qualified-iothubname.azure-devices.net/twins/{deviceId}/methods?api-version=2020-05-31-preview

URI 매개 변수

Name In(다음 안에) 필수 형식 Description
deviceId
path True

string

디바이스의 고유 식별자입니다.

api-version
query True

string

API의 버전입니다.

요청 본문

Name 형식 Description
connectTimeoutInSeconds

integer

methodName

string

실행할 메서드 이름입니다.

payload

object

JSON 형식의 직접 메서드 페이로드(최대 128kb 크기)입니다.

responseTimeoutInSeconds

integer

응답

Name 형식 Description
200 OK

CloudToDeviceMethodResult

OK.

정의

Name Description
CloudToDeviceMethod

디바이스에서 직접 메서드를 실행할 매개 변수입니다.

CloudToDeviceMethodResult

디바이스 메서드 호출 결과를 나타냅니다.

CloudToDeviceMethod

디바이스에서 직접 메서드를 실행할 매개 변수입니다.

Name 형식 Description
connectTimeoutInSeconds

integer

methodName

string

실행할 메서드 이름입니다.

payload

object

JSON 형식의 직접 메서드 페이로드(최대 128kb 크기)입니다.

responseTimeoutInSeconds

integer

CloudToDeviceMethodResult

디바이스 메서드 호출 결과를 나타냅니다.

Name 형식 Description
payload

object

메서드 호출 결과 페이로드.

status

integer

메서드 호출 결과 상태.