Closed jkano closed 9 months ago
We would like to suggest you to post this question in FreeRTOS forum. There will be more support from community and your question can also benefit the forum users. Github issue will be used primarily for bug tracking in this repository. I am going to close this as this is not a bug. Looking forward to see your post in FreeRTOS Forum.
Hi,
In our company, we use the AWS IoT core using the PreSigned URL that our devices request using our API.
That url is on the following format:
As you can see, after the path there are some query parameters that are passed to the request with embedded token.
We dont have Client certificates per device because the devices are created on the go after the device is commissioned, the idea is to the use to be able to flash their devices with our firmware and be able to use our API and App.
So we dont have
CLIENT_CERT_PATH
orCLIENT_PRIVATE_KEY_PATH
to the demo, something that seems to be mandatory in this library.If I define the
CLIENT_CERT_PATH
andCLIENT_PRIVATE_KEY_PATH
pointing to empty files and define theAWS_IOT_ENDPOINT
as the full URL I get the following error:Which is understandable because its treating the full url as the hostname. So, if I set the
AWS_IOT_ENDPOINT
as only the hosta272tdymsn5n79-ats.iot.us-east-1.amazonaws.com
I get the following error:I tried with an MQTT Client software called MQTTX and it can connect to the broker using the host, path and port that I have
So I know the MQTT broker works and I can use it without any issues on MQTTX client.
So my question is if there's a way to support connecting to MQTT over secure websocket using a presigned urls with this library?
Thanks!