FC11 ESP32-S3 BLE error

Any bugs you encounter with Flowcode should be discussed here.
stefan.erni
Valued Contributor
Posts: 1152
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

Perfect!
SendArray is working for this 3 commands
to send: as buffer as "on" or as string
2026-01-07_13-37-54.PNG
2026-01-07_13-37-54.PNG (57 KiB) Viewed 315 times
That means it already works very well.

I have observed that it is already perfectly implemented in ESP32 BLE_GATT.
these practical send/receive IntArray
but one little thing remains in the App BLE_GATT_SPP:
:)
2026-01-07_13-54-12.PNG
2026-01-07_13-54-12.PNG (49.18 KiB) Viewed 315 times

something very small:
If I send, the TX LED is flashing
but if I receive a byte, the RXLED is not flashing(it's not a problem)
2026-01-07_13-40-01.PNG
2026-01-07_13-40-01.PNG (11.44 KiB) Viewed 315 times

BenR
Matrix Staff
Posts: 2093
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 554 times
Been thanked: 740 times

Re: FC11 ESP32-S3 BLE error

Post by BenR »

Aha sorry I didn't make the new macros public! RX LED should flash now too.

Should be there for you now ;)

stefan.erni
Valued Contributor
Posts: 1152
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

Yes RX Led is perfect!

Also the send/receive IntArray is there.

but one little thing ....

NumValues are usually int or uint

A byte has crept into these three macros.

But it's not really a problem.
2026-01-07_14-59-07.PNG
2026-01-07_14-59-07.PNG (130.26 KiB) Viewed 301 times
SNAG-0056.PNG
SNAG-0056.PNG (138.43 KiB) Viewed 301 times
SNAG-0057.PNG
SNAG-0057.PNG (74.51 KiB) Viewed 301 times

BenR
Matrix Staff
Posts: 2093
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 554 times
Been thanked: 740 times

Re: FC11 ESP32-S3 BLE error

Post by BenR »

Hi Stefan,

The byte is there on purpose as I have to define a byte byffer to use as a go between to convert from bytes to ints and that is fixed at 512 bytes and so more then 256 values in the array would require a bigger buffer of unknown size. It's a compromise but seems to be what I have put in place in the other components that work with arrays of ints.

stefan.erni
Valued Contributor
Posts: 1152
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 cannot locate the comonents in the web developer.
I'm on it, I think we have already released the web developer version of a component

BenR
Matrix Staff
Posts: 2093
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 554 times
Been thanked: 740 times

Re: FC11 ESP32-S3 BLE error

Post by BenR »

Ok it looks like it might not be released yet.

I'll talk it through with Steve when he's back and see if we're happy with it. Currently it only deals with Strings so probably needs more effort puttin in to match up with the other components.

stefan.erni
Valued Contributor
Posts: 1152
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

My test with the web app on PC (Windows), iPhone (iOS), and tablet (Android) worked well.
I'm ready to test BLE with a string until Steve gets back :)

I can only post the HTML file in a ZIP file.
Force_Web.zip
(3.99 KiB) Downloaded 33 times

BenR
Matrix Staff
Posts: 2093
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 554 times
Been thanked: 740 times

Re: FC11 ESP32-S3 BLE error

Post by BenR »

Hi Stefan,

The component as it is atm is here, just copy it into your "C:\ProgramData\MatrixTSL\FlowcodeV11\Components" folder and it should appear in WebDeveloper under Helper.

WebBLE.fcpx
(3.9 KiB) Downloaded 33 times

Here's a quick demo project from Steve.
BLE_tester_02.fcweb
(16.79 KiB) Downloaded 36 times

Post Reply