Using ngx-mqtt to connect to AWS IOT Core #193
Replies: 4 comments 9 replies
-
Could you please post what you found for angular 10 and maybe what you tried too (as a repository please)? |
Beta Was this translation helpful? Give feedback.
-
I have got the AWS IOT working in Angular 11 (did work also in prior versions) by generating in the backend signed url for the connection. For the backend I use Python and aws_signv4_mqtt library. It needs IAM credentials having policy that allows certain client names (having fixed prefix) to connect to IOT endpoint and be able to Subscribe and Receive from certain topics. Those credentials can be used to sign the url for AWS IOT core websocket endpoint This url is returned to Frontend Angular and used when connection to MQTT using transformWsUrl Technically same could be achieved in Angular only by using AWS sdk's I would assume. I just did find it easier to sign the url in the backend. I know this is not full code sample but hopefully would guide towards one possible solution. |
Beta Was this translation helpful? Give feedback.
-
Yes I'm using ngx-mqtt Angular library, currently using version 7.0.9 so would need to update at some point. |
Beta Was this translation helpful? Give feedback.
-
@sclausen "export 'MqttClient' (imported as 'ɵngcc1') was not found in 'mqtt-browser' |
Beta Was this translation helpful? Give feedback.
-
Hi Team,
Has anyone been able to use this Angular wrapper to connect AWS IOT Core using Angular 9? I'm trying to subscribte to AWS IOT Core topic using my Angular 9 front end framework but I have had no luck. I cannot find a working example anywhere. Saw one for Angular 10 but I could not get it to work. Not even sure if its possible. Any help or guidance would be greatly appreciated.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions