Find number of endpoints in Driver

Hi folks,

Looking at writing first driver, and i'm curious in the case of a zigbee device with multiple endpoints is there a way in the installed/configure method i could check the number of endpoints to set the number of buttons?

Cheers,

Glenn.

Because my version has 3, but the device comes in 1 /2 /3 configurations so was thinking that I could make a driver that works for all of em. :wink:

Don't physically have all three though, so wouldn't be able to determine the differences. Was hoping there was a programmatic way of discovering the endpoints.