Hi I came across with this codes on github and was wondering if there’s any difference for the coding between enabling motion on beacon and enabling motion on sticker. If there’s any difference, can you all help me out in pointing out the difference.
Code for enabling motion on beacon:
// First step after connection is to enable motion detection on beacon. Otherwise no motion notifications fill be sent.
connection.edit().set(connection.motionDetectionEnabled(), true).commit(new BeaconConnection.WriteCallback() {
@Override public void onSuccess() {
// After on beacon connect all values are read so we can read them immediately and update UI.
setMotionText(connection.motionDetectionEnabled().get() ? connection.motionState().get() : null);
// Motion sensor sends status updates on physical state change.
enableMotionListner();
}