Most recent activity
-
No luck, still the same issue. I have got Plugable BLE adapter
I can get an other one, could you recommend some which would work please. -
I have just mended mqtt subscription to "/ble/write/c9:a2:6b:fd:3f:9d/nus/nus_tx"
Still receiving error unfortunately:
MQTT>/ble/write/c9:a2:6b:fd:3f:9d/nus/nus_tx => "LED1.set();\n"
Service 6e400001b5a3f393e0a9e50e24dcca9e
Characteristic 6e400002b5a3f393e0a9e50e24dcca9e
Error Connecting: Error: Command DisallowedI can receive the advertise and rssi thou.
-
Hi
I have updated all npm packages, git pull EsprinoHub and tryied installed it again. I got error:usb@1.2.0 install /root/EspruinoHub/node_modules/usb > node-pre-gyp install --fallback-to-build node-pre-gyp ERR! Tried to download: https://github.com/tessel/node-usb/releases/download/1.2.0/usb_bindings-v1.2.0-node-v47-linux-arm.tar.gz node-pre-gyp ERR! Pre-built binaries not found for usb@1.2.0 and node@5.12.0 (node-v47 ABI) (falling back to source compile with node-gyp) make: Entering directory '/root/EspruinoHub/node_modules/usb/build' CC(target) Release/obj.target/libusb/libusb/libusb/core.o CC(target) Release/obj.target/libusb/libusb/libusb/descriptor.o CC(target) Release/obj.target/libusb/libusb/libusb/hotplug.o CC(target) Release/obj.target/libusb/libusb/libusb/io.o CC(target) Release/obj.target/libusb/libusb/libusb/strerror.o CC(target) Release/obj.target/libusb/libusb/libusb/sync.o CC(target) Release/obj.target/libusb/libusb/libusb/os/poll_posix.o CC(target) Release/obj.target/libusb/libusb/libusb/os/threads_posix.o CC(target) Release/obj.target/libusb/libusb/libusb/os/linux_usbfs.o CC(target) Release/obj.target/libusb/libusb/libusb/os/linux_udev.o ../libusb/libusb/os/linux_udev.c:40:21: fatal error: libudev.h: No such file or directory [#include](https://forum.espruino.com/search/?q=%23include) <libudev.h> ^ compilation terminated. libusb.target.mk:131: recipe for target 'Release/obj.target/libusb/libusb/libusb/os/linux_udev.o' failed make: *** [Release/obj.target/libusb/libusb/libusb/os/linux_udev.o] Error 1 make: Leaving directory '/root/EspruinoHub/node_modules/usb/build' gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23) gyp ERR! stack at emitTwo (events.js:100:13) gyp ERR! stack at ChildProcess.emit (events.js:185:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12) gyp ERR! System Linux 4.8.4-sunxi gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/root/EspruinoHub/node_modules/usb/src/binding/usb_bindings.node" "--module_name=usb_bindings" "--module_path=/root/EspruinoHub/node_modules/usb/src/binding" gyp ERR! cwd /root/EspruinoHub/node_modules/usb gyp ERR! node -v v5.12.0 gyp ERR! node-gyp -v v3.4.0 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/nodejs /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/root/EspruinoHub/node_modules/usb/src/binding/usb_bindings.node --module_name=usb_bindings --module_path=/root/EspruinoHub/node_modules/usb/src/binding' (1) node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/root/EspruinoHub/node_modules/usb/node_modules/node-pre-gyp/lib/util/compile.js:83:29) node-pre-gyp ERR! stack at emitTwo (events.js:100:13) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:185:7) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:850:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5) node-pre-gyp ERR! System Linux 4.8.4-sunxi node-pre-gyp ERR! command "/usr/bin/nodejs" "/root/EspruinoHub/node_modules/usb/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" node-pre-gyp ERR! cwd /root/EspruinoHub/node_modules/usb node-pre-gyp ERR! node -v v5.12.0 node-pre-gyp ERR! node-pre-gyp -v v0.6.30 node-pre-gyp ERR! not ok Failed to execute '/usr/bin/nodejs /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/root/EspruinoHub/node_modules/usb/src/binding/usb_bindings.node --module_name=usb_bindings --module_path=/root/EspruinoHub/node_modules/usb/src/binding' (1) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: xpc-connection@~0.1.4 (node_modules/bleno/node_modules/xpc-connection): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for xpc-connection@0.1.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: xpc-connection@~0.1.4 (node_modules/noble/node_modules/xpc-connection): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for xpc-connection@0.1.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"}) npm WARN EspruinoHub@0.0.0 No repository field. npm WARN EspruinoHub@0.0.0 license should be a valid SPDX license expression npm WARN optional SKIPPING OPTIONAL DEPENDENCY: usb@1.2.0 (node_modules/usb): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: usb@1.2.0 install: `node-pre-gyp install --fallback-to-build` npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
IT looks like the EspruinoHub is not installed properly.
I use Olimex A20 platform with Armbian.
Any suggestions please? -
Hello
Amazing! the button works fine. Thank you very much.
I'm trying to get some feedback information back to puck, like LED.
When I send: /ble/write/e7:e0:57:ad:36:a2/nus/nus_tx (with my address obviously) I get en error:MQTT>/ble/write/c9:a2:6b:fd:3f:9d/nus/nus_tx => "LED1.set();\n"
Service 6e400001b5a3f393e0a9e50e24dcca9e Characteristic nus_tx
Error Connecting: Error: Command DisallowedAny clue what is wrong please?
-
I could not find the ameriDroid on UK market, I have bought an other one different BT dongle and the issue persist. Could be the error platform depended? I don't use R pi. Is the error caused definitely by BT dongle?
Any suggestions what can I test/check/try to fix it please?