Giter VIP home page Giter VIP logo

Comments (4)

publu avatar publu commented on September 17, 2024

You might want to read the code and see how to listen for changes

from web3-arduino.

Timvdv avatar Timvdv commented on September 17, 2024

@publu I did that and could not find the implementation. So I might have missed it, or it's not implemented yet.

I do understand that the contract event listener requires a websocket connection which I'm not even sure if it's supported on the ESP32.

Just polling could also do the trick. If we could implement the contract.getPastEvents function we can kindof work around the websockets. Not as nice because the http provider is deprecated in the latest web3 version. But for the ESP32 it's probably the best solution.

from web3-arduino.

kopanitsa avatar kopanitsa commented on September 17, 2024

Sorry for my late reply. This is not implemented yet, but I'd like to implement it asap. Sorry for slow speed of development :(

from web3-arduino.

Timvdv avatar Timvdv commented on September 17, 2024

No problem! At the moment I'm working with the NodeJS web3 version on the Raspberry Pi. But I would love to implement it on my ESP32. Unfortunately my knowledge of C is not that great, otherwise I would've helped you with the development. However I might be able to test the implementation when It's done 😃

from web3-arduino.

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.