node var request issue
-
@hek argh... values having changed, it would have been good to have such low level exchanges a bit documented as before(at least explaining you answer a get by a set...)... now that part works,
Next I have to investigate why it is not counting anymore... so bat we can't yet make OTA updates
https://github.com/empierre/arduino/blob/master/WaterMeterPulseSensor2.ino -
ok this is now fixed, I added a led pulse too.
@hek could wwe provide both methods in the smae sketch to handle both visual pulse and reed ? the default one does not work for reed....
-
@hek What's different from a regular button when using a reed sensor? Both have to be debounced...
-
-
@Yveaux @hek in fact it has to be debounced for it vibrates on rising and falling so it is important to see. maybe the bling delay would do it simply but someoone may remove the led...
Also through trial and error here is the way to manage it:
// Setup the reed pinMode(DIGITAL_INPUT_SENSOR,INPUT); // Activate internal pull-up digitalWrite(DIGITAL_INPUT_SENSOR,HIGH); attachInterrupt(INTERRUPT, onPulse, FALLING);you have to power the pin to get the signal when both sides are connected.
