The following excerpt from TI's document!
Each device was a node in the Zigbee. Each node have a long and short address, the short address of the node is used by and nodes to send it data. Each node has 241 endpoint (0 reserved, 1-240 application assigned).
Each endpointis separately addressable;when a device sends data it must specify the destination node's short address and t Heendpoint that would receive that data. An application must register one or more endpoints to send and receive the data in a Zigbee network.
Each endpoint must has a Zigbee simple descriptor. This descriptor describes the endpoint to the rest of the Zigbee network.
typedef struct {byte EndPoint; uint16 appprofid; uint16 appdeviceid; byte appdevver:4; byte reserved:4;//Af_v1_support Uses for appflags:4. BYTE Appnuminclusters; cid_t *pappinclusterlist; BYTE Appnumoutclusters; cid_t *pappoutclusterlist; } simpledescriptionformat_t; Endpoint–the EndPoint number 1-240 (0 is reserved). This is the subaddress of the node, and was used to receive data. The endpoint can be used to accept data appprofid–this field identifies the profile ID supported on this endpoint. The IDs shall is obtained from the ZigBee Alliance. Appdeviceid–this Field identifies the Device ID supported on this endpoint. The IDs shall is obtained from the ZigBee Alliance.
Appdevver–identifies the version of the relevant Device Description that this device implements on this endpoint.
0x00 is Version 1.0. Reserved–not used. Appnuminclusters–this indicates the number of input clusters supported by this endpoint. Pappinclusterlist–pointer to the input cluster ID list. Appnumoutclusters–8 bit field. This indicates the number of output clusters supported by this endpoint. Pappoutclusterlist–pointer to the output cluster ID list.
In the actual application, many parameters do not need to be configured by ourselves, but the system default. But remember the important one: byte EndPoint; This parameter must be unique for devices that need to be bound (such as a button and a light). Only with the same endpoint can the device speak (the light device and the key device communicate normally).
Endpoint Understanding-1