Automatically reconnect to Bluetooth speaker

I suffered for many days with this problem that the windows will not be able to reconnect with my bluetooth speaker

finally I found a very crude and primitive solution. I have a small button in my laptop to put it in airplane mode. So if I switch off that button then the laptop switches off wifi and bluetooth.

when I switch it back on again, windows bluetooth gets reset and now it connects to the speaker fine.

so it is just another form of "control+alt+del" curse of windows