-
The PubSub example requires |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 30 replies
-
Answer: It should look something like this: xxxxxxxxxxxxxx-ats.iot.us-east-2.amazonaws.com |
Beta Was this translation helpful? Give feedback.
-
[I'm going to try something else.] |
Beta Was this translation helpful? Give feedback.
-
That's very helpful, thanks. However I still have an installation problem. I'm using a WSL2/Ubuntu20.04.6 terminal and Node 18.16.0. The following are notes I'm preparing to help others get this running.These steps result in an index.html that can be opened in a browser as a local file, and the loaded page will show that it can publish on a specific MQTT topic to AWS IoT core in your dev region, and receive its own messages back by subscribing to that topic.
|
Beta Was this translation helpful? Give feedback.
-
Also, it's not clear where to attach the sample policy given at https://github.com/aws/aws-iot-device-sdk-js-v2/tree/main/samples/browser/pub_sub My new Identity Pool's policy does not seem editable, and at IoT Home there are no obvious controls for attaching a policy to my pool. Maybe one is supposed to edit the policy of the IAM role associated with the identity pool? |
Beta Was this translation helpful? Give feedback.
-
I'm using a Windows Subsystem for Linux v2 (WSL2) terminal that uses Ubuntu
20. My NodeJs version is 18.16.0.
…On Fri, Aug 4, 2023, 12:39 AM Joseph Klix ***@***.***> wrote:
What OS are you trying to run this on?
—
Reply to this email directly, view it on GitHub
<#412 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKJXV3BIS3CKRTJRTDDR7RLXTQK75ANCNFSM6AAAAAA3BH7A5Q>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
.com>
|
Beta Was this translation helpful? Give feedback.
-
When I use my more-restricted policy, the page is stuck at "Connecting websocket..." and the console doesn't show any errors or any content at all (btw, this isn't a user error; I use DevTools everyday.) I haven't tried the |
Beta Was this translation helpful? Give feedback.
-
Please reopen.
…On Fri, Aug 25, 2023, 7:05 AM github-actions[bot] ***@***.***> wrote:
Closed #412
<#412> as
resolved.
—
Reply to this email directly, view it on GitHub
<#412>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKJXV3CF2W2JWODYNJRTG4DXXAQBRANCNFSM6AAAAAA3BH7A5Q>
.
You are receiving this because you authored the thread.Message ID:
<aws/aws-iot-device-sdk-js-v2/repo-discussions/412/discussion_event/826037
@github.com>
|
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
While in a Chime call just now with an SA, we double-checked my policy and found it was still using the outdated policy of this sample. Once we saved the updated policy, the index.html of this sample was able to subscribe, self-publish, and receive publishes from the MQTT test page (while it was configured to use MQTT v3...we didn't try v5).