Closed
Description
Is there a way to connect to a MQTT broker that requires key pairs (like AWS MQTT)
Examples and code seem to only support ESP32 co processors. How can this be done on a ESP32-S3 feather?
# Create a socket pool
pool = socketpool.SocketPool(wifi.radio)
ssl_context = ssl.create_default_context()
# how to set these in the SSL context or MQTT for socket wrap? e.g. AWS thing cert and .pem
# {"key": DEVICE_KEY, "cert": DEVICE_CERT}
client = MQTT.MQTT(broker=aws_endpoint socket_pool=pool, ssl_context=ssl_context)
# in micropython it can be done this way with umqtt.simple
mqtt_client = MQTTClient(aws_client_id, aws_endpoint, ssl=True, ssl_params={'key': DEVICE_KEY, 'cert': DEVICE_CERT})