如本IoT所述,我试图使用脚本来设置AWS 。
我能够在AWS IoT MQTT上连接,而不需要WebSocket (使用x.509证书)。
# creates the AWS IoT
def createIoT():
iot = AWSIoTMQTTShadowClient('AWSHome')
# update this with your own endpoint from the IOT dashboard
iot.configureEndpoint('allj.iot.reg.amazonaws.com', 443)