Comments (4)
You might want to read the code and see how to listen for changes
from web3-arduino.
@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.
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.
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)
- RLP - wrong length prefix
- data encoding fails for specific type lengths HOT 5
- No data sent to the smart contract HOT 1
- error: no matching function for call to 'Web3::Web3(const char [18], const char [36])' HOT 10
- compatibility with local blockchain or other remote blockchains? HOT 2
- call web3 using ARDUINO MKR GSM 1400
- Can not connect to infura. abort() was called at pc 0x401627c3 on core 1? HOT 2
- Compatibility of test net? HOT 1
- forbidden access to infura HOT 1
- insufficient funds for gas * price + value HOT 2
- problem with the private key HOT 2
- caCert error HOT 2
- Infura returns -1
- How to run a smart contract function with parameters over a transaction on Goerli? HOT 2
- Does the library work with HTTPS? HOT 1
- Is library still working?
- Fatal Error: string: No such file or directory HOT 1
- Compile error with macros 'min' and 'max' HOT 2
- RLP Encode Header - Off by one error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from web3-arduino.