ZPS_eAplZdoSetDevicePermission

void ZPS_eAplZdoSetDevicePermission(
        ZPS_teDevicePermissions u8DevicePermissions);

Description

This function can be used on any device to set the permissions for certain requests from other nodes. The possible settings are:

  • Allow all requests from all other nodes (ALL_PERMITED)

  • Do not allow join requests from all other nodes (JOIN_DISALLOWED)

  • Do not allow data requests from all other nodes (DATA_REQUEST_DISALLOWED)

The function is particularly useful in disabling the generation of APS (end-to-end) acknowledgments, using DATA_REQUEST_DISALLOWED.

Parent topic:ZPS_eAplZdoSetDevicePermission

Parameters

u8DevicePermissions: Bitmap of permissions to be set, constructed using the following enumerations:

  • ZPS_DEVICE_PERMISSIONS_ALL_PERMITED

  • ZPS_DEVICE_PERMISSIONS_JOIN_DISALLOWED

  • ZPS_DEVICE_PERMISSIONS_DATA_REQUEST_DISALLOWED

Parent topic:ZPS_eAplZdoSetDevicePermission

Returns

  • ZPS_E_SUCCESS (permissions successfully set)

  • APS return codes, listed and described in Section 11.2.2

  • NWK return codes, listed and described in Section 11.2.3

  • MAC return codes, listed and described in Section 11.2.4

Parent topic:ZPS_eAplZdoSetDevicePermission

Parent topic:Security functions