• The leap socket is listening only on the loopback port, to make the socket accessible from the outside execute these commands on Windows (on Linux it's different):

    netsh interface ipv4 install
    netsh interface portproxy add v4tov4 listenport=6437 connectport=6437 connectaddress=127.0.0.1
    

    However, it might be easier to run a local nodejs server on your computer (easier development and debugging). That server would read the leap motion data from the websocket, then interpret it provide a new webpage for the ESP8266 to control the servos directly. Logging and debugging would be much easier this way, and since you need to have the computer running anyway it's basically no extra cost.

  • So I did something similar to what you are suggesting and it works too for anyone looking for a solution: I created a Python script to collect and clean the data from the leapmotion websocket on my local machine. Then I hosted a websocket from my esp8266 and sent the information to that websocket through my computer.

About

Avatar for user105886 @user105886 started