FC11 ESP32-S3 BLE error

Any bugs you encounter with Flowcode should be discussed here.
stefan.erni
Valued Contributor
Posts: 1148
http://meble-kuchenne.info.pl
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 219 times
Been thanked: 238 times

Re: FC11 ESP32-S3 BLE error

Post by stefan.erni »

Hi Ben

First the good news.
BLE is also working with the ESP32-Pico

I tested the client.
It searches for devices and finds them, but it does not display any names.

If I simply select a device number to connect, for example no. 2, and that is the server (Flowcode), then I can receive and display the sent string. :)

BenR
Matrix Staff
Posts: 2064
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 549 times
Been thanked: 735 times

Re: FC11 ESP32-S3 BLE error

Post by BenR »

Ok thanks for letting us know I'll investigate this and see if I can replicate.

stefan.erni
Valued Contributor
Posts: 1148
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 219 times
Been thanked: 238 times

Re: FC11 ESP32-S3 BLE error

Post by stefan.erni »

Hi Ben

BLE also works with ESP32-C3 perfect :)

I couldn't test with ESP32-C6 because I can't compile C6.

I have a few more suggestions:

A command to set the BLE name at startup as with classic Bluetooth.

Establishing a fixed connection to a BLE using the BLE-MAC address.

Send receive Int_Array would be good to have so that BLE would be compatible with Uart component , Bluetooth classic component and the App developper comport component. Many applications use 16 bits. Probably the other array send/receives are not very important or useful.

stefan.erni
Valued Contributor
Posts: 1148
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 219 times
Been thanked: 238 times

Re: FC11 ESP32-S3 BLE error

Post by stefan.erni »

Hi Ben

More good news.
Interrupt and string receive work perfectly on ESP32-S3 with BLE.

stefan.erni
Valued Contributor
Posts: 1148
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 219 times
Been thanked: 238 times

Re: FC11 ESP32-S3 BLE error

Post by stefan.erni »

Hi Ben

I can already test part of it?
I'll have a look into the PC/Web devloper components next so we have a full set.

BenR
Matrix Staff
Posts: 2064
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 549 times
Been thanked: 735 times

Re: FC11 ESP32-S3 BLE error

Post by BenR »

I'm on it, I think we have already released the web developer version of a component, I'll check on this as I'm a little fuzzy on how I left things with Steve. I made a quick demo and Steve wrapped it into a finished webdev component.

For PC developer, this afternoon I've written a DLL to interface the Windows Bluetooth API (will need at least Win10 for this to work) and I've written a component to go around this. Just need to test it all works now. Hopefully later today or tomorrow we will have something I can share.

BenR
Matrix Staff
Posts: 2064
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 549 times
Been thanked: 735 times

Re: FC11 ESP32-S3 BLE error

Post by BenR »

Right this is largely working for me now but it needs more work to make it a bit more user friendly in terms of the usual read/write functions.


First you need the DLL which needs to be extracted and placed here:
C:\Program Files (x86)\Flowcode v11\API.DLL folder.

BLE_SPP_DLL.zip
(101.93 KiB) Downloaded 15 times

Next you need the BLE component. Here is the exported component file that needs to live here:
C:\ProgramData\MatrixTSL\FlowcodeV11\Components

BLE_GATT_SPP.fcpx
(3.05 KiB) Downloaded 19 times

Lastly here is the component source code, it has a little code in the main as a basic test I've been trying out.

BLE GATT SPP.fcpcd
(44.2 KiB) Downloaded 17 times

Let me know how you get on.

Steve-Matrix
Matrix Staff
Posts: 1696
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 244 times
Been thanked: 402 times

Re: FC11 ESP32-S3 BLE error

Post by Steve-Matrix »

BenR wrote:
Mon Dec 22, 2025 3:34 pm
I'm on it, I think we have already released the web developer version of a component, I'll check on this as I'm a little fuzzy on how I left things with Steve. I made a quick demo and Steve wrapped it into a finished webdev component.
I created a component, but it probably needs a little extra effort (e.g. suitable icon) to be fully complete. Hopefully @BenR can add an icon and get that released as a library component (but might need to wait until the New Year).

stefan.erni
Valued Contributor
Posts: 1148
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 219 times
Been thanked: 238 times

Re: FC11 ESP32-S3 BLE error

Post by stefan.erni »

Hi Ben, Hi Steve

Thank you very much.

BLE also works with the App Developer now. Perfect!
Running a scan and selecting the right module with the address is also perfect.
Sending and receiving in both directions is perfect!

I will also test with the web developer.


I can already work with read and write buffers, but it would be nice if BLE ESP32 and BLE App could read/write in the same style. I mean read/write string, byte, array, int array :) that would be easier for me and others.

Here is an example from the ESP32 SPP.
2026-01-05_15-08-55.PNG
2026-01-05_15-08-55.PNG (36.97 KiB) Viewed 73 times
for comparison:
2026-01-05_14-52-28.PNG
2026-01-05_14-52-28.PNG (54.8 KiB) Viewed 73 times
2026-01-05_14-49-10.PNG
2026-01-05_14-49-10.PNG (29.6 KiB) Viewed 73 times

BenR
Matrix Staff
Posts: 2064
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 549 times
Been thanked: 735 times

Re: FC11 ESP32-S3 BLE error

Post by BenR »

Hi Stefan,

Right should all be available for you now via the library updates.

You will need a new version of the DLL for the PC Developer BLE component which now tells you how many bytes are in the receive queue rather then just a true/false.

BLE_SPP_DLL.zip
(113.2 KiB) Downloaded 7 times

Post Reply