maritime-labs/calypso-anemometer

Release bluetooth connection on program termination

amotl opened this issue · 0 comments

amotl commented

Hi again,

@UserMacUseface thankfully just reported another observation, where the implementation has room for improvement.

Something else: How can you actually end the process "cleanly"?

Hm. When it runs interactively? CTRL+C does not work?

Well. The process runs in the background, after being started at system startup via shellscript and then decoupled. I can terminate the process using pkill calypso, but then the bluetooth connection is still active. In order to fix it, I will need to invoke pkill blue to release the device again. This is certainly not so elegant.

With kind regards,
Andreas.