Skip to content

Can not use WebBluetooth function. #1900

Closed
@tetunori

Description

@tetunori

Nature of issue?

  • Found a bug

Details about the bug:

Hi all, I found that I could not use WebBluetooth function on the latest p5js web editor as of 2021/07/15. So, now we can NOT use p5.ble.js, p5.toio, and so on.
Please check the demos below.
p5.ble.js demo
p5.toio demo

I could surely use it in June 2021 so I think some recent changes might affect.
At least, this issue occurs on Chrome and Firefox environment.

Environment

  • Web browser and version: Chrome 91.0.4472.124(Official Build)(64 bit)
  • Operating System: Windows 10 Home, 10.0.19042 build 19042

Steps to reproduce this bug:

  1. Access to one of the demos above.
  2. Try to connect.(click Connect button or click screen on Preview window.)
  3. Problem occurs! The error log "SecurityError: requestDevice() called from cross-origin iframe." is shown in the Console and BLE connection dialog never opens up.

Usually, BLE connection dialog below opens and we can connect to the BLE peripheral.
image

Since WebBluetooth on P5 js web Editor is very easy to use and helpful for a lot of people, I hope this issue will be fixed.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions