I am currently developing an embedded system who count the number of cars and saved theirs speed and time. All these data are stored in a simple logs file (thanks to rsyslog). In parallel, I develop an web-API (in Typescript/Angular with Electron for Desktop usage and later Web as well) who allow the user to upload the logs and stored them locally on his laptop.
I setup a GATT server and I'm able to get simple data like battery, and status over Web-Bluetooth, however, can I send/receive over Web-Bluetooth a file ? Or maybe send it in piece by piece ?
I tried the second way, the maximum size is 512 bytes per frame, so I divide my file size by 512 and send X frame(s) to the Web-App but I don't know if it is possible because I can't have something working after a few days ... So then, I found this on Bluetooth's website: https://www.bluetooth.com/specifications/gatt/services/ The 'Object Transfer Service' exist with GATT, but when you click on that we can read: "This service provide management and control features supporting bulk data transfer which occur via a separe L2CAP connection orientel channel". Does that mean we can't send file ?
Should I change my plan and using an protocol ? I also want to send files from laptop to the embedded system, like configuration files and parameters.