I want to create an IoT system. My system contains a robotic arm, a CNC machine and a web page. I want to use MQTT in which I can publish from my web page to robotic arm to pick up the object and put it on the table of the CNC machine. My problem is that I don't know how to connect the web page to AWS IoT and publish messages from my page to the robotic arm.

This question is not a duplicate of connect CNC to AWS IoT, I was asking there about how to connect CNC machine to IoT and here I am asking about how to use a webpage to send messages. I want to start the manufacturing process when I press the push button on my webpage. All I found is how to make the messages come to you in your browser, I can't find examples showing me how I can send messages from my webpage.

This is a followup of this question.


1 Answer 1


AWS IoT supports MQTT over Websockets which can be used from with in the client side of a web application.

You can follow the instructions here for details of how to do the required authentication.

  • 1
    Could you add the essential points / lines of code from the linked source? Link only answers are discouraged by SE rules.
    – mico
    Commented Sep 10, 2017 at 16:54
  • Only if we agree to close the question as having done no upfront research
    – hardillb
    Commented Sep 10, 2017 at 16:56
  • 1
    Also the answer is "MQTT over Websockets", the link is just extra info about how to go about doing authentication in a AWS world (but yeah, it's not the greatest answer in the world, to not the greatest question)
    – hardillb
    Commented Sep 10, 2017 at 17:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.