You've already forked M5Cardputer-UserDemo
mirror of
https://github.com/m5stack/M5Cardputer-UserDemo.git
synced 2026-05-20 11:03:59 -07:00
3944f20ee8
Peripheral Preferred Connection Parameters (PPCP) characteristic was previously unset. It is now optimized for a (low-power) keyboard. Both mechanisms are needed because they serve different roles: - sdkconfig PPCP (CONFIG_BT_NIMBLE_SVC_GAP_PPCP_*): populates the Peripheral Preferred Connection Parameters GATT characteristic in the GAP service. A central reads this during service discovery and may apply the preferences. Acting on PPCP is optional for the central. - ble_gap_update_params() in code: sends an active L2CAP connection parameter update request immediately after connect. This forces negotiation rather than just advertising a preference; most hosts accept reasonable HID parameters when actively requested. Some hosts honour PPCP but ignore the update request; others do the reverse. Keeping both and setting all values to something sane maximises compatibility across Linux, macOS, Windows, and Android. NOTE: Remove any stale 'sdkconfig' in the directory before rebuilding. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>