martinberlin / cale-integrations

CALE configurator to add APIs to your epaper screens - PHP/Symfony 4.4
https://cale.es
MIT License
6 stars 0 forks source link

Add a BLE client to send a 1200x825 image #66

Open martinberlin opened 2 years ago

martinberlin commented 2 years ago

Linked to the server side ESP32S3 BLE server, who will receive the image: https://github.com/martinberlin/epaper-weather-station/issues/5

The idea is to make a copy of route: /backend/screen/ble_send/

And make a simple Javascript endpoint that will:

  1. PAIR Ble
  2. Have a send Image button, which will open the JPG and send it over BLE

It needs to be a compressed JPG otherwise the BLE payload will be quite bulky and probably hard to be sent to a device that is not very close to the Client.

martinberlin commented 2 years ago

Works but this was just an experimental test. Not willing to create my own protocol for this when L2CAP exists. It's just not implemented for BLE and exists just a BT-Classic example (ESP32) S3 does only have BLE and not bluetooth classic on board.

martinberlin commented 1 year ago

@UsefulElectronics one day you need to try BLE to receive the image. Just a JPG example that decompresses in the ESP32. It works but is a bit slow. Still a nice alternative way to refresh the display without the need of WiFi

UsefulElectronics commented 1 year ago

Sure I will try it out !