zigbee-herdsman 6.0.2 → 6.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (252) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/package.json +12 -3
  3. package/.github/ISSUE_TEMPLATE/config.yml +0 -5
  4. package/.github/dependabot.yml +0 -22
  5. package/.github/workflows/ci.yml +0 -69
  6. package/.github/workflows/release-please.yml +0 -18
  7. package/.github/workflows/stale.yml +0 -20
  8. package/.github/workflows/typedoc.yaml +0 -47
  9. package/.release-please-manifest.json +0 -3
  10. package/.vscode/extensions.json +0 -3
  11. package/.vscode/settings.json +0 -11
  12. package/biome.json +0 -98
  13. package/examples/join-and-log.js +0 -24
  14. package/release-please-config.json +0 -9
  15. package/src/adapter/adapter.ts +0 -189
  16. package/src/adapter/adapterDiscovery.ts +0 -666
  17. package/src/adapter/const.ts +0 -12
  18. package/src/adapter/deconz/adapter/deconzAdapter.ts +0 -877
  19. package/src/adapter/deconz/driver/constants.ts +0 -246
  20. package/src/adapter/deconz/driver/driver.ts +0 -1540
  21. package/src/adapter/deconz/driver/frame.ts +0 -11
  22. package/src/adapter/deconz/driver/frameParser.ts +0 -753
  23. package/src/adapter/deconz/driver/parser.ts +0 -45
  24. package/src/adapter/deconz/driver/writer.ts +0 -22
  25. package/src/adapter/deconz/types.d.ts +0 -13
  26. package/src/adapter/ember/adapter/emberAdapter.ts +0 -2265
  27. package/src/adapter/ember/adapter/endpoints.ts +0 -86
  28. package/src/adapter/ember/adapter/oneWaitress.ts +0 -324
  29. package/src/adapter/ember/adapter/tokensManager.ts +0 -782
  30. package/src/adapter/ember/consts.ts +0 -178
  31. package/src/adapter/ember/enums.ts +0 -1746
  32. package/src/adapter/ember/ezsp/buffalo.ts +0 -1392
  33. package/src/adapter/ember/ezsp/consts.ts +0 -148
  34. package/src/adapter/ember/ezsp/enums.ts +0 -1114
  35. package/src/adapter/ember/ezsp/ezsp.ts +0 -9061
  36. package/src/adapter/ember/ezspError.ts +0 -10
  37. package/src/adapter/ember/types.ts +0 -866
  38. package/src/adapter/ember/uart/ash.ts +0 -1960
  39. package/src/adapter/ember/uart/consts.ts +0 -109
  40. package/src/adapter/ember/uart/enums.ts +0 -192
  41. package/src/adapter/ember/uart/parser.ts +0 -48
  42. package/src/adapter/ember/uart/queues.ts +0 -247
  43. package/src/adapter/ember/uart/writer.ts +0 -53
  44. package/src/adapter/ember/utils/initters.ts +0 -58
  45. package/src/adapter/ember/utils/math.ts +0 -73
  46. package/src/adapter/events.ts +0 -21
  47. package/src/adapter/ezsp/adapter/backup.ts +0 -109
  48. package/src/adapter/ezsp/adapter/ezspAdapter.ts +0 -614
  49. package/src/adapter/ezsp/driver/commands.ts +0 -2497
  50. package/src/adapter/ezsp/driver/consts.ts +0 -11
  51. package/src/adapter/ezsp/driver/driver.ts +0 -1002
  52. package/src/adapter/ezsp/driver/ezsp.ts +0 -802
  53. package/src/adapter/ezsp/driver/frame.ts +0 -101
  54. package/src/adapter/ezsp/driver/index.ts +0 -4
  55. package/src/adapter/ezsp/driver/multicast.ts +0 -78
  56. package/src/adapter/ezsp/driver/parser.ts +0 -81
  57. package/src/adapter/ezsp/driver/types/basic.ts +0 -201
  58. package/src/adapter/ezsp/driver/types/index.ts +0 -239
  59. package/src/adapter/ezsp/driver/types/named.ts +0 -2330
  60. package/src/adapter/ezsp/driver/types/struct.ts +0 -844
  61. package/src/adapter/ezsp/driver/uart.ts +0 -460
  62. package/src/adapter/ezsp/driver/utils/crc16ccitt.ts +0 -44
  63. package/src/adapter/ezsp/driver/utils/index.ts +0 -32
  64. package/src/adapter/ezsp/driver/writer.ts +0 -64
  65. package/src/adapter/index.ts +0 -3
  66. package/src/adapter/serialPort.ts +0 -58
  67. package/src/adapter/socketPortUtils.ts +0 -16
  68. package/src/adapter/tstype.ts +0 -78
  69. package/src/adapter/z-stack/adapter/adapter-backup.ts +0 -519
  70. package/src/adapter/z-stack/adapter/adapter-nv-memory.ts +0 -457
  71. package/src/adapter/z-stack/adapter/endpoints.ts +0 -57
  72. package/src/adapter/z-stack/adapter/manager.ts +0 -543
  73. package/src/adapter/z-stack/adapter/tstype.ts +0 -6
  74. package/src/adapter/z-stack/adapter/zStackAdapter.ts +0 -1190
  75. package/src/adapter/z-stack/constants/af.ts +0 -27
  76. package/src/adapter/z-stack/constants/common.ts +0 -285
  77. package/src/adapter/z-stack/constants/dbg.ts +0 -23
  78. package/src/adapter/z-stack/constants/index.ts +0 -11
  79. package/src/adapter/z-stack/constants/mac.ts +0 -128
  80. package/src/adapter/z-stack/constants/sapi.ts +0 -25
  81. package/src/adapter/z-stack/constants/sys.ts +0 -72
  82. package/src/adapter/z-stack/constants/util.ts +0 -82
  83. package/src/adapter/z-stack/constants/utils.ts +0 -14
  84. package/src/adapter/z-stack/constants/zdo.ts +0 -103
  85. package/src/adapter/z-stack/models/startup-options.ts +0 -13
  86. package/src/adapter/z-stack/structs/entries/address-manager-entry.ts +0 -44
  87. package/src/adapter/z-stack/structs/entries/address-manager-table.ts +0 -19
  88. package/src/adapter/z-stack/structs/entries/aps-link-key-data-entry.ts +0 -12
  89. package/src/adapter/z-stack/structs/entries/aps-link-key-data-table.ts +0 -21
  90. package/src/adapter/z-stack/structs/entries/aps-tc-link-key-entry.ts +0 -19
  91. package/src/adapter/z-stack/structs/entries/aps-tc-link-key-table.ts +0 -21
  92. package/src/adapter/z-stack/structs/entries/channel-list.ts +0 -8
  93. package/src/adapter/z-stack/structs/entries/has-configured.ts +0 -16
  94. package/src/adapter/z-stack/structs/entries/index.ts +0 -16
  95. package/src/adapter/z-stack/structs/entries/nib.ts +0 -66
  96. package/src/adapter/z-stack/structs/entries/nwk-key-descriptor.ts +0 -15
  97. package/src/adapter/z-stack/structs/entries/nwk-key.ts +0 -13
  98. package/src/adapter/z-stack/structs/entries/nwk-pan-id.ts +0 -8
  99. package/src/adapter/z-stack/structs/entries/nwk-sec-material-descriptor-entry.ts +0 -20
  100. package/src/adapter/z-stack/structs/entries/nwk-sec-material-descriptor-table.ts +0 -19
  101. package/src/adapter/z-stack/structs/entries/security-manager-entry.ts +0 -33
  102. package/src/adapter/z-stack/structs/entries/security-manager-table.ts +0 -22
  103. package/src/adapter/z-stack/structs/index.ts +0 -4
  104. package/src/adapter/z-stack/structs/serializable-memory-object.ts +0 -14
  105. package/src/adapter/z-stack/structs/struct.ts +0 -367
  106. package/src/adapter/z-stack/structs/table.ts +0 -198
  107. package/src/adapter/z-stack/unpi/constants.ts +0 -33
  108. package/src/adapter/z-stack/unpi/frame.ts +0 -62
  109. package/src/adapter/z-stack/unpi/index.ts +0 -4
  110. package/src/adapter/z-stack/unpi/parser.ts +0 -56
  111. package/src/adapter/z-stack/unpi/writer.ts +0 -21
  112. package/src/adapter/z-stack/utils/channel-list.ts +0 -40
  113. package/src/adapter/z-stack/utils/index.ts +0 -2
  114. package/src/adapter/z-stack/utils/network-options.ts +0 -26
  115. package/src/adapter/z-stack/znp/buffaloZnp.ts +0 -175
  116. package/src/adapter/z-stack/znp/definition.ts +0 -2713
  117. package/src/adapter/z-stack/znp/index.ts +0 -2
  118. package/src/adapter/z-stack/znp/parameterType.ts +0 -22
  119. package/src/adapter/z-stack/znp/tstype.ts +0 -44
  120. package/src/adapter/z-stack/znp/utils.ts +0 -10
  121. package/src/adapter/z-stack/znp/znp.ts +0 -342
  122. package/src/adapter/z-stack/znp/zpiObject.ts +0 -148
  123. package/src/adapter/zboss/adapter/zbossAdapter.ts +0 -526
  124. package/src/adapter/zboss/commands.ts +0 -1184
  125. package/src/adapter/zboss/consts.ts +0 -9
  126. package/src/adapter/zboss/driver.ts +0 -422
  127. package/src/adapter/zboss/enums.ts +0 -360
  128. package/src/adapter/zboss/frame.ts +0 -227
  129. package/src/adapter/zboss/reader.ts +0 -65
  130. package/src/adapter/zboss/types.ts +0 -0
  131. package/src/adapter/zboss/uart.ts +0 -428
  132. package/src/adapter/zboss/utils.ts +0 -58
  133. package/src/adapter/zboss/writer.ts +0 -49
  134. package/src/adapter/zigate/adapter/patchZdoBuffaloBE.ts +0 -27
  135. package/src/adapter/zigate/adapter/zigateAdapter.ts +0 -618
  136. package/src/adapter/zigate/driver/LICENSE +0 -17
  137. package/src/adapter/zigate/driver/buffaloZiGate.ts +0 -212
  138. package/src/adapter/zigate/driver/commandType.ts +0 -418
  139. package/src/adapter/zigate/driver/constants.ts +0 -150
  140. package/src/adapter/zigate/driver/frame.ts +0 -197
  141. package/src/adapter/zigate/driver/messageType.ts +0 -287
  142. package/src/adapter/zigate/driver/parameterType.ts +0 -32
  143. package/src/adapter/zigate/driver/ziGateObject.ts +0 -146
  144. package/src/adapter/zigate/driver/zigate.ts +0 -423
  145. package/src/adapter/zoh/adapter/utils.ts +0 -27
  146. package/src/adapter/zoh/adapter/zohAdapter.ts +0 -838
  147. package/src/buffalo/buffalo.ts +0 -342
  148. package/src/buffalo/index.ts +0 -1
  149. package/src/controller/controller.ts +0 -1022
  150. package/src/controller/database.ts +0 -124
  151. package/src/controller/events.ts +0 -52
  152. package/src/controller/greenPower.ts +0 -603
  153. package/src/controller/helpers/index.ts +0 -1
  154. package/src/controller/helpers/installCodes.ts +0 -107
  155. package/src/controller/helpers/request.ts +0 -96
  156. package/src/controller/helpers/requestQueue.ts +0 -125
  157. package/src/controller/helpers/zclFrameConverter.ts +0 -47
  158. package/src/controller/helpers/zclTransactionSequenceNumber.ts +0 -19
  159. package/src/controller/index.ts +0 -6
  160. package/src/controller/model/device.ts +0 -1249
  161. package/src/controller/model/endpoint.ts +0 -1105
  162. package/src/controller/model/entity.ts +0 -23
  163. package/src/controller/model/group.ts +0 -424
  164. package/src/controller/model/index.ts +0 -5
  165. package/src/controller/model/zigbeeEntity.ts +0 -30
  166. package/src/controller/touchlink.ts +0 -189
  167. package/src/controller/tstype.ts +0 -274
  168. package/src/index.ts +0 -12
  169. package/src/models/backup-storage-legacy.ts +0 -48
  170. package/src/models/backup-storage-unified.ts +0 -47
  171. package/src/models/backup.ts +0 -37
  172. package/src/models/index.ts +0 -5
  173. package/src/models/network-options.ts +0 -11
  174. package/src/utils/backup.ts +0 -152
  175. package/src/utils/index.ts +0 -5
  176. package/src/utils/logger.ts +0 -20
  177. package/src/utils/patchBigIntSerialization.ts +0 -8
  178. package/src/utils/queue.ts +0 -76
  179. package/src/utils/types.d.ts +0 -3
  180. package/src/utils/utils.ts +0 -19
  181. package/src/utils/wait.ts +0 -5
  182. package/src/utils/waitress.ts +0 -96
  183. package/src/zspec/consts.ts +0 -84
  184. package/src/zspec/enums.ts +0 -22
  185. package/src/zspec/index.ts +0 -3
  186. package/src/zspec/tstypes.ts +0 -18
  187. package/src/zspec/utils.ts +0 -247
  188. package/src/zspec/zcl/buffaloZcl.ts +0 -1220
  189. package/src/zspec/zcl/definition/cluster.ts +0 -5915
  190. package/src/zspec/zcl/definition/clusters-typegen.ts +0 -588
  191. package/src/zspec/zcl/definition/clusters-types.ts +0 -7331
  192. package/src/zspec/zcl/definition/consts.ts +0 -24
  193. package/src/zspec/zcl/definition/enums.ts +0 -203
  194. package/src/zspec/zcl/definition/foundation.ts +0 -329
  195. package/src/zspec/zcl/definition/manufacturerCode.ts +0 -729
  196. package/src/zspec/zcl/definition/status.ts +0 -69
  197. package/src/zspec/zcl/definition/tstype.ts +0 -377
  198. package/src/zspec/zcl/index.ts +0 -11
  199. package/src/zspec/zcl/utils.ts +0 -321
  200. package/src/zspec/zcl/zclFrame.ts +0 -356
  201. package/src/zspec/zcl/zclHeader.ts +0 -102
  202. package/src/zspec/zcl/zclStatusError.ts +0 -10
  203. package/src/zspec/zdo/buffaloZdo.ts +0 -2336
  204. package/src/zspec/zdo/definition/clusters.ts +0 -722
  205. package/src/zspec/zdo/definition/consts.ts +0 -16
  206. package/src/zspec/zdo/definition/enums.ts +0 -99
  207. package/src/zspec/zdo/definition/status.ts +0 -105
  208. package/src/zspec/zdo/definition/tstypes.ts +0 -1062
  209. package/src/zspec/zdo/index.ts +0 -7
  210. package/src/zspec/zdo/utils.ts +0 -76
  211. package/src/zspec/zdo/zdoStatusError.ts +0 -10
  212. package/test/adapter/adapter.test.ts +0 -1062
  213. package/test/adapter/ember/ash.test.ts +0 -337
  214. package/test/adapter/ember/consts.ts +0 -131
  215. package/test/adapter/ember/emberAdapter.test.ts +0 -3449
  216. package/test/adapter/ember/ezsp.test.ts +0 -385
  217. package/test/adapter/ember/ezspBuffalo.test.ts +0 -93
  218. package/test/adapter/ember/ezspError.test.ts +0 -12
  219. package/test/adapter/ember/math.test.ts +0 -206
  220. package/test/adapter/ezsp/frame.test.ts +0 -30
  221. package/test/adapter/ezsp/uart.test.ts +0 -181
  222. package/test/adapter/z-stack/adapter.test.ts +0 -3984
  223. package/test/adapter/z-stack/constants.test.ts +0 -33
  224. package/test/adapter/z-stack/structs.test.ts +0 -115
  225. package/test/adapter/z-stack/unpi.test.ts +0 -213
  226. package/test/adapter/z-stack/znp.test.ts +0 -1284
  227. package/test/adapter/zboss/fixZdoResponse.test.ts +0 -179
  228. package/test/adapter/zigate/patchZdoBuffaloBE.test.ts +0 -81
  229. package/test/adapter/zigate/zdo.test.ts +0 -187
  230. package/test/adapter/zoh/utils.test.ts +0 -36
  231. package/test/adapter/zoh/zohAdapter.test.ts +0 -1307
  232. package/test/benchOptions.ts +0 -14
  233. package/test/buffalo.test.ts +0 -431
  234. package/test/controller.bench.ts +0 -214
  235. package/test/controller.test.ts +0 -8702
  236. package/test/greenpower.test.ts +0 -1408
  237. package/test/mockAdapters.ts +0 -65
  238. package/test/mockDevices.ts +0 -598
  239. package/test/requests.bench.ts +0 -229
  240. package/test/testUtils.ts +0 -20
  241. package/test/tsconfig.json +0 -9
  242. package/test/utils/math.ts +0 -19
  243. package/test/utils.test.ts +0 -279
  244. package/test/vitest.config.mts +0 -26
  245. package/test/zcl.test.ts +0 -2831
  246. package/test/zspec/utils.test.ts +0 -68
  247. package/test/zspec/zcl/buffalo.test.ts +0 -1374
  248. package/test/zspec/zcl/frame.test.ts +0 -960
  249. package/test/zspec/zcl/utils.test.ts +0 -273
  250. package/test/zspec/zdo/buffalo.test.ts +0 -1850
  251. package/test/zspec/zdo/utils.test.ts +0 -241
  252. package/tsconfig.json +0 -24
@@ -1,16 +0,0 @@
1
- /** The endpoint where the ZigBee Device Object (ZDO) resides. */
2
- export const ZDO_ENDPOINT = 0;
3
-
4
- /** The profile ID used by the ZigBee Device Object (ZDO). */
5
- export const ZDO_PROFILE_ID = 0x0000;
6
-
7
- /** ZDO messages start with a sequence number. */
8
- export const ZDO_MESSAGE_OVERHEAD = 1;
9
-
10
- export const MULTICAST_BINDING = 0x01;
11
- export const UNICAST_BINDING = 0x03;
12
-
13
- /** 64-bit challenge value used by CHALLENGE_REQUEST/CHALLENGE_RESPONSE clusters */
14
- export const CHALLENGE_VALUE_SIZE = 8;
15
- /** The 256-bit Curve 25519 public point. */
16
- export const CURVE_PUBLIC_POINT_SIZE = 32;
@@ -1,99 +0,0 @@
1
- export enum LeaveRequestFlags {
2
- /** Leave and rejoin. */
3
- AND_REJOIN = 0x80,
4
- /** DEPRECATED */
5
- // AND_REMOVE_CHILDREN = 0x40,
6
- /** Leave. */
7
- WITHOUT_REJOIN = 0x00,
8
- }
9
-
10
- export enum JoiningPolicy {
11
- /** Any device is allowed to join. */
12
- ALL_JOIN = 0x00,
13
- /** Only devices on the mibJoiningIeeeList are allowed to join. */
14
- IEEELIST_JOIN = 0x01,
15
- /** No device is allowed to join. */
16
- NO_JOIN = 0x02,
17
- }
18
-
19
- //-------------------------------------------------------------------------------------------------
20
- //-- TLVs
21
-
22
- export enum SelectedKeyNegotiationProtocol {
23
- /** (Zigbee 3.0 Mechanism) */
24
- RESERVED = 0,
25
- /** SPEKE using Curve25519 with Hash AES-MMO-128 */
26
- SPEKE_CURVE25519_AESMMO128 = 1,
27
- /** SPEKE using Curve25519 with Hash SHA-256 */
28
- SPEKE_CURVE25519_SHA256 = 2,
29
- // 3 – 255 Reserved
30
- }
31
-
32
- export enum SelectedPreSharedSecret {
33
- /** Symmetric Authentication Token */
34
- SYMMETRIC_AUTHENTICATION_TOKEN = 0,
35
- /** Pre-configured link-ley derived from installation code */
36
- PRECONFIGURED_LINKKEY_DERIVED_FROM_INSTALL_CODE = 1,
37
- /** Variable-length pass code (for PAKE protocols) */
38
- PAKE_VARIABLE_LENGTH_PASS_CODE = 2,
39
- /** Basic Authorization Key */
40
- BASIC_AUTHORIZATION_KEY = 3,
41
- /** Administrative Authorization Key */
42
- ADMIN_AUTHORIZATION_KEY = 4,
43
- // 5 – 254 Reserved,
44
- /** Anonymous Well-Known Secret */
45
- ANONYMOUS_WELLKNOWN_SECRET = 255,
46
- }
47
-
48
- export enum InitialJoinMethod {
49
- ANONYMOUS = 0x00,
50
- INSTALL_CODE_KEY = 0x01,
51
- WELLKNOWN_PASSPHRASE = 0x02,
52
- INSTALL_CODE_PASSPHRASE = 0x03,
53
- }
54
-
55
- export enum ActiveLinkKeyType {
56
- NOT_UPDATED = 0x00,
57
- KEY_REQUEST_METHOD = 0x01,
58
- UNAUTHENTICATED_KEY_NEGOTIATION = 0x02,
59
- AUTHENTICATED_KEY_NEGOTIATION = 0x03,
60
- APPLICATION_DEFINED_CERTIFICATE_BASED_MUTUAL_AUTHENTICATION = 0x04,
61
- }
62
-
63
- export enum GlobalTLV {
64
- /** Minimum Length 2-byte */
65
- MANUFACTURER_SPECIFIC = 64,
66
- /** Minimum Length 2-byte */
67
- SUPPORTED_KEY_NEGOTIATION_METHODS = 65,
68
- /** Minimum Length 4-byte XXX: spec min doesn't make sense, this is one pan id => 2-byte??? */
69
- PAN_ID_CONFLICT_REPORT = 66,
70
- /** Minimum Length 2-byte */
71
- NEXT_PAN_ID_CHANGE = 67,
72
- /** Minimum Length 4-byte */
73
- NEXT_CHANNEL_CHANGE = 68,
74
- /** Minimum Length 16-byte */
75
- SYMMETRIC_PASSPHRASE = 69,
76
- /** Minimum Length 2-byte */
77
- ROUTER_INFORMATION = 70,
78
- /** Minimum Length 2-byte */
79
- FRAGMENTATION_PARAMETERS = 71,
80
- JOINER_ENCAPSULATION = 72,
81
- BEACON_APPENDIX_ENCAPSULATION = 73,
82
- // Reserved = 74,
83
- /** Minimum Length 2-byte XXX: min not in spec??? */
84
- CONFIGURATION_PARAMETERS = 75,
85
- /** Refer to the Zigbee Direct specification for more details. */
86
- DEVICE_CAPABILITY_EXTENSION = 76,
87
- // Reserved = 77-255
88
- }
89
-
90
- export enum RoutingTableStatus {
91
- ACTIVE = 0x0,
92
- DISCOVERY_UNDERWAY = 0x1,
93
- DISCOVERY_FAILED = 0x2,
94
- INACTIVE = 0x3,
95
- VALIDATION_UNDERWAY = 0x4,
96
- RESERVED1 = 0x5,
97
- RESERVED2 = 0x6,
98
- RESERVED3 = 0x7,
99
- }
@@ -1,105 +0,0 @@
1
- /**
2
- * ZDO response status.
3
- *
4
- * Most responses to ZDO commands contain a status byte.
5
- * The meaning of this byte is defined by the ZigBee Device Profile.
6
- *
7
- * Zigbee Document – 05-3474-23 - Table 2-129. ZDP Enumerations Description
8
- *
9
- * uint8_t
10
- */
11
- export enum Status {
12
- /** The requested operation or transmission was completed successfully. */
13
- SUCCESS = 0x00,
14
- // 0x01 – 0x7F are reserved
15
- /** The supplied request type was invalid. */
16
- INV_REQUESTTYPE = 0x80,
17
- /** The requested device did not exist on a device following a child descriptor request to a parent. */
18
- DEVICE_NOT_FOUND = 0x81,
19
- /** The supplied endpoint was equal to 0x00 or 0xff. */
20
- INVALID_EP = 0x82,
21
- /** The requested endpoint is not described by a simple descriptor. */
22
- NOT_ACTIVE = 0x83,
23
- /** The requested optional feature is not supported on the target device. */
24
- NOT_SUPPORTED = 0x84,
25
- /** A timeout has occurred with the requested operation. */
26
- TIMEOUT = 0x85,
27
- /** failure to match any suitable clusters. */
28
- NO_MATCH = 0x86,
29
- // 0x87 is reserved = 0x87,
30
- /** The unbind request was unsuccessful due to the coordinator or source device not having an entry in its binding table to unbind. */
31
- NO_ENTRY = 0x88,
32
- /** A child descriptor was not available following a discovery request to a parent. */
33
- NO_DESCRIPTOR = 0x89,
34
- /** The device does not have storage space to support the requested operation. */
35
- INSUFFICIENT_SPACE = 0x8a,
36
- /** The device is not in the proper state to support the requested operation. */
37
- NOT_PERMITTED = 0x8b,
38
- /** The device does not have table space to support the operation. */
39
- TABLE_FULL = 0x8c,
40
- /** The device has rejected the command due to security restrictions. */
41
- NOT_AUTHORIZED = 0x8d,
42
- /** The device does not have binding table space to support the operation. */
43
- DEVICE_BINDING_TABLE_FULL = 0x8e,
44
- /** The index in the received command is out of bounds. */
45
- INVALID_INDEX = 0x8f,
46
- /** The response was too large to fit in a single unfragmented message. */
47
- FRAME_TOO_LARGE = 0x90,
48
- /** The requested Key Negotiation Method was not accepted. */
49
- BAD_KEY_NEGOTIATION_METHOD = 0x91,
50
- /** The request encountered a temporary failure but a retry at a later time should be attempted and may succeed. */
51
- TEMPORARY_FAILURE = 0x92,
52
- // 0x92 – 0xff are reserved
53
-
54
- //-- NWK layer statuses included because some like TLV-related are used as ZDO status
55
-
56
- /** An invalid or out-of-range parameter has been passed to a primitive from the next higher layer. */
57
- NWK_LAYER_INVALID_PARAMETER = 0xc1,
58
- /** The next higher layer has issued a request that is invalid or cannot be executed given the current state of the NWK layer. */
59
- NWK_LAYER_INV_REQUESTTYPE = 0xc2,
60
- /** An NLME-JOIN.request has been disallowed. */
61
- NWK_LAYER_NOT_PERMITTED = 0xc3,
62
- /** An NLME-NETWORK-FORMATION.request has failed to start a network. */
63
- NWK_LAYER_STARTUP_FAILURE = 0xc4,
64
- /**
65
- * A device with the address supplied to the NLME-ADDNEIGHBOR. request is already present in the neighbor table of the device
66
- * on which the NLME-ADD-NEIGHBOR.request was issued.
67
- */
68
- NWK_LAYER_ALREADY_PRESENT = 0xc5,
69
- /** Used to indicate that an NLME-SYNC.request has failed at the MAC layer. */
70
- NWK_LAYER_SYNC_FAILURE = 0xc6,
71
- /** An NLME-JOIN-DIRECTLY.request has failed because there is no more room in the neighbor table. */
72
- NWK_LAYER_NEIGHBOR_TABLE_FULL = 0xc7,
73
- /** An NLME-LEAVE.request has failed because the device addressed in the parameter list is not in the neighbor table of the issuing device. */
74
- NWK_LAYER_UNKNOWN_DEVICE = 0xc8,
75
- /** An NLME-GET.request or NLME-SET.request has been issued with an unknown attribute identifier. */
76
- NWK_LAYER_UNSUPPORTED_ATTRIBUTE = 0xc9,
77
- /** An NLME-JOIN.request has been issued in an environment where no networks are detectable. */
78
- NWK_LAYER_NO_NETWORKS = 0xca,
79
- // Reserved 0xcb Reserved for future use.
80
- /** Security processing has been attempted on an outgoing frame, and has failed because the frame counter has reached its maximum value. */
81
- NWK_LAYER_MAX_FRM_COUNTER = 0xcc,
82
- /** Security processing has been attempted on an outgoing frame, and has failed because no key was available with which to process it. */
83
- NWK_LAYER_NO_KEY = 0xcd,
84
- /** Security processing has been attempted on an outgoing frame, and has failed because the security engine produced erroneous output. */
85
- NWK_LAYER_BAD_CCM_OUTPUT = 0xce,
86
- /** Reserved for future use. */
87
- NWK_LAYER_RESERVED = 0xcf,
88
- /** An attempt to discover a route has failed due to a reason other than a lack of routing capacity. */
89
- NWK_LAYER_ROUTE_DISCOVERY_FAILED = 0xd0,
90
- /**
91
- * An NLDE-DATA.request has failed due to a routing failure on the sending device or an NLME-ROUTE-DISCOVERY.request has failed due to
92
- * the cause cited in the accompanying NetworkStatusCode.
93
- */
94
- NWK_LAYER_ROUTE_ERROR = 0xd1,
95
- /** An attempt to send a broadcast frame has failed because there is no room in the BTT. */
96
- NWK_LAYER_BT_TABLE_FULL = 0xd2,
97
- /** An NLDE-DATA.request has failed due to insufficient buffering available. */
98
- NWK_LAYER_FRAME_NOT_BUFFERED = 0xd3,
99
- /** An attempt was made to use a MAC Interface with a state that is currently set to FALSE (disabled) or that is unknown to the stack.. */
100
- NWK_LAYER_INVALID_INTERFACE = 0xd5,
101
- /** A required TLV for processing the request was not present. */
102
- NWK_LAYER_MISSING_TLV = 0xd6,
103
- /** A TLV was malformed or missing relevant information. */
104
- NWK_LAYER_INVALID_TLV = 0xd7,
105
- }