B4X FEED Very strange SLOWNESS in BLE writeData

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: Very strange SLOWNESS in BLE writeData است. این موضوع تا کنون 26 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع Very strange SLOWNESS in BLE writeData
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
26
پسندها
0
آخرین ارسال توسط PracticalSoft
Jun 6, 2020
11,559
4,422
Hi everyone,

I'm trying to send a 900KB file to an ESP32 via BLE.
Assume that the code on the ESP32 is working because i tested it using a React WebApp running in the PC browser, that connects to it over BLE and send the files.
Everything works fine.

However... i managed to port the same exact javascript code in B4A in order to send several packets of 512bytes into a characterstic using the "writeData" function.
As soon as the ESP32 receives the data from the APP, it does it's things very fast and notify the APP to send another packet of 512bytes.

The problem is.... the APP takes about 3 seconds to send 512bytes... with the same exact code in the ESP, but using the React webapp to do the transfer was hundreds time faster...

Maybe the phone BLE is slower compared to the one of my PC?... can be the BLE library? i dont know.

I need to try running the webapp o my phone and test it like so...

Do you think is a solvable issue?

Thanks in advance

 

عقب
بالا