2 Respostas
- Mais recentes
- Mais votos
- Mais comentários
0
Figured it out. I had copied my iot declaration from iotdata with an endpoint. Commenting it out fixed things.
var iotdata = new AWS.IotData({
endpoint: 'asdfasd-ats.iot.us-east-1.amazonaws.com',
apiVersion: '2015-05-28'
});
var iot = new AWS.Iot({
// endpoint: 'asdfasd-ats.iot.us-east-1.amazonaws.com',
apiVersion: "2015-05-28"
});
respondido há 5 anos
0
Hi Cyrus, glad you got it working. Adding a point of clarification for future readers. API calls to the message broker (pub/sub, shadow; also called the 'data plane') use the custom endpoint and this needs specifying in the AWS.IotData client. Most other APIs are on the control plane, packaged in the AWS.Iot client, and these use a default API endpoint for all customers like iot.us-east-1.amazonaws.com.
respondido há 5 anos
Conteúdo relevante
- AWS OFICIALAtualizada há 2 anos
- AWS OFICIALAtualizada há 2 anos