Closed BMR11 closed 5 months ago
@marcosinigaglia ,
This is a syntax usage error that is replacing calls from peripheral.uuidAsString
to peripheral.uuidAsString()
.
In our use case, we are reading multiple ble sensors and the app is always getting the same read values due to this issue,
Let me know if you need to have more details on this.
Hi @BMR11 thanks!
In iOS code, We are building a unique key for a given
peripheral / characteristic / descriptor
, with usingHelper.key
method.Here we are using
peripheral.uuidAsString
to build the final key but as this is a function and not a value, this will always return instead of the actual uuid string. and so, if we are reading BLE characteristic values for different peripherals, it will always return the same key. And eventually app will be updated with the same readcallbacks every time instead of reporting readcallbacks as per peripheral. To get the correct string we should be callingperipheral.uuidAsString()
and so we get a unique key built for each use-caseUnderstanding by printing values:
We get logs