Do I need to use board.connectAsync every time I use the sensor?
If I want to use several sensors at the same time, do I need to use board.connectAsync() when using each sensor?
Like these
https://drive.google.com/file/d/1JOQGn_NhFr6ezeeAzKcKrddrjrHw8QME/view?usp=sharing
https://drive.google.com/file/d/1UdqEGFwWD9d2DUbex495TEKOYA__-t5J/view?usp=sharing
https://drive.google.com/file/d/1kDSXsaV_5WLOe8HW8vfJkewucuW9icTh/view?usp=sharing
Or I only need to use board.connectAsync() once
Like these
https://drive.google.com/file/d/1EDCnNrEA91V93NJwzj13tVqWwK3gt-e_/view?usp=sharing
https://drive.google.com/file/d/1BfmbOJVD0HN6GGQN2vKsPUSrq9TV5ZDf/view?usp=sharing
https://drive.google.com/file/d/1619vVQeYd6AEo6TXT36VE2aIcDGHrREk/view?usp=sharing
https://drive.google.com/file/d/1ZIfsLqb6tUvJuSayM3kve2FgDOceb7Rm/view?usp=sharing
Comments
If you are still connected to the sensors and the board pointer is still valid, you do not need to re-use "connectAsync()".
Please see how many examples on github.
Thanks for answering my question