Send Data on Movement.
in JavaScript
Is there a way to setup the device to only send motion data anonymously when it is moving based on a threshold?
will mbl_mw_metawearboard_create_anonymous_datasignals work for this, meaning will the device always be connected to the BLE transmitting? or only when it has data to transmit?
Basically what I we are looking for is a way to know when something is moving (or spinning). If the device is moving, then it will not transmit, but if the movement goes above the threshold, then the device will report or send out a data blob.
Comments
https://mbientlab.com/cppdocs/latest/accelerometer.html#motion-detection
that only works with Accelerometer I forgot to say that we were working with the Gyro.
Also that does not answer the question, but thank you for the Quick reply!
https://mbientlab.com/cppdocs/latest/dataprocessor.html?highlight=threshold#threshold
Is there a way to setup the device to only send motion data anonymously when it is moving based on a threshold?
So using the threshold, I will be able to anonymously send data to my Pie?
What do you mean by sending data anonymously?
Sorry for the late reply,
I was thinking, like a broadcast. so if a device (Pie for example) is listening, it would catch it.
thanks
Just checking in.
We do not support custom broadcasting (Ad packets) at this time because it is not a reliable way to get data through a Bluetooth link. In broadcasting mode, there is no way to ensure a packet is delivered and, as such, roughly 50% of your packets will get dropped / will not be received.
In connected mode, the Bluetooth protocol ensures that dropped/lost packets are re-sent. You just don't get that in broadcast mode.
That being said, we have done some custom broadcasting project for our customers under our services but they have to be carefully engineered.
We do support beacon mode.
What is Beacon mode?
I googled it for you: https://www.beaconstac.com/what-is-a-bluetooth-beacon
So basically is just a prompt for your phone to click something?
That's one use case