petzval / btferret

Python and C Bluetooth Library
MIT License
126 stars 22 forks source link

Dynamically load a node after init_blue #49

Closed gregoiregentil closed 2 months ago

gregoiregentil commented 2 months ago

Let's say that I have a running btferret library and init_blue has already been called. Is there a way to add a new node at run-time? I know the specifications of the node when starting init_blue but I don't know its mac address.

Alternatively, could I put a fake mac address when calling init_blue and edit later the mac address even by patching btlib.c?

gregoiregentil commented 2 months ago

Answering my own question: