2 Answers
- Newest
- Most votes
- Most comments
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"
});
answered 5 years ago
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.
answered 5 years ago
Relevant content
- asked 10 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago