Sleep in python example?

Hi there, I'm curious about the python stream_data example, there's two sleep calls:

https://github.com/mbientlab/MetaWear-SDK-Python/blob/master/examples/stream_data.py#L28
https://github.com/mbientlab/MetaWear-SDK-Python/blob/master/examples/stream_data.py#L51

Why do we need to sleep for a second after connecting and disconnecting? What does that do or help with? Does the device need that time to do something?

thanks!
-zo

Comments

  • edited December 2018

    Odd, neither belong there in that script. We will refactor said script.

  • @zoo,
    It is not needed. Keep in mind these scripts are for learning purposes only.

Sign In or Register to comment.