GithubHelp home page GithubHelp logo

Comments (8)

fivdi avatar fivdi commented on June 12, 2024

I'm afraid I'm not familiar with Electron and can't provide much help. Are error messages displayed when the application is run?

from onoff.

fivdi avatar fivdi commented on June 12, 2024

Duplicate of atom/atom#22638

onoff depends on a native Node module called epoll. Special steps need to be taken when installing native Node modules like epoll with Electron. For additional information see here.

If these special steps are not taken into account, errors complaining about incorrect NODE_MODULE_VERSION numbers like the errors shown here can occur.

@lakshanthad Is your application showing NODE_MODULE_VERSION errors or other errors?

from onoff.

leerlemoniii avatar leerlemoniii commented on June 12, 2024

from onoff.

lakshanthad avatar lakshanthad commented on June 12, 2024

Hello. Thank you all for the replies. I have now made it work using ipcMain and ipcRenderer modules. Not sure whether there is an easy way to do this

from onoff.

fivdi avatar fivdi commented on June 12, 2024

Thank you for the feedback. I guess if it's working now the issue can be closed.

from onoff.

NathanJ4620 avatar NathanJ4620 commented on June 12, 2024

the ipcMain and ipcRenderer are the only ways to communicate between electron and an external Node instance. This functionality is to help maintain security on the host device when creating a shipped application.

from onoff.

TheGrateMartian avatar TheGrateMartian commented on June 12, 2024

I am trying to do the same. @lakshanthad Can you share please show/share what you did to get it workin?

from onoff.

HelloSmartFactory avatar HelloSmartFactory commented on June 12, 2024

@TheGrateMartian
Here is a sample using ipc.
https://github.com/boraciner/electron-gpio

from onoff.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.