Skip to content

[codex] Fix Mentra Live action button event id#3105

Draft
PhilippeFerreiraDeSousa wants to merge 1 commit into
devfrom
codex/mentra-live-action-button-events
Draft

[codex] Fix Mentra Live action button event id#3105
PhilippeFerreiraDeSousa wants to merge 1 commit into
devfrom
codex/mentra-live-action-button-events

Conversation

@PhilippeFerreiraDeSousa

Copy link
Copy Markdown
Contributor

Summary

Fixes the public Mentra Live button identifier so the right action button is surfaced as buttonId: "action" instead of the stale camera-button label.

Event-name mapping

Surface Current/corrected name Origin / notes
ASG BLE payload type: "button_press", buttonId: "action", `pressType: "short" "long"`
Bluetooth SDK React Native event button_press with ButtonPressEvent.buttonId === "action" on Mentra Live Android and iOS Mentra Live parsers now normalize legacy incoming "camera" IDs to "action" before emitting to the public SDK bridge.
Cloud SDK stream StreamType.BUTTON_PRESS / "button_press" with opaque buttonId; Mentra Live documented as "action" Stream/event name remains the generic button stream; the public button identifier is corrected.
Touch / swipe inputs touch_event gesture names such as single_tap, double_tap, forward_swipe, etc. Unchanged; these are separate related input events from K900 touch reports.

Scope

  • Updated Mentra Live ASG event emission from buttonId: "camera" to buttonId: "action".
  • Added Bluetooth SDK Android/iOS normalization so older Mentra Live ASG payloads using "camera" still surface as "action" to public SDK consumers.
  • Updated public docs and type comments to teach the action-button identifier.

Compatibility notes

This intentionally changes the public Mentra Live button identifier from "camera" to "action". The Bluetooth SDK parser compatibility path maps older glasses payloads from "camera" to "action", so apps using current SDK builds will see the corrected identifier even before all glasses-side clients are updated.

Validation

  • git diff --check
  • cd asg_client && ./gradlew :app:compileDebugJavaWithJavac

Mobile/cloud node_modules were not installed in the wrapper worktree, and the TypeScript changes are comments/docs only. The Bluetooth SDK native parser edits were statically inspected.

@github-actions

github-actions Bot commented Jun 8, 2026

Copy link
Copy Markdown

📋 PR Review Helper

📱 Mobile App Build

Ready to test! (commit 56ea332)

📥 Download APK

🕶️ ASG Client Build

Build failed (commit 56ea332) - View logs

📦 Previous build: (commit ba95545) - 📥 Download ASG APK


🔀 Test Locally

gh pr checkout 3105

@PhilippeFerreiraDeSousa PhilippeFerreiraDeSousa force-pushed the codex/mentra-live-action-button-events branch from ba95545 to 56ea332 Compare June 8, 2026 03:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant