SunSpot: MovementDetection

Problem:
Method "thresholdExceeded" always works even though we didn't move the spot or move the spot when it is in deepsleep.

Cause:
I suppose that the events occurred when we do move and wait for sending the messages when the receiver is available.

Solution:
Disable ThresholdEvent before starting in deepsleep mode -- accel.enableThresholdEvents(IAccelerometer3D.ALL_AXES, false);

Comments

Popular posts from this blog

Linking verb - seem, sound, smell, appear, become, get, feel (Verb of Senses)

Greeting in different way

since, as, becuase