Closed
Description
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:
- Access to one of the demos above.
- Try to connect.(click Connect button or click screen on Preview window.)
- 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.
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