Help. raspberry pi

OnOff mode
Connecting to SSL: cloud.blynk.cc 8441
Connected
Authorized
Blynk ready.
fs.js:613
return binding.writeBuffer(fd, buffer, offset, length, position);
^
Error: EBUSY, resource busy or locked
at Error (native)
at Object.fs.writeSync (fs.js:613:20)
at Object.fs.writeFileSync (fs.js:1108:21)
at new Gpio (/usr/local/lib/node_modules/onoff/onoff.js:82:8)
at process (/usr/local/lib/node_modules/blynk-library/blynk-node.js:314:19)
at Blynk.onReceive (/usr/local/lib/node_modules/blynk-library/blynk.js:463:2 9)
at null. (/usr/local/lib/node_modules/blynk-library/blynk.js:527: 50)
at emit (events.js:107:17)
at TLSSocket. (/usr/local/lib/node_modules/blynk-library/blynk-no de.js:169:14)
at TLSSocket.emit (events.js:107:17)

So what’s the issue? Could you please be more specific?

all the time this error comes out

Could you try basic onoff library examples to see if they work? Blynk relies on this for GPIO control.

Hello,
I’ve got the same issue on my Raspberry Pi 3, but cannot use the library examples because they doesn’t seem to be written in Python (and I’m a very beginer in programing).
The issue comes when :

  • a temperature sensor is connect to Gpio 4 (the sensor works very well with a simple Python program)
  • Blynk also works very well (I can command a relay On/Off from my IPhone)
  • but when I try to read temperature with Blynk on Gpio 4, the issue occured “Error: EBUSY, resource busy or locked …”
    Do you have an idea or some Python examples so that I can test different situations ?
    Thanks in advance

You can run python scripts from within JavaScript - i think no issue here :slight_smile: