It was firts AM1V400 but when I saw that I immediately changed it to AM1V410. After I changed I get this:
guest@raspberrypi:~ $ sudo python3 mic_test.py
name ‘manager’ is not defined
Scanning Bluetooth devices…
Discovery started.
New device discovered: AM1V410.
Discovery stopped.
Connecting to device: AM1V410 (f1:af:81:8a:e3:ce)
Device AM1V410 connected.
Available features:
Gesture
Activity Recognition
Temperature
Temperature
Humidity
Pressure
Magnetometer
Gyroscope
Accelerometer
Traceback (most recent call last):
File “/home/guest/mic_test.py”, line 196, in
main()
File “/home/guest/mic_test.py”, line 132, in main
feature = filtered_features[0]
IndexError: list index out of range
Device AM1V410 disconnected.
Exception ignored in: <function Peripheral.del at 0x7656dbf8>
Traceback (most recent call last):
File “/usr/local/lib/python3.9/dist-packages/bluepy/btle.py”, line 630, in del
File “/usr/local/lib/python3.9/dist-packages/blue_st_sdk/node.py”, line 555, in disconnect
File “/usr/local/lib/python3.9/dist-packages/blue_st_sdk/node.py”, line 397, in _update_node_status
File “/usr/lib/python3.9/concurrent/futures/thread.py”, line 161, in submit
RuntimeError: cannot schedule new futures after shutdown