mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-10 16:33:27 +00:00
Reviewed the samiz BLE implementation and fixed compatibility issues: - Chunk index: changed from 2 bytes to 1 byte (matching samiz/NIP-BE example) - Chunk overhead: 2 bytes total (1 index + 1 total count), not 3 - chunkSize parameter now means payload size (500), not total chunk size - Android: TX power HIGH, advertise timeout indefinite (matching samiz) - Android: request MTU 512 and CONNECTION_PRIORITY_HIGH on connect - Android: discover services after MTU negotiation (samiz flow) - Android: set WRITE_TYPE_DEFAULT on write characteristic - MTU-to-chunkSize: properly accounts for ATT overhead (3) + chunk overhead (2) These changes ensure wire-level compatibility with samiz devices. https://claude.ai/code/session_01Tz5E73Rj7tL48A3qUGS5DT