Error message always popup(Error 515 : not connected to a bluetooth device) even have connected to BT device

“There is as yet insufficient data for a meaningful answer.” (Isaac Asimov).
Jokes aside, to let us help you, please post more info: i.e. your .aia and your .ino .
Or, as an alternative, take a look here:

Best wishes