I have a dev question about using the nRF Blinky app as an example for listing and showing services for multiple BLE devices without having to individually select each one.
Currently the app ensures that the device is selected before you can view e.g. the button state.
I was wondering if it is possible to have the button state shown on the list of devices page (I have looked at the other related forum questions but not sure if enough detail has been provided or I have misunderstood what needs to be done)?
What I unsuccessfully attempted to do was to implement the BlinkManagerCallback on the ScannerViewModel and pass the model and activity to the DevicesAdapter. After connecting to a specific device it appears that all devices have the same "observer", i.e. if I press Button 1 on one device the other device (I only have two dev kit boards) updates with the same state. The other device appears to be blocked from receiving its own button service events. So to clarify, on the list of scanned devices page, I added some text that shows "pressed" and "released" just like the BlinkyViewModel does but when I press the Button on the dev board all listed scanned devices update their text whereas it should only be for the device whose button I pressed (I potentially added the code to the wrong place, I would have thought the observer goes in the OnBindViewHolder() in DevicesAdapter?).
Apologies for the long question, I hope that it makes sense.
Any help would be much appreciated.