I’m a bit confused after trying to wake up electron with Asset Tracker shield.
System.sleep(WKP, RISING, seconds);
both making my electron sleep for ‘seconds’ nevermind the motion that is going on before time passes by.
From https://docs.particle.io/datasheets/particle-shields/#using-the-asset-tracker I read that accelerometer is connected to WKP for wake-up. Although I don’t know where I can set the motion treshold mentioned in ‘cross a threshold you set on the accelerometer’.
I tried using ‘accel’ object (defined as Adafruit_LIS3DH accel = Adafruit_LIS3DH(A2, A5, A4, A3); ) directly - like it is in https://github.com/benagricola/tracker/blob/master/main.cpp but that gives me compile errors about private methods.
Summing up - using Asset Tracker Kit I want an easy way to put electron in deep sleep having it wake up when motion is observed or some maximum time passes by. What am I missing?
Using latest firmware 0.5.1.