Which is the correct IoT pre-provisioning hook Lambda response to RegisterThing (MQTT)?

0

{ "allowProvisioning": "true" }

{ "allowProvisioning": true }

{ allowProvisioning: true }

Iot4Me
질문됨 8달 전250회 조회
2개 답변
1

Hi, I found this document that might help you.

Pre-provision hook return value

The Lambda function must return a response that indicates whether it has authorized the provisioning request and the values of any properties to override.

The following is an example of a successful response from the pre-provisioning function.

{
    "allowProvisioning": true,
    "parameterOverrides" : {
        "Key": "newCustomValue",
        ...
    }
}
답변함 8달 전
  • Yes, but then, below, the JavaScript and Python examples there each show something different. And I even thought I saw "allowProvisioning": "true" on a different website. Do you have experience using pre-provisioning hook Lambdas?

0
수락된 답변

I tested each of them in a JavaScript-based Lambda and they worked. This also worked:

{ "allowProvisioning": 1 }

My results may be language-dependent.

Iot4Me
답변함 8달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠