Switching between logging/streaming depending on connection state.
Hi, apologies if this has been asked before, I've tried looking and haven't been able to find the answer.
I am trying to develop an application that takes data from the step detection routine of the Bm160 accelerometer. What I'd like to do is to be able to switch on logging for step detection when the board disconnects, then when the board reconnects to the phone, switch to streaming. So far, I've not been able to switch logging on or off depending on the connection state which means that entries appear both in the log and the stream when connected. I'm currently using just logging a periodically polling the logs but this seems inefficient versus streaming. Any help is greatly appreciated (even just letting me know that it isn't possible).
Board: Metawear RG
This discussion has been closed.