Bluetooth serial always alert for not connected mesage

Here is code

this.bluetoothSerial.isConnected().then((res)=>{
alert(res+‘for is connected’);
},err=>{
alert(err+‘for is not connected’);
});
I don’t know what is wrong…???