As I work on developing an embedded system that counts the number of cars, saves their speed and time data in a logs file using rsyslog. Simultaneously, I am creating a web-API (in Typescript/Angular with Electron for Desktop usage and later Web as well) that allows users to upload these logs and store them locally on their laptops.
I have successfully set up a GATT server and can acquire simple data like battery level and status over Web-Bluetooth. However, I am unsure if it is possible to send/receive a file using Web-Bluetooth or perhaps send it piece by piece.
My attempt at sending the file in pieces involved dividing the file size by 512 bytes per frame and transmitting X frame(s) to the Web-App. Unfortunately, I encountered issues after a few days of trying this method. This led me to discover information on Bluetooth's website about the 'Object Transfer Service' available with GATT. However, upon further investigation, it appears that this service primarily supports bulk data transfer via a separate L2CAP connection orientel channel, which raised questions about the possibility of sending files.
Considering the challenges faced with Web-Bluetooth, I am contemplating whether it would be more feasible to modify my plan and utilize a different protocol for transferring files between the laptop and the embedded system, specifically for tasks such as sending configuration files and parameters.