2 Antworten
- Neueste
- Die meisten Stimmen
- Die meisten Kommentare
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"
});
beantwortet vor 5 Jahren
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.
beantwortet vor 5 Jahren
Relevanter Inhalt
- AWS OFFICIALAktualisiert vor einem Jahr
- AWS OFFICIALAktualisiert vor 3 Jahren
- AWS OFFICIALAktualisiert vor einem Jahr
- AWS OFFICIALAktualisiert vor 2 Jahren