Skip to content

Error on sx127x.open() #7

Description

@pchambers

I just installed the package on RasPi B v1.2

When testing the examples I get the following in sender.js I believe the first error is being thrown on _spiOpen and when _spi.transfer is being called, it throws the next error.

Any suggestions for troubleshooting this error?

{ [Error: ENOENT, No such file or directory] errno: 2, code: 'ENOENT', syscall: 'open' }
Debug sx127x: Sending: hello 0
Error: Spi not defined
at SX127x._readRegister (/home/pi/sx127x-node-driver/lib/sx127x.js:472:11)
at SX127x.write (/home/pi/sx127x-node-driver/lib/sx127x.js:427:36)
at send (/home/pi/sx127x-node-driver/examples/sender.js:29:17)
at process._tickCallback (internal/process/next_tick.js:68:7)
(node:6870) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions