Web Developer with BLE

Post here to discuss any new features, components, chips, etc, that you would like to see in Flowcode.
Steve-Matrix
Matrix Staff
Posts: 1783
http://meble-kuchenne.info.pl
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 258 times
Been thanked: 415 times

Re: Web Developer with BLE

Post by Steve-Matrix »

Thanks, Stefan. That's useful to know.

I've just done some searching and found this note:
If you use filters (like namePrefix) to find a device, you must still specify the services you plan to access in the optionalServices array to connect to them.
So you might need to have something like the following:

Code: Select all

filters: [ { namePrefix: "Flow" } ], optionalServices: [0xffe0]

stefan.erni
Valued Contributor
Posts: 1171
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 222 times
Been thanked: 240 times

Re: Web Developer with BLE

Post by stefan.erni »

Hi Steve

Yes with this filter it's working fine on:

W11 with Edge
Android with Chrome

Iphone with IOS does not allow BLE on HTML, or I don't know how to setup.

I'll continue with Win and Android.

Steve-Matrix
Matrix Staff
Posts: 1783
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 258 times
Been thanked: 415 times

Re: Web Developer with BLE

Post by Steve-Matrix »

Thanks, Stefan.

It looks like iPhone does not support BLE via HTML:
https://caniuse.com/web-bluetooth

BenR
Matrix Staff
Posts: 2140
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 578 times
Been thanked: 761 times

Re: Web Developer with BLE

Post by BenR »

According to Google - Bluefy is a browser app you can install on an iPhone, iPad to allow WebBluetooth.

Please note I haven't tested this and have no other reference for the app.

https://apps.apple.com/us/app/bluefy-we ... 1492822055

What's odd to me is that this works yet chrome does not.

Post Reply