JsBergbau / MiTemperature2

Read the values of the Xiaomi Mi Bluetooth Temperature sensor 2 including custom encrypted format.
706 stars 162 forks source link

Possible to use multiple sensors? #7

Closed XReyRobert closed 4 years ago

XReyRobert commented 4 years ago

Hello,

Can you run multiple instance of this scripts in parallels if you have multiple sensors ? (I don't have yet multiple sensors, so I can't test at the moment...)

JsBergbau commented 4 years ago

Yeah of course you can run multiple instances of the script. The script was designed that there is no interference at all. Currently I'm collecting 5 sensors on a Pi Zero W.

I don't know the hardware limit in the number of devices. But there seems some, because with 5 sensors running sudo hcitool lescan --duplicate often exits. However thats no problem of the script, just a hardware limitation.

giuseppegimo commented 4 years ago

I can confirm that. I'm using 3 instances running at the same time on a Pi 3.