I can't connect to AWS IOT Core service



  • Hi, I am trying to connect my M5Stack to the AWS service using MQTT protocol. I tried various possible ways and had no good results.
    A similar problem was already discussed in the forum but not resolved.

    It was mentioned that the problem could be the policy associated with the object, in my object I used the following policy:
    0_1631038421038_535f03fc-4d17-4366-bab5-ae401e28858f-image.png

    Previously I was able to connect the same device by programming it from the arduino IDE. In that case I used the same format for designing the object policy, which would seem to indicate that this is not the problem.
    In the figure there is a simple example, which should send one message per second.
    0_1631038489614_b1aecc4a-5f7f-4caa-a2f0-8074a15f39a3-image.png

    From the AWS console, in the test tab it is not possible to subscribe with the topic corresponding to the messages sent by the device.
    From the monitoring section in the console it is visualized that the connection between the device and AWS seems to be made.
    0_1631038531420_6d682e55-9c19-483d-a6d9-d3cba38d9828-image.png
    0_1631038535998_bc3a1ad9-953b-42fe-8ac0-2de01d3c8a46-image.png
    Somebody could help me? In order to advance my project, I need to first achieve this communication with the kit.



  • Have you set up your incognito profile?
    Im afraid that AWS is a PITA to get initial setup and I have lost my notes.



  • Hi ajb2k3,

    Thanks for your response. I can't understand what is "incognito
    profile", Do you refer to AWS cognito?

    I was able to connect my M5Stack basic core using Arduino IDE. So, I
    think that the problem is UiFlow IDE.

    I don't know if AWS IoT function of UiFlow is supported for M5Stack
    basic Core.

    Best regards



  • @fei_96 I'm away but I had it working on an M5Atom!