AF REGISTER

=Description= This command is used to configure one or more Endpoints on the module and controls how the module functions on the network. Multiple endpoints may be registered with the Application Framework by calling AF_REGISTER multiple times. This is used if the device needs to support multiple Application Profiles.

=Library Function= moduleResult_t afRegisterApplication(struct applicationConfiguration ac) in af.c moduleResult_t afRegisterGenericApplication in af.c

We normally use afRegisterGenericApplication in the examples. =Usage=

Fields:
 * EndPoint: The Endpoint which we are registering with this command.
 * ApplicationProfileId: The Application Profile of our device.
 * DeviceId the DeviceId that we want to be reported in the Zigbee stack.
 * DeviceVersion: The Device Version that we want to be reported in the Zigbee stack.
 * LatencyReq: The latency requirement - leave as 0x00
 * 0x00: No Latency
 * 0x01: Fast Beacons
 * 0x02: Slow Beacons
 * NumberOfInputClusters: The number of input clusters (used in binding)
 * InputClusterList: The list of input clusters, 2B each
 * NumberOfOutputClusters: The number of output clusters (used in binding)
 * OutputClusterList: The list of output clusters, 2B each

Fields:
 * Status: 0 if success, else an error code.