Skip to content

Properly set properties in bluetooth.simulateCharacteristic#660

Merged
chengweih001 merged 2 commits into
WebBluetoothCG:mainfrom
chengweih001:main
Jul 21, 2025
Merged

Properly set properties in bluetooth.simulateCharacteristic#660
chengweih001 merged 2 commits into
WebBluetoothCG:mainfrom
chengweih001:main

Conversation

@chengweih001
Copy link
Copy Markdown
Contributor

@chengweih001 chengweih001 commented Jul 21, 2025

This PR fixes the issue in the automation command bluetooth.simulateCharacteristic that it doesn't set the simulated characteristic properties properly.


Preview | Diff

Copy link
Copy Markdown
Contributor

@reillyeon reillyeon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with grammar nits

Comment thread index.bs Outdated
Comment thread index.bs Outdated
1. If |params|[`"type"`] is `"add"`:
1. If |characteristicMapping|[|characteristicUuid|] [=map/exists=], return [=error=] with
[=error code=] [=invalid element state=].
1. If |params|[`"characteristicProperties"`] does not [=map/exists=], return [=error=] with [=error code=] [=invalid argument=].
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
1. If |params|[`"characteristicProperties"`] does not [=map/exists=], return [=error=] with [=error code=] [=invalid argument=].
1. If |params|[`"characteristicProperties"`] does not [=map/exist=], return [=error=] with [=error code=] [=invalid argument=].

Comment thread index.bs Outdated
@chengweih001 chengweih001 merged commit 5508fa5 into WebBluetoothCG:main Jul 21, 2025
2 checks passed
github-actions Bot added a commit that referenced this pull request Jul 21, 2025
SHA: 5508fa5
Reason: push, by chengweih001

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions Bot added a commit that referenced this pull request Jul 21, 2025
SHA: 5508fa5
Reason: push, by chengweih001

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions Bot added a commit that referenced this pull request Jul 21, 2025
SHA: 5508fa5
Reason: push, by chengweih001

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions Bot added a commit that referenced this pull request Jul 21, 2025
SHA: 5508fa5
Reason: push, by chengweih001

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

2 participants