How does the BLE low-level Bluetooth map to the modbluetooth.c code? #13668
Replies: 2 comments 10 replies
-
|
Beta Was this translation helpful? Give feedback.
-
At this stage I'd suggest running the multitests that do all this stuff on a board running nimble and following how it works there, to then replicate the same pathways for btstack. I don't think btstack is ever given control of storing bond information itself (aioble handles json file read/write etc) so I wouldn't think btstack would need to be told to "delete bond"? Any new python API would need to also make sense on nimble (and zephyr) unless the existing one is incompatible with btstack, at which point a larger discussion would be needed to find a new common API that can work across all stacks. |
Beta Was this translation helpful? Give feedback.
-
I want to be able to call the
btstack void gap_delete_bonding(bd_addr_type_t address_type, bd_addr_t address)
method among other things but I do not understand how the python codes maps to the C code.For example, I see there is this
BLE.gap_advertise()
method but themodbluetooth.c
file hasmp_bluetooth_gap_advertise_start()
andmp_bluetooth_gap_advertise_stop()
. I dont even see a stop method on the python side.If I wanted to add a python function
BLE.gap_delete_bonding(params)
how would I do it? In thebtstack
C code in thesm.c
file there is such a method.Beta Was this translation helpful? Give feedback.
All reactions