PackedCrack / ubiquitous-chainsaw

GNU General Public License v3.0
0 stars 0 forks source link

Pull request branch Initial nimble -> main #6

Closed prevLanky closed 4 months ago

prevLanky commented 4 months ago

The device name for the server is set to = "Chainsaw-server". The bluetooth address will be randomized every server restart.

The relevant code is: File: CGatt.cpp Func: tmp_service_callback Lines: 61 - 171

Have added read functionality for the following service: (0x2d, 0x71, 0xa2, 0x59, 0xb4, 0x58, 0xc8, 0x12, 0x99, 0x99, 0x43, 0x95, 0x12, 0x2f, 0x46, 0x59);

The characteristic UUID that can be used to read or write to: (0x00, 0x00, 0x00, 0x00, 0x11, 0x11, 0x11, 0x11, 0x22, 0x22, 0x22, 0x22, 0x33, 0x33, 0x33, 0x33);

Description of the functionality: If you WRITE to the characteristic, the value will be saved in a uint8_t vector. If you then READ the characteristic afterwards. You will read the value from the vector that you previously wrote to. You can write as many times as you want. Each time, the vector will be cleared and updated with the new value.