This is a small demo example using node-wot to expose a Thing Description and implement a proxy for a MyCobot a 6-DOF robot arm with an M5 stack core.
Through Web APIs you can then remotely move the robot adjusting the joints, open/close the gripper and change the color of the led matrix in the head.
This example uses the USB serial interface of MyCobot, flashed with the official firmware and set in "transponder" mode.
Connect the robot to a usb port on you laptop and be sure to change the line in the code that creates the serial socket.
//creating the serial channel with the robot, be sure to select the appropriate serial interface (e.g. "COM3" on Windows)
let serial = mycobot.connect("/dev/ttyACM0",115200)
Then you can simply run the app using node.js and see the TD hosted on http://localhost:8080/mycobot