You are reading a single comment by @Gordon and its replies.
Click here to read the full conversation.
-
When I start the IDE serve say only "listening port xxxx"...
I was run setcap, but nothing! Problem continue!
Dockerfile
FROM hypriot/rpi-node:7.4.0 MAINTAINER Humberto Sales # Install dependencies RUN apt-get -yqq update && \ apt-get -yqq --no-install-recommends install bluetooth bluez libbluetooth-dev libudev-dev # apt-get -yqq autoremove && \ # apt-get -yqq clean && \ # rm -rf /var/lib/apt/lists/* /var/cache/* /tmp/* /var/tmp/* RUN ln /usr/local/bin/node /usr/bin/node RUN sudo npm install -g espruino-web-ide # sudo npm cache clean RUN sudo setcap cap_net_raw+eip $(eval readlink -f `which node`) # Installing serialport manual, because node-gyp crash # https://github.com/espruino/EspruinoWebIDE/issues/161 RUN sudo npm install -g serialport EXPOSE 8080 CMD espruino-server
I think that's fine.
As I said above - ttyAMA0 is the wrong port - it's not surprising nothing happens.
And you're trying to connect to Puck.js? When you first start the IDE server, does it say anything?
Most likely you just hadn't entered the command:
before running node.js, so it doesn't have access to the BLE device