Skip to content

Commit 042ed05

Browse files
nordicjmcarlescufi
authored andcommitted
mgmt: mcumgr: Add access denied error code
Adds an access denied error code that can be used to signal to the mcumgr client that the requested access to a specific resource or command/functionality has been denied. Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
1 parent 6f75c99 commit 042ed05

File tree

1 file changed

+1
-0
lines changed
  • subsys/mgmt/mcumgr/lib/mgmt/include/mgmt

1 file changed

+1
-0
lines changed

subsys/mgmt/mcumgr/lib/mgmt/include/mgmt/mgmt.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ extern "C" {
5252
#define MGMT_ERR_ENOTSUP 8 /* Command not supported. */
5353
#define MGMT_ERR_ECORRUPT 9 /* Corrupt */
5454
#define MGMT_ERR_EBUSY 10 /* Command blocked by processing of other command */
55+
#define MGMT_ERR_EACCESSDENIED 11 /* Access to specific function or resource denied */
5556
#define MGMT_ERR_EPERUSER 256
5657

5758
#define MGMT_HDR_SIZE 8

0 commit comments

Comments
 (0)