Closed ckemere closed 1 year ago
It turns out that changing the Local Name is very hard when we're in the advertising mode. Anyway, I couldn't figure out how to do it. But I could figure out how to advertise a manufacturer specific value. So we add the ability to set a 1 byte moduleID
as a BLE attribute, and this value is advertised. This also requires shortening the local name of the module to "S" to fit everything into the 31 byte advertisement array. Added in f0453213c06311ffb1c1436e15d07d95cfd6491e
Right now, when we have multiple modules, they have different UUIDs, but their advertised local name is the same. We should update so that the app can change an ID which gets reflected into the local name. (Or alternatively figure out a way to program them individually.)