How to get the device when callback is called?

Ah I see, well thank you for the info