2 réponses
- Le plus récent
- Le plus de votes
- La plupart des commentaires
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"
});
répondu il y a 5 ans
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.
répondu il y a 5 ans
Contenus pertinents
- demandé il y a un an
- demandé il y a 7 mois
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a 2 ans