hayleyxyz / esp32-ble-printer-server

ESP32 BLE printer server for reverse engineering the protocol on my cheapo thermal printer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ESP32 BLE Printer Server

This project is a good exercise in understanding the Bluetooth protocol and how easy it is to implement a fake/mimic device in code to ease in reverse engineering, or adapting products outside their indented purpose.

This code advertises a service UUID our target apps are looking for, and then creates a service with write and notify characteristics (think of these as endpoints you can write/read/push data to/from), then we simply dump what the Android printer apps send us.

This code has some protocol-specific packet decoding, but that can simply be removed and replaced.

About

ESP32 BLE printer server for reverse engineering the protocol on my cheapo thermal printer


Languages

Language:C++ 100.0%