Anemometer | Wireless WIFI Anemometer using ESP12e
kandi X-RAY | Anemometer Summary
kandi X-RAY | Anemometer Summary
Wireless WIFI Anemometer using ESP32. This project is based on the ESP32, it works with the Adafruit Anemometer
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Anemometer
Anemometer Key Features
Anemometer Examples and Code Snippets
Community Discussions
Trending Discussions on Anemometer
QUESTION
I 'm listening rs232Com using Portcom event-listener then generating propertychangelistener for interface controllers and everything works fine.
My new problem is that acquisitions for some sensors (anemometer) can terminate without any particular indication ( Pulse response ) and mostly dependent of bearings used.
The only solution i can see is that after an amount of time without anymore acquisition ( 2000ms ) i would like to end records to avoid recording data due to involuntary sensor handling .
At this point i can stop acquisitions unregistering controller of new message listener list using a button but i would like to do that automatically.
The point that miss me is to create a Timer that could launch a task after his delay timed out.This with a re-init function to feed him at each acquisition, barely the same way a watchdog works.
I started to search on web but i didn't find solutions and moreover which direction to go to
-Timer class
-Using a Thread / Runnable
-Schedule
-Modified watchdog
Thanks in advance
...ANSWER
Answered 2022-Mar-10 at 14:01For this kind of problem, I often go with a custom thread that has a timer as attribute. The thread check its timer regularly and do something when it ends. And in my main I can add time to the timer attribute if I need to continue.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Anemometer
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page