2 Respuestas
- Más nuevo
- Más votos
- Más comentarios
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 hace 5 años
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 hace 5 años
Contenido relevante
- OFICIAL DE AWSActualizada hace un año
- OFICIAL DE AWSActualizada hace 3 años
- OFICIAL DE AWSActualizada hace 2 años
- OFICIAL DE AWSActualizada hace 2 años