mirror of
https://github.com/torlando-tech/columba
synced 2026-08-12 18:07:15 -04:00
When Kotlin passes ByteArray to Python via Chaquopy, it arrives as a
jarray('B') (Java array), not Python bytes. Java arrays don't have
Python methods like .hex(), so calling .hex() on identity bytes
caused "jarray('B')' object has no attribute 'hex'" errors.
Add ensure_bytes() helper function and apply it to:
- _handle_data_received: data parameter
- _handle_duplicate_identity_detected: identity_bytes parameter
This fixes the duplicate identity detection callback which was failing
silently and allowing connections that should have been rejected.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
||
|---|---|---|
| .. | ||
| __init__.py | ||
| android_ble_driver.py | ||
| android_ble_interface.py | ||