Skip to content

Uncaught TypeError: Cannot read property 'requestDevice' of undefined #12

@RobotZwrrl

Description

@RobotZwrrl

Hi there,

I'm trying to run the multiple characteristics example, but receiving an error in the browser console. The device I'm trying to connect to is an ESP32 running a BLE test code that has 1 service and 2 characteristics. The ESP32 is able to be connected to through other BLE apps. The example has been modified with the device's service and characteristic UUIDs.

Here is the output from the browser console:

p5.ble.js:51 Requesting Bluetooth Device...

p5.ble.js:53 Uncaught TypeError: Cannot read property 'requestDevice' of undefined
    at p5ble.connect (p5.ble.js:53)
    at connectAndStartNotify (sketch.js:37)
    at p5.Element.eventPrependedFxn (p5.js:49425)

Would you happen to know what's the cause, or if there's any way to fix this?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    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