Goal | Make a simple website to start and stop a Handy using the Javascript Handy SDK |
---|---|
Completion time | 20min |
Skills needed | HTML+Javascript skills |
In this tutorial, we will be using the mode Handy Alternate Motion Protocol (HAMP). A mode where the Handy move up and down with a given velocity within the set Stroke zone. We will be utilizing the power of the Handy SDK.
<aside> 💡 We are not focusing on edge cases and error handling in this tutorial.
</aside>
A simple app that makes it possible to manipulate the movement of the connected device. We will also store and retrieve the Connection Key to make things simpler for returning users. In addition, we will create some logic to handle the connected state. The result will look like this (”not connected” and “connected state):
Not connected
Connected state
Create a folder and navigate into the folder (and open vscode with code .
):
mkdir remote-ctrl-app
cd remote-ctrl-app
code .
Create a file index.html
in the folder