MI32: use always 128-bit UUID for characteristics as peripheral (#24197)

This commit is contained in:
Christian Baars 2025-12-08 11:11:29 +01:00 committed by GitHub
parent d22d493edb
commit 66dc5c926d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -885,7 +885,7 @@ extern "C" {
bool MI32setBerryCtxChr(const char *Chr){
if(MI32.conCtx != nullptr){
MI32.conCtx->charUUID = NimBLEUUID(Chr);
MI32.conCtx->charUUID = NimBLEUUID(Chr).to128();
AddLog(LOG_LEVEL_DEBUG,PSTR("M32: CHR: %s"),MI32.conCtx->charUUID.toString().c_str());
uint16_t _uuid = *reinterpret_cast<const uint16_t*>(MI32.conCtx->charUUID.getValue() + 12); //if not "notify op" -> present requested characteristic as return UUID
MI32.conCtx->returnCharUUID = _uuid;