Q : "I want to exit the parallel process from one of the def
-s..., so that the program continues after the last line of this code:"
The idea is clear, the approach is awfully wrong.
If this were used in NASA Apollo Programme for going to the Moon, there would be a first non-terrestrial grave in the Mare Tranquillitatis.
Never try to depend on a process / thread termination / completion like was assumed above.
Better create a structure of cooperating-agents, one (or more, for a more fault-tolerant system) responsible for any and all independent BT-measurements, another (again independent on any other agent, resource or processing) a one for all the WiFi-measurements.
This way, if something gets wrong (and it often does, most often in the worst moment, like during the Moon-landing, when Radar started to spray the central AGC-computer with error-signalling and if it were not for the smart & brave work from Ms. Margaret Hamilton, who re-designed the principles of how to control the complex system right into the set of independently controllable, non-blocking, the less mutually {dead-|live-|panic-attack-}-locking entities, the mission would have turned into a world-wide watched Lunar funeral ).
So, best split the concerns, one for the BR, another one for the WiFi and keep the main process communicate with them, be it using the O/S-based or nanomsg/pynng
or ZeroMQ / pyzmq
communication frameworks, that help you create a robust, non-blocking meta-plane(s) for such a distributed-computing system, using either of or all of TransportClass(es) available for local ipc://
or even non-local tcp://
inter-agent communications.
There you will have all the recent readings available in due time & fashion ( independently of how the remote-agents get them ), having even the chance to resolve any such case as an error-readout or missing-data, if your design gets closer to the principles demonstrated by Ms. Margaret Hamilton for NASA, some half century ago already.
Ultimate respect to all those MIT-Team Human Heroes and the lectures on the Art-of-(dependable)-Code-Design