zigbee-herdsman 3.0.3 → 3.1.0

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 (786) hide show
  1. package/.github/workflows/ci.yml +1 -1
  2. package/.release-please-manifest.json +1 -1
  3. package/CHANGELOG.md +25 -0
  4. package/package.json +12 -31
  5. package/tsconfig.json +3 -1
  6. package/.babelrc.js +0 -3
  7. package/dist/adapter/adapter.d.ts +0 -63
  8. package/dist/adapter/adapter.d.ts.map +0 -1
  9. package/dist/adapter/adapter.js +0 -88
  10. package/dist/adapter/adapter.js.map +0 -1
  11. package/dist/adapter/adapterDiscovery.d.ts +0 -22
  12. package/dist/adapter/adapterDiscovery.d.ts.map +0 -1
  13. package/dist/adapter/adapterDiscovery.js +0 -468
  14. package/dist/adapter/adapterDiscovery.js.map +0 -1
  15. package/dist/adapter/deconz/adapter/deconzAdapter.d.ts +0 -58
  16. package/dist/adapter/deconz/adapter/deconzAdapter.d.ts.map +0 -1
  17. package/dist/adapter/deconz/adapter/deconzAdapter.js +0 -634
  18. package/dist/adapter/deconz/adapter/deconzAdapter.js.map +0 -1
  19. package/dist/adapter/deconz/adapter/index.d.ts +0 -3
  20. package/dist/adapter/deconz/adapter/index.d.ts.map +0 -1
  21. package/dist/adapter/deconz/adapter/index.js +0 -9
  22. package/dist/adapter/deconz/adapter/index.js.map +0 -1
  23. package/dist/adapter/deconz/driver/constants.d.ts +0 -152
  24. package/dist/adapter/deconz/driver/constants.d.ts.map +0 -1
  25. package/dist/adapter/deconz/driver/constants.js +0 -56
  26. package/dist/adapter/deconz/driver/constants.js.map +0 -1
  27. package/dist/adapter/deconz/driver/driver.d.ts +0 -79
  28. package/dist/adapter/deconz/driver/driver.d.ts.map +0 -1
  29. package/dist/adapter/deconz/driver/driver.js +0 -779
  30. package/dist/adapter/deconz/driver/driver.js.map +0 -1
  31. package/dist/adapter/deconz/driver/frame.d.ts +0 -6
  32. package/dist/adapter/deconz/driver/frame.d.ts.map +0 -1
  33. package/dist/adapter/deconz/driver/frame.js +0 -14
  34. package/dist/adapter/deconz/driver/frame.js.map +0 -1
  35. package/dist/adapter/deconz/driver/frameParser.d.ts +0 -5
  36. package/dist/adapter/deconz/driver/frameParser.d.ts.map +0 -1
  37. package/dist/adapter/deconz/driver/frameParser.js +0 -530
  38. package/dist/adapter/deconz/driver/frameParser.js.map +0 -1
  39. package/dist/adapter/deconz/driver/parser.d.ts +0 -10
  40. package/dist/adapter/deconz/driver/parser.d.ts.map +0 -1
  41. package/dist/adapter/deconz/driver/parser.js +0 -39
  42. package/dist/adapter/deconz/driver/parser.js.map +0 -1
  43. package/dist/adapter/deconz/driver/writer.d.ts +0 -8
  44. package/dist/adapter/deconz/driver/writer.d.ts.map +0 -1
  45. package/dist/adapter/deconz/driver/writer.js +0 -53
  46. package/dist/adapter/deconz/driver/writer.js.map +0 -1
  47. package/dist/adapter/ember/adapter/emberAdapter.d.ts +0 -337
  48. package/dist/adapter/ember/adapter/emberAdapter.d.ts.map +0 -1
  49. package/dist/adapter/ember/adapter/emberAdapter.js +0 -1662
  50. package/dist/adapter/ember/adapter/emberAdapter.js.map +0 -1
  51. package/dist/adapter/ember/adapter/endpoints.d.ts +0 -27
  52. package/dist/adapter/ember/adapter/endpoints.d.ts.map +0 -1
  53. package/dist/adapter/ember/adapter/endpoints.js +0 -69
  54. package/dist/adapter/ember/adapter/endpoints.js.map +0 -1
  55. package/dist/adapter/ember/adapter/index.d.ts +0 -3
  56. package/dist/adapter/ember/adapter/index.d.ts.map +0 -1
  57. package/dist/adapter/ember/adapter/index.js +0 -6
  58. package/dist/adapter/ember/adapter/index.js.map +0 -1
  59. package/dist/adapter/ember/adapter/oneWaitress.d.ts +0 -112
  60. package/dist/adapter/ember/adapter/oneWaitress.d.ts.map +0 -1
  61. package/dist/adapter/ember/adapter/oneWaitress.js +0 -231
  62. package/dist/adapter/ember/adapter/oneWaitress.js.map +0 -1
  63. package/dist/adapter/ember/adapter/tokensManager.d.ts +0 -69
  64. package/dist/adapter/ember/adapter/tokensManager.d.ts.map +0 -1
  65. package/dist/adapter/ember/adapter/tokensManager.js +0 -689
  66. package/dist/adapter/ember/adapter/tokensManager.js.map +0 -1
  67. package/dist/adapter/ember/consts.d.ts +0 -105
  68. package/dist/adapter/ember/consts.d.ts.map +0 -1
  69. package/dist/adapter/ember/consts.js +0 -153
  70. package/dist/adapter/ember/consts.js.map +0 -1
  71. package/dist/adapter/ember/enums.d.ts +0 -1915
  72. package/dist/adapter/ember/enums.d.ts.map +0 -1
  73. package/dist/adapter/ember/enums.js +0 -2060
  74. package/dist/adapter/ember/enums.js.map +0 -1
  75. package/dist/adapter/ember/ezsp/buffalo.d.ts +0 -164
  76. package/dist/adapter/ember/ezsp/buffalo.d.ts.map +0 -1
  77. package/dist/adapter/ember/ezsp/buffalo.js +0 -1122
  78. package/dist/adapter/ember/ezsp/buffalo.js.map +0 -1
  79. package/dist/adapter/ember/ezsp/consts.d.ts +0 -117
  80. package/dist/adapter/ember/ezsp/consts.d.ts.map +0 -1
  81. package/dist/adapter/ember/ezsp/consts.js +0 -129
  82. package/dist/adapter/ember/ezsp/consts.js.map +0 -1
  83. package/dist/adapter/ember/ezsp/enums.d.ts +0 -990
  84. package/dist/adapter/ember/ezsp/enums.d.ts.map +0 -1
  85. package/dist/adapter/ember/ezsp/enums.js +0 -1076
  86. package/dist/adapter/ember/ezsp/enums.js.map +0 -1
  87. package/dist/adapter/ember/ezsp/ezsp.d.ts +0 -2934
  88. package/dist/adapter/ember/ezsp/ezsp.d.ts.map +0 -1
  89. package/dist/adapter/ember/ezsp/ezsp.js +0 -7039
  90. package/dist/adapter/ember/ezsp/ezsp.js.map +0 -1
  91. package/dist/adapter/ember/ezspError.d.ts +0 -6
  92. package/dist/adapter/ember/ezspError.d.ts.map +0 -1
  93. package/dist/adapter/ember/ezspError.js +0 -13
  94. package/dist/adapter/ember/ezspError.js.map +0 -1
  95. package/dist/adapter/ember/types.d.ts +0 -773
  96. package/dist/adapter/ember/types.d.ts.map +0 -1
  97. package/dist/adapter/ember/types.js +0 -3
  98. package/dist/adapter/ember/types.js.map +0 -1
  99. package/dist/adapter/ember/uart/ash.d.ts +0 -451
  100. package/dist/adapter/ember/uart/ash.d.ts.map +0 -1
  101. package/dist/adapter/ember/uart/ash.js +0 -1619
  102. package/dist/adapter/ember/uart/ash.js.map +0 -1
  103. package/dist/adapter/ember/uart/consts.d.ts +0 -91
  104. package/dist/adapter/ember/uart/consts.d.ts.map +0 -1
  105. package/dist/adapter/ember/uart/consts.js +0 -100
  106. package/dist/adapter/ember/uart/consts.js.map +0 -1
  107. package/dist/adapter/ember/uart/enums.d.ts +0 -191
  108. package/dist/adapter/ember/uart/enums.d.ts.map +0 -1
  109. package/dist/adapter/ember/uart/enums.js +0 -197
  110. package/dist/adapter/ember/uart/enums.js.map +0 -1
  111. package/dist/adapter/ember/uart/parser.d.ts +0 -8
  112. package/dist/adapter/ember/uart/parser.d.ts.map +0 -1
  113. package/dist/adapter/ember/uart/parser.js +0 -37
  114. package/dist/adapter/ember/uart/parser.js.map +0 -1
  115. package/dist/adapter/ember/uart/queues.d.ts +0 -84
  116. package/dist/adapter/ember/uart/queues.d.ts.map +0 -1
  117. package/dist/adapter/ember/uart/queues.js +0 -215
  118. package/dist/adapter/ember/uart/queues.js.map +0 -1
  119. package/dist/adapter/ember/uart/writer.d.ts +0 -14
  120. package/dist/adapter/ember/uart/writer.d.ts.map +0 -1
  121. package/dist/adapter/ember/uart/writer.js +0 -45
  122. package/dist/adapter/ember/uart/writer.js.map +0 -1
  123. package/dist/adapter/ember/utils/initters.d.ts +0 -20
  124. package/dist/adapter/ember/utils/initters.d.ts.map +0 -1
  125. package/dist/adapter/ember/utils/initters.js +0 -92
  126. package/dist/adapter/ember/utils/initters.js.map +0 -1
  127. package/dist/adapter/ember/utils/math.d.ts +0 -43
  128. package/dist/adapter/ember/utils/math.d.ts.map +0 -1
  129. package/dist/adapter/ember/utils/math.js +0 -83
  130. package/dist/adapter/ember/utils/math.js.map +0 -1
  131. package/dist/adapter/events.d.ts +0 -25
  132. package/dist/adapter/events.d.ts.map +0 -1
  133. package/dist/adapter/events.js +0 -3
  134. package/dist/adapter/events.js.map +0 -1
  135. package/dist/adapter/ezsp/adapter/backup.d.ts +0 -13
  136. package/dist/adapter/ezsp/adapter/backup.d.ts.map +0 -1
  137. package/dist/adapter/ezsp/adapter/backup.js +0 -135
  138. package/dist/adapter/ezsp/adapter/backup.js.map +0 -1
  139. package/dist/adapter/ezsp/adapter/ezspAdapter.d.ts +0 -53
  140. package/dist/adapter/ezsp/adapter/ezspAdapter.d.ts.map +0 -1
  141. package/dist/adapter/ezsp/adapter/ezspAdapter.js +0 -453
  142. package/dist/adapter/ezsp/adapter/ezspAdapter.js.map +0 -1
  143. package/dist/adapter/ezsp/adapter/index.d.ts +0 -3
  144. package/dist/adapter/ezsp/adapter/index.d.ts.map +0 -1
  145. package/dist/adapter/ezsp/adapter/index.js +0 -9
  146. package/dist/adapter/ezsp/adapter/index.js.map +0 -1
  147. package/dist/adapter/ezsp/driver/commands.d.ts +0 -37
  148. package/dist/adapter/ezsp/driver/commands.d.ts.map +0 -1
  149. package/dist/adapter/ezsp/driver/commands.js +0 -2387
  150. package/dist/adapter/ezsp/driver/commands.js.map +0 -1
  151. package/dist/adapter/ezsp/driver/consts.d.ts +0 -11
  152. package/dist/adapter/ezsp/driver/consts.d.ts.map +0 -1
  153. package/dist/adapter/ezsp/driver/consts.js +0 -14
  154. package/dist/adapter/ezsp/driver/consts.js.map +0 -1
  155. package/dist/adapter/ezsp/driver/driver.d.ts +0 -96
  156. package/dist/adapter/ezsp/driver/driver.d.ts.map +0 -1
  157. package/dist/adapter/ezsp/driver/driver.js +0 -856
  158. package/dist/adapter/ezsp/driver/driver.js.map +0 -1
  159. package/dist/adapter/ezsp/driver/ezsp.d.ts +0 -104
  160. package/dist/adapter/ezsp/driver/ezsp.d.ts.map +0 -1
  161. package/dist/adapter/ezsp/driver/ezsp.js +0 -675
  162. package/dist/adapter/ezsp/driver/ezsp.js.map +0 -1
  163. package/dist/adapter/ezsp/driver/frame.d.ts +0 -39
  164. package/dist/adapter/ezsp/driver/frame.d.ts.map +0 -1
  165. package/dist/adapter/ezsp/driver/frame.js +0 -101
  166. package/dist/adapter/ezsp/driver/frame.js.map +0 -1
  167. package/dist/adapter/ezsp/driver/index.d.ts +0 -4
  168. package/dist/adapter/ezsp/driver/index.d.ts.map +0 -1
  169. package/dist/adapter/ezsp/driver/index.js +0 -8
  170. package/dist/adapter/ezsp/driver/index.js.map +0 -1
  171. package/dist/adapter/ezsp/driver/multicast.d.ts +0 -13
  172. package/dist/adapter/ezsp/driver/multicast.d.ts.map +0 -1
  173. package/dist/adapter/ezsp/driver/multicast.js +0 -74
  174. package/dist/adapter/ezsp/driver/multicast.js.map +0 -1
  175. package/dist/adapter/ezsp/driver/parser.d.ts +0 -9
  176. package/dist/adapter/ezsp/driver/parser.d.ts.map +0 -1
  177. package/dist/adapter/ezsp/driver/parser.js +0 -109
  178. package/dist/adapter/ezsp/driver/parser.js.map +0 -1
  179. package/dist/adapter/ezsp/driver/types/basic.d.ts +0 -62
  180. package/dist/adapter/ezsp/driver/types/basic.d.ts.map +0 -1
  181. package/dist/adapter/ezsp/driver/types/basic.js +0 -208
  182. package/dist/adapter/ezsp/driver/types/basic.js.map +0 -1
  183. package/dist/adapter/ezsp/driver/types/index.d.ts +0 -9
  184. package/dist/adapter/ezsp/driver/types/index.d.ts.map +0 -1
  185. package/dist/adapter/ezsp/driver/types/index.js +0 -138
  186. package/dist/adapter/ezsp/driver/types/index.js.map +0 -1
  187. package/dist/adapter/ezsp/driver/types/named.d.ts +0 -1287
  188. package/dist/adapter/ezsp/driver/types/named.d.ts.map +0 -1
  189. package/dist/adapter/ezsp/driver/types/named.js +0 -2340
  190. package/dist/adapter/ezsp/driver/types/named.js.map +0 -1
  191. package/dist/adapter/ezsp/driver/types/struct.d.ts +0 -270
  192. package/dist/adapter/ezsp/driver/types/struct.d.ts.map +0 -1
  193. package/dist/adapter/ezsp/driver/types/struct.js +0 -876
  194. package/dist/adapter/ezsp/driver/types/struct.js.map +0 -1
  195. package/dist/adapter/ezsp/driver/uart.d.ts +0 -46
  196. package/dist/adapter/ezsp/driver/uart.d.ts.map +0 -1
  197. package/dist/adapter/ezsp/driver/uart.js +0 -379
  198. package/dist/adapter/ezsp/driver/uart.js.map +0 -1
  199. package/dist/adapter/ezsp/driver/utils/crc16ccitt.d.ts +0 -5
  200. package/dist/adapter/ezsp/driver/utils/crc16ccitt.d.ts.map +0 -1
  201. package/dist/adapter/ezsp/driver/utils/crc16ccitt.js +0 -55
  202. package/dist/adapter/ezsp/driver/utils/crc16ccitt.js.map +0 -1
  203. package/dist/adapter/ezsp/driver/utils/index.d.ts +0 -5
  204. package/dist/adapter/ezsp/driver/utils/index.d.ts.map +0 -1
  205. package/dist/adapter/ezsp/driver/utils/index.js +0 -35
  206. package/dist/adapter/ezsp/driver/utils/index.js.map +0 -1
  207. package/dist/adapter/ezsp/driver/writer.d.ts +0 -12
  208. package/dist/adapter/ezsp/driver/writer.d.ts.map +0 -1
  209. package/dist/adapter/ezsp/driver/writer.js +0 -92
  210. package/dist/adapter/ezsp/driver/writer.js.map +0 -1
  211. package/dist/adapter/index.d.ts +0 -5
  212. package/dist/adapter/index.d.ts.map +0 -1
  213. package/dist/adapter/index.js +0 -46
  214. package/dist/adapter/index.js.map +0 -1
  215. package/dist/adapter/serialPort.d.ts +0 -19
  216. package/dist/adapter/serialPort.d.ts.map +0 -1
  217. package/dist/adapter/serialPort.js +0 -50
  218. package/dist/adapter/serialPort.js.map +0 -1
  219. package/dist/adapter/socketPortUtils.d.ts +0 -11
  220. package/dist/adapter/socketPortUtils.d.ts.map +0 -1
  221. package/dist/adapter/socketPortUtils.js +0 -17
  222. package/dist/adapter/socketPortUtils.js.map +0 -1
  223. package/dist/adapter/tstype.d.ts +0 -68
  224. package/dist/adapter/tstype.d.ts.map +0 -1
  225. package/dist/adapter/tstype.js +0 -3
  226. package/dist/adapter/tstype.js.map +0 -1
  227. package/dist/adapter/z-stack/adapter/adapter-backup.d.ts +0 -62
  228. package/dist/adapter/z-stack/adapter/adapter-backup.d.ts.map +0 -1
  229. package/dist/adapter/z-stack/adapter/adapter-backup.js +0 -491
  230. package/dist/adapter/z-stack/adapter/adapter-backup.js.map +0 -1
  231. package/dist/adapter/z-stack/adapter/adapter-nv-memory.d.ts +0 -150
  232. package/dist/adapter/z-stack/adapter/adapter-nv-memory.d.ts.map +0 -1
  233. package/dist/adapter/z-stack/adapter/adapter-nv-memory.js +0 -278
  234. package/dist/adapter/z-stack/adapter/adapter-nv-memory.js.map +0 -1
  235. package/dist/adapter/z-stack/adapter/endpoints.d.ts +0 -12
  236. package/dist/adapter/z-stack/adapter/endpoints.d.ts.map +0 -1
  237. package/dist/adapter/z-stack/adapter/endpoints.js +0 -84
  238. package/dist/adapter/z-stack/adapter/endpoints.js.map +0 -1
  239. package/dist/adapter/z-stack/adapter/index.d.ts +0 -3
  240. package/dist/adapter/z-stack/adapter/index.d.ts.map +0 -1
  241. package/dist/adapter/z-stack/adapter/index.js +0 -9
  242. package/dist/adapter/z-stack/adapter/index.js.map +0 -1
  243. package/dist/adapter/z-stack/adapter/manager.d.ts +0 -86
  244. package/dist/adapter/z-stack/adapter/manager.d.ts.map +0 -1
  245. package/dist/adapter/z-stack/adapter/manager.js +0 -503
  246. package/dist/adapter/z-stack/adapter/manager.js.map +0 -1
  247. package/dist/adapter/z-stack/adapter/tstype.d.ts +0 -7
  248. package/dist/adapter/z-stack/adapter/tstype.d.ts.map +0 -1
  249. package/dist/adapter/z-stack/adapter/tstype.js +0 -10
  250. package/dist/adapter/z-stack/adapter/tstype.js.map +0 -1
  251. package/dist/adapter/z-stack/adapter/zStackAdapter.d.ts +0 -72
  252. package/dist/adapter/z-stack/adapter/zStackAdapter.d.ts.map +0 -1
  253. package/dist/adapter/z-stack/adapter/zStackAdapter.js +0 -805
  254. package/dist/adapter/z-stack/adapter/zStackAdapter.js.map +0 -1
  255. package/dist/adapter/z-stack/constants/af.d.ts +0 -24
  256. package/dist/adapter/z-stack/constants/af.d.ts.map +0 -1
  257. package/dist/adapter/z-stack/constants/af.js +0 -28
  258. package/dist/adapter/z-stack/constants/af.js.map +0 -1
  259. package/dist/adapter/z-stack/constants/common.d.ts +0 -279
  260. package/dist/adapter/z-stack/constants/common.d.ts.map +0 -1
  261. package/dist/adapter/z-stack/constants/common.js +0 -293
  262. package/dist/adapter/z-stack/constants/common.js.map +0 -1
  263. package/dist/adapter/z-stack/constants/dbg.d.ts +0 -23
  264. package/dist/adapter/z-stack/constants/dbg.d.ts.map +0 -1
  265. package/dist/adapter/z-stack/constants/dbg.js +0 -25
  266. package/dist/adapter/z-stack/constants/dbg.js.map +0 -1
  267. package/dist/adapter/z-stack/constants/index.d.ts +0 -11
  268. package/dist/adapter/z-stack/constants/index.d.ts.map +0 -1
  269. package/dist/adapter/z-stack/constants/index.js +0 -58
  270. package/dist/adapter/z-stack/constants/index.js.map +0 -1
  271. package/dist/adapter/z-stack/constants/mac.d.ts +0 -128
  272. package/dist/adapter/z-stack/constants/mac.d.ts.map +0 -1
  273. package/dist/adapter/z-stack/constants/mac.js +0 -130
  274. package/dist/adapter/z-stack/constants/mac.js.map +0 -1
  275. package/dist/adapter/z-stack/constants/sapi.d.ts +0 -25
  276. package/dist/adapter/z-stack/constants/sapi.d.ts.map +0 -1
  277. package/dist/adapter/z-stack/constants/sapi.js +0 -27
  278. package/dist/adapter/z-stack/constants/sapi.js.map +0 -1
  279. package/dist/adapter/z-stack/constants/sys.d.ts +0 -72
  280. package/dist/adapter/z-stack/constants/sys.d.ts.map +0 -1
  281. package/dist/adapter/z-stack/constants/sys.js +0 -74
  282. package/dist/adapter/z-stack/constants/sys.js.map +0 -1
  283. package/dist/adapter/z-stack/constants/util.d.ts +0 -82
  284. package/dist/adapter/z-stack/constants/util.d.ts.map +0 -1
  285. package/dist/adapter/z-stack/constants/util.js +0 -84
  286. package/dist/adapter/z-stack/constants/util.js.map +0 -1
  287. package/dist/adapter/z-stack/constants/utils.d.ts +0 -5
  288. package/dist/adapter/z-stack/constants/utils.d.ts.map +0 -1
  289. package/dist/adapter/z-stack/constants/utils.js +0 -14
  290. package/dist/adapter/z-stack/constants/utils.js.map +0 -1
  291. package/dist/adapter/z-stack/constants/zdo.d.ts +0 -103
  292. package/dist/adapter/z-stack/constants/zdo.d.ts.map +0 -1
  293. package/dist/adapter/z-stack/constants/zdo.js +0 -105
  294. package/dist/adapter/z-stack/constants/zdo.js.map +0 -1
  295. package/dist/adapter/z-stack/models/index.d.ts +0 -2
  296. package/dist/adapter/z-stack/models/index.d.ts.map +0 -1
  297. package/dist/adapter/z-stack/models/index.js +0 -18
  298. package/dist/adapter/z-stack/models/index.js.map +0 -1
  299. package/dist/adapter/z-stack/models/startup-options.d.ts +0 -13
  300. package/dist/adapter/z-stack/models/startup-options.d.ts.map +0 -1
  301. package/dist/adapter/z-stack/models/startup-options.js +0 -3
  302. package/dist/adapter/z-stack/models/startup-options.js.map +0 -1
  303. package/dist/adapter/z-stack/structs/entries/address-manager-entry.d.ts +0 -23
  304. package/dist/adapter/z-stack/structs/entries/address-manager-entry.d.ts.map +0 -1
  305. package/dist/adapter/z-stack/structs/entries/address-manager-entry.js +0 -44
  306. package/dist/adapter/z-stack/structs/entries/address-manager-entry.js.map +0 -1
  307. package/dist/adapter/z-stack/structs/entries/address-manager-table.d.ts +0 -10
  308. package/dist/adapter/z-stack/structs/entries/address-manager-table.d.ts.map +0 -1
  309. package/dist/adapter/z-stack/structs/entries/address-manager-table.js +0 -25
  310. package/dist/adapter/z-stack/structs/entries/address-manager-table.js.map +0 -1
  311. package/dist/adapter/z-stack/structs/entries/aps-link-key-data-entry.d.ts +0 -10
  312. package/dist/adapter/z-stack/structs/entries/aps-link-key-data-entry.d.ts.map +0 -1
  313. package/dist/adapter/z-stack/structs/entries/aps-link-key-data-entry.js +0 -17
  314. package/dist/adapter/z-stack/structs/entries/aps-link-key-data-entry.js.map +0 -1
  315. package/dist/adapter/z-stack/structs/entries/aps-link-key-data-table.d.ts +0 -10
  316. package/dist/adapter/z-stack/structs/entries/aps-link-key-data-table.d.ts.map +0 -1
  317. package/dist/adapter/z-stack/structs/entries/aps-link-key-data-table.js +0 -26
  318. package/dist/adapter/z-stack/structs/entries/aps-link-key-data-table.js.map +0 -1
  319. package/dist/adapter/z-stack/structs/entries/aps-tc-link-key-entry.d.ts +0 -10
  320. package/dist/adapter/z-stack/structs/entries/aps-tc-link-key-entry.d.ts.map +0 -1
  321. package/dist/adapter/z-stack/structs/entries/aps-tc-link-key-entry.js +0 -24
  322. package/dist/adapter/z-stack/structs/entries/aps-tc-link-key-entry.js.map +0 -1
  323. package/dist/adapter/z-stack/structs/entries/aps-tc-link-key-table.d.ts +0 -10
  324. package/dist/adapter/z-stack/structs/entries/aps-tc-link-key-table.d.ts.map +0 -1
  325. package/dist/adapter/z-stack/structs/entries/aps-tc-link-key-table.js +0 -26
  326. package/dist/adapter/z-stack/structs/entries/aps-tc-link-key-table.js.map +0 -1
  327. package/dist/adapter/z-stack/structs/entries/channel-list.d.ts +0 -8
  328. package/dist/adapter/z-stack/structs/entries/channel-list.d.ts.map +0 -1
  329. package/dist/adapter/z-stack/structs/entries/channel-list.js +0 -13
  330. package/dist/adapter/z-stack/structs/entries/channel-list.js.map +0 -1
  331. package/dist/adapter/z-stack/structs/entries/has-configured.d.ts +0 -8
  332. package/dist/adapter/z-stack/structs/entries/has-configured.d.ts.map +0 -1
  333. package/dist/adapter/z-stack/structs/entries/has-configured.js +0 -23
  334. package/dist/adapter/z-stack/structs/entries/has-configured.js.map +0 -1
  335. package/dist/adapter/z-stack/structs/entries/index.d.ts +0 -17
  336. package/dist/adapter/z-stack/structs/entries/index.d.ts.map +0 -1
  337. package/dist/adapter/z-stack/structs/entries/index.js +0 -33
  338. package/dist/adapter/z-stack/structs/entries/index.js.map +0 -1
  339. package/dist/adapter/z-stack/structs/entries/nib.d.ts +0 -10
  340. package/dist/adapter/z-stack/structs/entries/nib.d.ts.map +0 -1
  341. package/dist/adapter/z-stack/structs/entries/nib.js +0 -73
  342. package/dist/adapter/z-stack/structs/entries/nib.js.map +0 -1
  343. package/dist/adapter/z-stack/structs/entries/nwk-key-descriptor.d.ts +0 -10
  344. package/dist/adapter/z-stack/structs/entries/nwk-key-descriptor.d.ts.map +0 -1
  345. package/dist/adapter/z-stack/structs/entries/nwk-key-descriptor.js +0 -22
  346. package/dist/adapter/z-stack/structs/entries/nwk-key-descriptor.js.map +0 -1
  347. package/dist/adapter/z-stack/structs/entries/nwk-key.d.ts +0 -8
  348. package/dist/adapter/z-stack/structs/entries/nwk-key.d.ts.map +0 -1
  349. package/dist/adapter/z-stack/structs/entries/nwk-key.js +0 -20
  350. package/dist/adapter/z-stack/structs/entries/nwk-key.js.map +0 -1
  351. package/dist/adapter/z-stack/structs/entries/nwk-pan-id.d.ts +0 -8
  352. package/dist/adapter/z-stack/structs/entries/nwk-pan-id.d.ts.map +0 -1
  353. package/dist/adapter/z-stack/structs/entries/nwk-pan-id.js +0 -13
  354. package/dist/adapter/z-stack/structs/entries/nwk-pan-id.js.map +0 -1
  355. package/dist/adapter/z-stack/structs/entries/nwk-sec-material-descriptor-entry.d.ts +0 -13
  356. package/dist/adapter/z-stack/structs/entries/nwk-sec-material-descriptor-entry.d.ts.map +0 -1
  357. package/dist/adapter/z-stack/structs/entries/nwk-sec-material-descriptor-entry.js +0 -23
  358. package/dist/adapter/z-stack/structs/entries/nwk-sec-material-descriptor-entry.js.map +0 -1
  359. package/dist/adapter/z-stack/structs/entries/nwk-sec-material-descriptor-table.d.ts +0 -10
  360. package/dist/adapter/z-stack/structs/entries/nwk-sec-material-descriptor-table.d.ts.map +0 -1
  361. package/dist/adapter/z-stack/structs/entries/nwk-sec-material-descriptor-table.js +0 -25
  362. package/dist/adapter/z-stack/structs/entries/nwk-sec-material-descriptor-table.js.map +0 -1
  363. package/dist/adapter/z-stack/structs/entries/security-manager-entry.d.ts +0 -20
  364. package/dist/adapter/z-stack/structs/entries/security-manager-entry.d.ts.map +0 -1
  365. package/dist/adapter/z-stack/structs/entries/security-manager-entry.js +0 -36
  366. package/dist/adapter/z-stack/structs/entries/security-manager-entry.js.map +0 -1
  367. package/dist/adapter/z-stack/structs/entries/security-manager-table.d.ts +0 -10
  368. package/dist/adapter/z-stack/structs/entries/security-manager-table.d.ts.map +0 -1
  369. package/dist/adapter/z-stack/structs/entries/security-manager-table.js +0 -26
  370. package/dist/adapter/z-stack/structs/entries/security-manager-table.js.map +0 -1
  371. package/dist/adapter/z-stack/structs/index.d.ts +0 -5
  372. package/dist/adapter/z-stack/structs/index.d.ts.map +0 -1
  373. package/dist/adapter/z-stack/structs/index.js +0 -21
  374. package/dist/adapter/z-stack/structs/index.js.map +0 -1
  375. package/dist/adapter/z-stack/structs/serializable-memory-object.d.ts +0 -13
  376. package/dist/adapter/z-stack/structs/serializable-memory-object.d.ts.map +0 -1
  377. package/dist/adapter/z-stack/structs/serializable-memory-object.js +0 -3
  378. package/dist/adapter/z-stack/structs/serializable-memory-object.js.map +0 -1
  379. package/dist/adapter/z-stack/structs/struct.d.ts +0 -99
  380. package/dist/adapter/z-stack/structs/struct.d.ts.map +0 -1
  381. package/dist/adapter/z-stack/structs/struct.js +0 -310
  382. package/dist/adapter/z-stack/structs/struct.js.map +0 -1
  383. package/dist/adapter/z-stack/structs/table.d.ts +0 -94
  384. package/dist/adapter/z-stack/structs/table.d.ts.map +0 -1
  385. package/dist/adapter/z-stack/structs/table.js +0 -168
  386. package/dist/adapter/z-stack/structs/table.js.map +0 -1
  387. package/dist/adapter/z-stack/unpi/constants.d.ts +0 -29
  388. package/dist/adapter/z-stack/unpi/constants.d.ts.map +0 -1
  389. package/dist/adapter/z-stack/unpi/constants.js +0 -40
  390. package/dist/adapter/z-stack/unpi/constants.js.map +0 -1
  391. package/dist/adapter/z-stack/unpi/frame.d.ts +0 -16
  392. package/dist/adapter/z-stack/unpi/frame.d.ts.map +0 -1
  393. package/dist/adapter/z-stack/unpi/frame.js +0 -54
  394. package/dist/adapter/z-stack/unpi/frame.js.map +0 -1
  395. package/dist/adapter/z-stack/unpi/index.d.ts +0 -6
  396. package/dist/adapter/z-stack/unpi/index.d.ts.map +0 -1
  397. package/dist/adapter/z-stack/unpi/index.js +0 -48
  398. package/dist/adapter/z-stack/unpi/index.js.map +0 -1
  399. package/dist/adapter/z-stack/unpi/parser.d.ts +0 -9
  400. package/dist/adapter/z-stack/unpi/parser.d.ts.map +0 -1
  401. package/dist/adapter/z-stack/unpi/parser.js +0 -86
  402. package/dist/adapter/z-stack/unpi/parser.js.map +0 -1
  403. package/dist/adapter/z-stack/unpi/writer.d.ts +0 -9
  404. package/dist/adapter/z-stack/unpi/writer.d.ts.map +0 -1
  405. package/dist/adapter/z-stack/unpi/writer.js +0 -52
  406. package/dist/adapter/z-stack/unpi/writer.js.map +0 -1
  407. package/dist/adapter/z-stack/utils/channel-list.d.ts +0 -21
  408. package/dist/adapter/z-stack/utils/channel-list.d.ts.map +0 -1
  409. package/dist/adapter/z-stack/utils/channel-list.js +0 -44
  410. package/dist/adapter/z-stack/utils/channel-list.js.map +0 -1
  411. package/dist/adapter/z-stack/utils/index.d.ts +0 -3
  412. package/dist/adapter/z-stack/utils/index.d.ts.map +0 -1
  413. package/dist/adapter/z-stack/utils/index.js +0 -19
  414. package/dist/adapter/z-stack/utils/index.js.map +0 -1
  415. package/dist/adapter/z-stack/utils/network-options.d.ts +0 -9
  416. package/dist/adapter/z-stack/utils/network-options.d.ts.map +0 -1
  417. package/dist/adapter/z-stack/utils/network-options.js +0 -22
  418. package/dist/adapter/z-stack/utils/network-options.js.map +0 -1
  419. package/dist/adapter/z-stack/znp/buffaloZnp.d.ts +0 -10
  420. package/dist/adapter/z-stack/znp/buffaloZnp.d.ts.map +0 -1
  421. package/dist/adapter/z-stack/znp/buffaloZnp.js +0 -148
  422. package/dist/adapter/z-stack/znp/buffaloZnp.js.map +0 -1
  423. package/dist/adapter/z-stack/znp/definition.d.ts +0 -18
  424. package/dist/adapter/z-stack/znp/definition.d.ts.map +0 -1
  425. package/dist/adapter/z-stack/znp/definition.js +0 -2703
  426. package/dist/adapter/z-stack/znp/definition.js.map +0 -1
  427. package/dist/adapter/z-stack/znp/index.d.ts +0 -4
  428. package/dist/adapter/z-stack/znp/index.d.ts.map +0 -1
  429. package/dist/adapter/z-stack/znp/index.js +0 -11
  430. package/dist/adapter/z-stack/znp/index.js.map +0 -1
  431. package/dist/adapter/z-stack/znp/parameterType.d.ts +0 -19
  432. package/dist/adapter/z-stack/znp/parameterType.d.ts.map +0 -1
  433. package/dist/adapter/z-stack/znp/parameterType.js +0 -22
  434. package/dist/adapter/z-stack/znp/parameterType.js.map +0 -1
  435. package/dist/adapter/z-stack/znp/tstype.d.ts +0 -40
  436. package/dist/adapter/z-stack/znp/tstype.d.ts.map +0 -1
  437. package/dist/adapter/z-stack/znp/tstype.js +0 -3
  438. package/dist/adapter/z-stack/znp/tstype.js.map +0 -1
  439. package/dist/adapter/z-stack/znp/utils.d.ts +0 -4
  440. package/dist/adapter/z-stack/znp/utils.d.ts.map +0 -1
  441. package/dist/adapter/z-stack/znp/utils.js +0 -12
  442. package/dist/adapter/z-stack/znp/utils.js.map +0 -1
  443. package/dist/adapter/z-stack/znp/znp.d.ts +0 -42
  444. package/dist/adapter/z-stack/znp/znp.d.ts.map +0 -1
  445. package/dist/adapter/z-stack/znp/znp.js +0 -289
  446. package/dist/adapter/z-stack/znp/znp.js.map +0 -1
  447. package/dist/adapter/z-stack/znp/zpiObject.d.ts +0 -19
  448. package/dist/adapter/z-stack/znp/zpiObject.d.ts.map +0 -1
  449. package/dist/adapter/z-stack/znp/zpiObject.js +0 -121
  450. package/dist/adapter/z-stack/znp/zpiObject.js.map +0 -1
  451. package/dist/adapter/zboss/adapter/index.d.ts +0 -3
  452. package/dist/adapter/zboss/adapter/index.d.ts.map +0 -1
  453. package/dist/adapter/zboss/adapter/index.js +0 -6
  454. package/dist/adapter/zboss/adapter/index.js.map +0 -1
  455. package/dist/adapter/zboss/adapter/zbossAdapter.d.ts +0 -42
  456. package/dist/adapter/zboss/adapter/zbossAdapter.d.ts.map +0 -1
  457. package/dist/adapter/zboss/adapter/zbossAdapter.js +0 -350
  458. package/dist/adapter/zboss/adapter/zbossAdapter.js.map +0 -1
  459. package/dist/adapter/zboss/commands.d.ts +0 -22
  460. package/dist/adapter/zboss/commands.d.ts.map +0 -1
  461. package/dist/adapter/zboss/commands.js +0 -1107
  462. package/dist/adapter/zboss/commands.js.map +0 -1
  463. package/dist/adapter/zboss/consts.d.ts +0 -9
  464. package/dist/adapter/zboss/consts.d.ts.map +0 -1
  465. package/dist/adapter/zboss/consts.js +0 -12
  466. package/dist/adapter/zboss/consts.js.map +0 -1
  467. package/dist/adapter/zboss/driver.d.ts +0 -55
  468. package/dist/adapter/zboss/driver.d.ts.map +0 -1
  469. package/dist/adapter/zboss/driver.js +0 -356
  470. package/dist/adapter/zboss/driver.js.map +0 -1
  471. package/dist/adapter/zboss/enums.d.ts +0 -301
  472. package/dist/adapter/zboss/enums.d.ts.map +0 -1
  473. package/dist/adapter/zboss/enums.js +0 -359
  474. package/dist/adapter/zboss/enums.js.map +0 -1
  475. package/dist/adapter/zboss/frame.d.ts +0 -34
  476. package/dist/adapter/zboss/frame.d.ts.map +0 -1
  477. package/dist/adapter/zboss/frame.js +0 -200
  478. package/dist/adapter/zboss/frame.js.map +0 -1
  479. package/dist/adapter/zboss/reader.d.ts +0 -8
  480. package/dist/adapter/zboss/reader.d.ts.map +0 -1
  481. package/dist/adapter/zboss/reader.js +0 -58
  482. package/dist/adapter/zboss/reader.js.map +0 -1
  483. package/dist/adapter/zboss/types.d.ts +0 -1
  484. package/dist/adapter/zboss/types.d.ts.map +0 -1
  485. package/dist/adapter/zboss/types.js +0 -2
  486. package/dist/adapter/zboss/types.js.map +0 -1
  487. package/dist/adapter/zboss/uart.d.ts +0 -38
  488. package/dist/adapter/zboss/uart.d.ts.map +0 -1
  489. package/dist/adapter/zboss/uart.js +0 -372
  490. package/dist/adapter/zboss/uart.js.map +0 -1
  491. package/dist/adapter/zboss/utils.d.ts +0 -9
  492. package/dist/adapter/zboss/utils.d.ts.map +0 -1
  493. package/dist/adapter/zboss/utils.js +0 -56
  494. package/dist/adapter/zboss/utils.js.map +0 -1
  495. package/dist/adapter/zboss/writer.d.ts +0 -14
  496. package/dist/adapter/zboss/writer.d.ts.map +0 -1
  497. package/dist/adapter/zboss/writer.js +0 -43
  498. package/dist/adapter/zboss/writer.js.map +0 -1
  499. package/dist/adapter/zigate/adapter/index.d.ts +0 -3
  500. package/dist/adapter/zigate/adapter/index.d.ts.map +0 -1
  501. package/dist/adapter/zigate/adapter/index.js +0 -10
  502. package/dist/adapter/zigate/adapter/index.js.map +0 -1
  503. package/dist/adapter/zigate/adapter/patchZdoBuffaloBE.d.ts +0 -5
  504. package/dist/adapter/zigate/adapter/patchZdoBuffaloBE.d.ts.map +0 -1
  505. package/dist/adapter/zigate/adapter/patchZdoBuffaloBE.js +0 -28
  506. package/dist/adapter/zigate/adapter/patchZdoBuffaloBE.js.map +0 -1
  507. package/dist/adapter/zigate/adapter/zigateAdapter.d.ts +0 -63
  508. package/dist/adapter/zigate/adapter/zigateAdapter.d.ts.map +0 -1
  509. package/dist/adapter/zigate/adapter/zigateAdapter.js +0 -462
  510. package/dist/adapter/zigate/adapter/zigateAdapter.js.map +0 -1
  511. package/dist/adapter/zigate/driver/buffaloZiGate.d.ts +0 -22
  512. package/dist/adapter/zigate/driver/buffaloZiGate.d.ts.map +0 -1
  513. package/dist/adapter/zigate/driver/buffaloZiGate.js +0 -182
  514. package/dist/adapter/zigate/driver/buffaloZiGate.js.map +0 -1
  515. package/dist/adapter/zigate/driver/commandType.d.ts +0 -42
  516. package/dist/adapter/zigate/driver/commandType.d.ts.map +0 -1
  517. package/dist/adapter/zigate/driver/commandType.js +0 -383
  518. package/dist/adapter/zigate/driver/commandType.js.map +0 -1
  519. package/dist/adapter/zigate/driver/constants.d.ts +0 -289
  520. package/dist/adapter/zigate/driver/constants.d.ts.map +0 -1
  521. package/dist/adapter/zigate/driver/constants.js +0 -344
  522. package/dist/adapter/zigate/driver/constants.js.map +0 -1
  523. package/dist/adapter/zigate/driver/frame.d.ts +0 -26
  524. package/dist/adapter/zigate/driver/frame.d.ts.map +0 -1
  525. package/dist/adapter/zigate/driver/frame.js +0 -160
  526. package/dist/adapter/zigate/driver/frame.js.map +0 -1
  527. package/dist/adapter/zigate/driver/messageType.d.ts +0 -13
  528. package/dist/adapter/zigate/driver/messageType.d.ts.map +0 -1
  529. package/dist/adapter/zigate/driver/messageType.js +0 -282
  530. package/dist/adapter/zigate/driver/messageType.js.map +0 -1
  531. package/dist/adapter/zigate/driver/parameterType.d.ts +0 -25
  532. package/dist/adapter/zigate/driver/parameterType.d.ts.map +0 -1
  533. package/dist/adapter/zigate/driver/parameterType.js +0 -31
  534. package/dist/adapter/zigate/driver/parameterType.js.map +0 -1
  535. package/dist/adapter/zigate/driver/ziGateObject.d.ts +0 -23
  536. package/dist/adapter/zigate/driver/ziGateObject.d.ts.map +0 -1
  537. package/dist/adapter/zigate/driver/ziGateObject.js +0 -116
  538. package/dist/adapter/zigate/driver/ziGateObject.js.map +0 -1
  539. package/dist/adapter/zigate/driver/zigate.d.ts +0 -47
  540. package/dist/adapter/zigate/driver/zigate.d.ts.map +0 -1
  541. package/dist/adapter/zigate/driver/zigate.js +0 -361
  542. package/dist/adapter/zigate/driver/zigate.js.map +0 -1
  543. package/dist/buffalo/buffalo.d.ts +0 -62
  544. package/dist/buffalo/buffalo.d.ts.map +0 -1
  545. package/dist/buffalo/buffalo.js +0 -275
  546. package/dist/buffalo/buffalo.js.map +0 -1
  547. package/dist/buffalo/index.d.ts +0 -3
  548. package/dist/buffalo/index.d.ts.map +0 -1
  549. package/dist/buffalo/index.js +0 -9
  550. package/dist/buffalo/index.js.map +0 -1
  551. package/dist/controller/controller.d.ts +0 -142
  552. package/dist/controller/controller.d.ts.map +0 -1
  553. package/dist/controller/controller.js +0 -788
  554. package/dist/controller/controller.js.map +0 -1
  555. package/dist/controller/database.d.ts +0 -17
  556. package/dist/controller/database.d.ts.map +0 -1
  557. package/dist/controller/database.js +0 -103
  558. package/dist/controller/database.js.map +0 -1
  559. package/dist/controller/events.d.ts +0 -44
  560. package/dist/controller/events.d.ts.map +0 -1
  561. package/dist/controller/events.js +0 -3
  562. package/dist/controller/events.js.map +0 -1
  563. package/dist/controller/greenPower.d.ts +0 -17
  564. package/dist/controller/greenPower.d.ts.map +0 -1
  565. package/dist/controller/greenPower.js +0 -235
  566. package/dist/controller/greenPower.js.map +0 -1
  567. package/dist/controller/helpers/index.d.ts +0 -3
  568. package/dist/controller/helpers/index.d.ts.map +0 -1
  569. package/dist/controller/helpers/index.js +0 -39
  570. package/dist/controller/helpers/index.js.map +0 -1
  571. package/dist/controller/helpers/request.d.ts +0 -22
  572. package/dist/controller/helpers/request.d.ts.map +0 -1
  573. package/dist/controller/helpers/request.js +0 -75
  574. package/dist/controller/helpers/request.js.map +0 -1
  575. package/dist/controller/helpers/requestQueue.d.ts +0 -13
  576. package/dist/controller/helpers/requestQueue.d.ts.map +0 -1
  577. package/dist/controller/helpers/requestQueue.js +0 -105
  578. package/dist/controller/helpers/requestQueue.js.map +0 -1
  579. package/dist/controller/helpers/zclFrameConverter.d.ts +0 -9
  580. package/dist/controller/helpers/zclFrameConverter.d.ts.map +0 -1
  581. package/dist/controller/helpers/zclFrameConverter.js +0 -79
  582. package/dist/controller/helpers/zclFrameConverter.js.map +0 -1
  583. package/dist/controller/helpers/zclTransactionSequenceNumber.d.ts +0 -6
  584. package/dist/controller/helpers/zclTransactionSequenceNumber.d.ts.map +0 -1
  585. package/dist/controller/helpers/zclTransactionSequenceNumber.js +0 -14
  586. package/dist/controller/helpers/zclTransactionSequenceNumber.js.map +0 -1
  587. package/dist/controller/index.d.ts +0 -6
  588. package/dist/controller/index.d.ts.map +0 -1
  589. package/dist/controller/index.js +0 -9
  590. package/dist/controller/index.js.map +0 -1
  591. package/dist/controller/model/device.d.ts +0 -150
  592. package/dist/controller/model/device.d.ts.map +0 -1
  593. package/dist/controller/model/device.js +0 -1046
  594. package/dist/controller/model/device.js.map +0 -1
  595. package/dist/controller/model/endpoint.d.ts +0 -137
  596. package/dist/controller/model/endpoint.d.ts.map +0 -1
  597. package/dist/controller/model/endpoint.js +0 -665
  598. package/dist/controller/model/endpoint.js.map +0 -1
  599. package/dist/controller/model/entity.d.ts +0 -13
  600. package/dist/controller/model/entity.d.ts.map +0 -1
  601. package/dist/controller/model/entity.js +0 -18
  602. package/dist/controller/model/entity.js.map +0 -1
  603. package/dist/controller/model/group.d.ts +0 -47
  604. package/dist/controller/model/group.d.ts.map +0 -1
  605. package/dist/controller/model/group.js +0 -249
  606. package/dist/controller/model/group.js.map +0 -1
  607. package/dist/controller/model/index.d.ts +0 -6
  608. package/dist/controller/model/index.d.ts.map +0 -1
  609. package/dist/controller/model/index.js +0 -15
  610. package/dist/controller/model/index.js.map +0 -1
  611. package/dist/controller/touchlink.d.ts +0 -20
  612. package/dist/controller/touchlink.d.ts.map +0 -1
  613. package/dist/controller/touchlink.js +0 -168
  614. package/dist/controller/touchlink.js.map +0 -1
  615. package/dist/controller/tstype.d.ts +0 -18
  616. package/dist/controller/tstype.d.ts.map +0 -1
  617. package/dist/controller/tstype.js +0 -3
  618. package/dist/controller/tstype.js.map +0 -1
  619. package/dist/index.d.ts +0 -6
  620. package/dist/index.d.ts.map +0 -1
  621. package/dist/index.js +0 -47
  622. package/dist/index.js.map +0 -1
  623. package/dist/models/backup-storage-legacy.d.ts +0 -27
  624. package/dist/models/backup-storage-legacy.d.ts.map +0 -1
  625. package/dist/models/backup-storage-legacy.js +0 -3
  626. package/dist/models/backup-storage-legacy.js.map +0 -1
  627. package/dist/models/backup-storage-unified.d.ts +0 -50
  628. package/dist/models/backup-storage-unified.d.ts.map +0 -1
  629. package/dist/models/backup-storage-unified.js +0 -3
  630. package/dist/models/backup-storage-unified.js.map +0 -1
  631. package/dist/models/backup.d.ts +0 -37
  632. package/dist/models/backup.d.ts.map +0 -1
  633. package/dist/models/backup.js +0 -3
  634. package/dist/models/backup.js.map +0 -1
  635. package/dist/models/index.d.ts +0 -5
  636. package/dist/models/index.d.ts.map +0 -1
  637. package/dist/models/index.js +0 -21
  638. package/dist/models/index.js.map +0 -1
  639. package/dist/models/network-options.d.ts +0 -12
  640. package/dist/models/network-options.d.ts.map +0 -1
  641. package/dist/models/network-options.js +0 -3
  642. package/dist/models/network-options.js.map +0 -1
  643. package/dist/utils/backup.d.ts +0 -21
  644. package/dist/utils/backup.d.ts.map +0 -1
  645. package/dist/utils/backup.js +0 -180
  646. package/dist/utils/backup.js.map +0 -1
  647. package/dist/utils/index.d.ts +0 -8
  648. package/dist/utils/index.d.ts.map +0 -1
  649. package/dist/utils/index.js +0 -52
  650. package/dist/utils/index.js.map +0 -1
  651. package/dist/utils/logger.d.ts +0 -9
  652. package/dist/utils/logger.d.ts.map +0 -1
  653. package/dist/utils/logger.js +0 -14
  654. package/dist/utils/logger.js.map +0 -1
  655. package/dist/utils/patchBigIntSerialization.d.ts +0 -2
  656. package/dist/utils/patchBigIntSerialization.d.ts.map +0 -1
  657. package/dist/utils/patchBigIntSerialization.js +0 -9
  658. package/dist/utils/patchBigIntSerialization.js.map +0 -1
  659. package/dist/utils/queue.d.ts +0 -12
  660. package/dist/utils/queue.d.ts.map +0 -1
  661. package/dist/utils/queue.js +0 -62
  662. package/dist/utils/queue.js.map +0 -1
  663. package/dist/utils/realpathSync.d.ts +0 -3
  664. package/dist/utils/realpathSync.d.ts.map +0 -1
  665. package/dist/utils/realpathSync.js +0 -13
  666. package/dist/utils/realpathSync.js.map +0 -1
  667. package/dist/utils/utils.d.ts +0 -5
  668. package/dist/utils/utils.d.ts.map +0 -1
  669. package/dist/utils/utils.js +0 -24
  670. package/dist/utils/utils.js.map +0 -1
  671. package/dist/utils/wait.d.ts +0 -3
  672. package/dist/utils/wait.d.ts.map +0 -1
  673. package/dist/utils/wait.js +0 -9
  674. package/dist/utils/wait.js.map +0 -1
  675. package/dist/utils/waitress.d.ts +0 -22
  676. package/dist/utils/waitress.d.ts.map +0 -1
  677. package/dist/utils/waitress.js +0 -69
  678. package/dist/utils/waitress.js.map +0 -1
  679. package/dist/zspec/consts.d.ts +0 -71
  680. package/dist/zspec/consts.d.ts.map +0 -1
  681. package/dist/zspec/consts.js +0 -75
  682. package/dist/zspec/consts.js.map +0 -1
  683. package/dist/zspec/enums.d.ts +0 -19
  684. package/dist/zspec/enums.d.ts.map +0 -1
  685. package/dist/zspec/enums.js +0 -27
  686. package/dist/zspec/enums.js.map +0 -1
  687. package/dist/zspec/index.d.ts +0 -4
  688. package/dist/zspec/index.d.ts.map +0 -1
  689. package/dist/zspec/index.js +0 -43
  690. package/dist/zspec/index.js.map +0 -1
  691. package/dist/zspec/tstypes.d.ts +0 -19
  692. package/dist/zspec/tstypes.d.ts.map +0 -1
  693. package/dist/zspec/tstypes.js +0 -3
  694. package/dist/zspec/tstypes.js.map +0 -1
  695. package/dist/zspec/utils.d.ts +0 -90
  696. package/dist/zspec/utils.d.ts.map +0 -1
  697. package/dist/zspec/utils.js +0 -269
  698. package/dist/zspec/utils.js.map +0 -1
  699. package/dist/zspec/zcl/buffaloZcl.d.ts +0 -41
  700. package/dist/zspec/zcl/buffaloZcl.d.ts.map +0 -1
  701. package/dist/zspec/zcl/buffaloZcl.js +0 -859
  702. package/dist/zspec/zcl/buffaloZcl.js.map +0 -1
  703. package/dist/zspec/zcl/definition/cluster.d.ts +0 -3
  704. package/dist/zspec/zcl/definition/cluster.d.ts.map +0 -1
  705. package/dist/zspec/zcl/definition/cluster.js +0 -5145
  706. package/dist/zspec/zcl/definition/cluster.js.map +0 -1
  707. package/dist/zspec/zcl/definition/consts.d.ts +0 -9
  708. package/dist/zspec/zcl/definition/consts.d.ts.map +0 -1
  709. package/dist/zspec/zcl/definition/consts.js +0 -27
  710. package/dist/zspec/zcl/definition/consts.js.map +0 -1
  711. package/dist/zspec/zcl/definition/enums.d.ts +0 -177
  712. package/dist/zspec/zcl/definition/enums.d.ts.map +0 -1
  713. package/dist/zspec/zcl/definition/enums.js +0 -187
  714. package/dist/zspec/zcl/definition/enums.js.map +0 -1
  715. package/dist/zspec/zcl/definition/foundation.d.ts +0 -10
  716. package/dist/zspec/zcl/definition/foundation.d.ts.map +0 -1
  717. package/dist/zspec/zcl/definition/foundation.js +0 -272
  718. package/dist/zspec/zcl/definition/foundation.js.map +0 -1
  719. package/dist/zspec/zcl/definition/manufacturerCode.d.ts +0 -727
  720. package/dist/zspec/zcl/definition/manufacturerCode.d.ts.map +0 -1
  721. package/dist/zspec/zcl/definition/manufacturerCode.js +0 -732
  722. package/dist/zspec/zcl/definition/manufacturerCode.js.map +0 -1
  723. package/dist/zspec/zcl/definition/status.d.ts +0 -69
  724. package/dist/zspec/zcl/definition/status.d.ts.map +0 -1
  725. package/dist/zspec/zcl/definition/status.js +0 -74
  726. package/dist/zspec/zcl/definition/status.js.map +0 -1
  727. package/dist/zspec/zcl/definition/tstype.d.ts +0 -114
  728. package/dist/zspec/zcl/definition/tstype.d.ts.map +0 -1
  729. package/dist/zspec/zcl/definition/tstype.js +0 -3
  730. package/dist/zspec/zcl/definition/tstype.js.map +0 -1
  731. package/dist/zspec/zcl/index.d.ts +0 -11
  732. package/dist/zspec/zcl/index.d.ts.map +0 -1
  733. package/dist/zspec/zcl/index.js +0 -57
  734. package/dist/zspec/zcl/index.js.map +0 -1
  735. package/dist/zspec/zcl/utils.d.ts +0 -10
  736. package/dist/zspec/zcl/utils.d.ts.map +0 -1
  737. package/dist/zspec/zcl/utils.js +0 -293
  738. package/dist/zspec/zcl/utils.js.map +0 -1
  739. package/dist/zspec/zcl/zclFrame.d.ts +0 -36
  740. package/dist/zspec/zcl/zclFrame.d.ts.map +0 -1
  741. package/dist/zspec/zcl/zclFrame.js +0 -306
  742. package/dist/zspec/zcl/zclFrame.js.map +0 -1
  743. package/dist/zspec/zcl/zclHeader.d.ts +0 -16
  744. package/dist/zspec/zcl/zclHeader.d.ts.map +0 -1
  745. package/dist/zspec/zcl/zclHeader.js +0 -88
  746. package/dist/zspec/zcl/zclHeader.js.map +0 -1
  747. package/dist/zspec/zcl/zclStatusError.d.ts +0 -6
  748. package/dist/zspec/zcl/zclStatusError.d.ts.map +0 -1
  749. package/dist/zspec/zcl/zclStatusError.js +0 -13
  750. package/dist/zspec/zcl/zclStatusError.js.map +0 -1
  751. package/dist/zspec/zdo/buffaloZdo.d.ts +0 -413
  752. package/dist/zspec/zdo/buffaloZdo.d.ts.map +0 -1
  753. package/dist/zspec/zdo/buffaloZdo.js +0 -1935
  754. package/dist/zspec/zdo/buffaloZdo.js.map +0 -1
  755. package/dist/zspec/zdo/definition/clusters.d.ts +0 -624
  756. package/dist/zspec/zdo/definition/clusters.d.ts.map +0 -1
  757. package/dist/zspec/zdo/definition/clusters.js +0 -686
  758. package/dist/zspec/zdo/definition/clusters.js.map +0 -1
  759. package/dist/zspec/zdo/definition/consts.d.ts +0 -13
  760. package/dist/zspec/zdo/definition/consts.d.ts.map +0 -1
  761. package/dist/zspec/zdo/definition/consts.js +0 -16
  762. package/dist/zspec/zdo/definition/consts.js.map +0 -1
  763. package/dist/zspec/zdo/definition/enums.d.ts +0 -85
  764. package/dist/zspec/zdo/definition/enums.d.ts.map +0 -1
  765. package/dist/zspec/zdo/definition/enums.js +0 -103
  766. package/dist/zspec/zdo/definition/enums.js.map +0 -1
  767. package/dist/zspec/zdo/definition/status.d.ts +0 -99
  768. package/dist/zspec/zdo/definition/status.d.ts.map +0 -1
  769. package/dist/zspec/zdo/definition/status.js +0 -108
  770. package/dist/zspec/zdo/definition/status.js.map +0 -1
  771. package/dist/zspec/zdo/definition/tstypes.d.ts +0 -955
  772. package/dist/zspec/zdo/definition/tstypes.d.ts.map +0 -1
  773. package/dist/zspec/zdo/definition/tstypes.js +0 -4
  774. package/dist/zspec/zdo/definition/tstypes.js.map +0 -1
  775. package/dist/zspec/zdo/index.d.ts +0 -8
  776. package/dist/zspec/zdo/index.d.ts.map +0 -1
  777. package/dist/zspec/zdo/index.js +0 -51
  778. package/dist/zspec/zdo/index.js.map +0 -1
  779. package/dist/zspec/zdo/utils.d.ts +0 -24
  780. package/dist/zspec/zdo/utils.d.ts.map +0 -1
  781. package/dist/zspec/zdo/utils.js +0 -74
  782. package/dist/zspec/zdo/utils.js.map +0 -1
  783. package/dist/zspec/zdo/zdoStatusError.d.ts +0 -6
  784. package/dist/zspec/zdo/zdoStatusError.d.ts.map +0 -1
  785. package/dist/zspec/zdo/zdoStatusError.js +0 -13
  786. package/dist/zspec/zdo/zdoStatusError.js.map +0 -1
@@ -1,2340 +0,0 @@
1
- "use strict";
2
- /* istanbul ignore file */
3
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
- if (k2 === undefined) k2 = k;
5
- var desc = Object.getOwnPropertyDescriptor(m, k);
6
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
- desc = { enumerable: true, get: function() { return m[k]; } };
8
- }
9
- Object.defineProperty(o, k2, desc);
10
- }) : (function(o, m, k, k2) {
11
- if (k2 === undefined) k2 = k;
12
- o[k2] = m[k];
13
- }));
14
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
- Object.defineProperty(o, "default", { enumerable: true, value: v });
16
- }) : function(o, v) {
17
- o["default"] = v;
18
- });
19
- var __importStar = (this && this.__importStar) || (function () {
20
- var ownKeys = function(o) {
21
- ownKeys = Object.getOwnPropertyNames || function (o) {
22
- var ar = [];
23
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
- return ar;
25
- };
26
- return ownKeys(o);
27
- };
28
- return function (mod) {
29
- if (mod && mod.__esModule) return mod;
30
- var result = {};
31
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
- __setModuleDefault(result, mod);
33
- return result;
34
- };
35
- })();
36
- Object.defineProperty(exports, "__esModule", { value: true });
37
- exports.EmberZllKeyIndex = exports.EmberZllState = exports.EmberConcentratorType = exports.EmberZdoConfigurationFlags = exports.EmberJoinMethod = exports.EmberCounterType = exports.EmberKeyStatus = exports.EmberDeviceUpdate = exports.EmberKeyStructBitmask = exports.EmberKeyType = exports.EmberCurrentSecurityBitmask = exports.EmberInitialSecurityBitmask = exports.EmberJoinDecision = exports.EzspNetworkScanType = exports.EmberApsOption = exports.EmberBindingType = exports.EmberMacPassthroughType = exports.EmberOutgoingMessageType = exports.EmberIncomingMessageType = exports.EmberNetworkStatus = exports.EmberNodeType = exports.EmberEventUnits = exports.EmberStackError = exports.SLStatus = exports.EmberStatus = exports.EzspStatus = exports.EzspMfgTokenId = exports.EzspDecisionId = exports.EzspPolicyId = exports.EmberConfigTxPowerMode = exports.EzspEndpointFlags = exports.EzspExtendedValueId = exports.EzspValueId = exports.EzspConfigId = exports.Bool = exports.SecureEzspSessionId = exports.SecureEzspRandomNumber = exports.EmberGpKeyType = exports.EmberGpSecurityLevel = exports.SecureEzspSecurityLevel = exports.SecureEzspSecurityType = exports.EmberLibraryStatus = exports.EmberEUI64 = exports.EmberMulticastId = exports.EmberPanId = exports.EmberNodeId = exports.EmberRf4ceApplicationCapabilities = exports.EmberRf4ceNodeCapabilities = exports.EmberRf4ceTxOption = exports.NcpResetCode = void 0;
38
- exports.EmberDerivedKeyType = exports.EzspDecisionBitmask = exports.EmberZDOCmd = exports.EmberNetworkInitBitmask = exports.EzspSourceRouteOverheadInformation = exports.EzspZllNetworkOperation = void 0;
39
- const basic = __importStar(require("./basic"));
40
- const basic_1 = require("./basic");
41
- // console.assert(basic.uint8_t);
42
- class NcpResetCode extends basic.uint8_t {
43
- //Reset and Error Codes for NCP
44
- static RESET_UNKNOWN_REASON = 0x00;
45
- static RESET_EXTERNAL = 0x01;
46
- static RESET_POWER_ON = 0x02;
47
- static RESET_WATCHDOG = 0x03;
48
- static RESET_ASSERT = 0x06;
49
- static RESET_BOOTLOADER = 0x09;
50
- static RESET_SOFTWARE = 0x0b;
51
- static ERROR_EXCEEDED_MAXIMUM_ACK_TIMEOUT_COUNT = 0x51;
52
- static ERROR_UNKNOWN_EM3XX_ERROR = 0x80;
53
- }
54
- exports.NcpResetCode = NcpResetCode;
55
- class EmberRf4ceTxOption extends basic.uint8_t {
56
- }
57
- exports.EmberRf4ceTxOption = EmberRf4ceTxOption;
58
- class EmberRf4ceNodeCapabilities extends basic.uint8_t {
59
- }
60
- exports.EmberRf4ceNodeCapabilities = EmberRf4ceNodeCapabilities;
61
- class EmberRf4ceApplicationCapabilities extends basic.uint8_t {
62
- }
63
- exports.EmberRf4ceApplicationCapabilities = EmberRf4ceApplicationCapabilities;
64
- class EmberNodeId extends basic.uint16_t {
65
- }
66
- exports.EmberNodeId = EmberNodeId;
67
- class EmberPanId extends basic.uint16_t {
68
- }
69
- exports.EmberPanId = EmberPanId;
70
- class EmberMulticastId extends basic.uint16_t {
71
- }
72
- exports.EmberMulticastId = EmberMulticastId;
73
- class EmberEUI64 extends (0, basic_1.fixed_list)(8, basic.uint8_t) {
74
- _value;
75
- constructor(_value) {
76
- super();
77
- this._value = _value;
78
- if (typeof _value === 'string') {
79
- if (_value.startsWith('0x'))
80
- _value = _value.slice(2);
81
- if (_value.length !== 16) {
82
- throw new Error('Incorrect value passed');
83
- }
84
- this._value = Buffer.from(_value, 'hex');
85
- }
86
- else {
87
- if (_value.length !== 8) {
88
- throw new Error('Incorrect value passed');
89
- }
90
- this._value = _value;
91
- }
92
- }
93
- /* eslint-disable-next-line @typescript-eslint/no-explicit-any*/
94
- static deserialize(cls, data) {
95
- const arr = super.deserialize(cls, data);
96
- const r = arr[0];
97
- data = arr[1];
98
- return [Buffer.from(r).reverse(), data];
99
- }
100
- /* eslint-disable-next-line @typescript-eslint/no-explicit-any*/
101
- static serialize(cls, value) {
102
- if (value instanceof EmberEUI64) {
103
- value = value.value;
104
- }
105
- // console.assert(cls._length === value.length);
106
- const val = Buffer.from(value)
107
- .reverse()
108
- .map((i) => basic.uint8_t.serialize(basic.uint8_t, i)[0]);
109
- return Buffer.from(val);
110
- }
111
- /* eslint-disable-next-line @typescript-eslint/no-explicit-any*/
112
- get value() {
113
- return this._value;
114
- }
115
- toString() {
116
- /* eslint-disable-next-line @typescript-eslint/no-explicit-any*/
117
- return Buffer.from(this._value).toString('hex');
118
- }
119
- }
120
- exports.EmberEUI64 = EmberEUI64;
121
- class EmberLibraryStatus extends basic.uint8_t {
122
- }
123
- exports.EmberLibraryStatus = EmberLibraryStatus;
124
- class SecureEzspSecurityType extends basic.uint32_t {
125
- }
126
- exports.SecureEzspSecurityType = SecureEzspSecurityType;
127
- class SecureEzspSecurityLevel extends basic.uint8_t {
128
- }
129
- exports.SecureEzspSecurityLevel = SecureEzspSecurityLevel;
130
- class EmberGpSecurityLevel extends basic.uint8_t {
131
- }
132
- exports.EmberGpSecurityLevel = EmberGpSecurityLevel;
133
- class EmberGpKeyType extends basic.uint8_t {
134
- }
135
- exports.EmberGpKeyType = EmberGpKeyType;
136
- class SecureEzspRandomNumber extends basic.uint64_t {
137
- }
138
- exports.SecureEzspRandomNumber = SecureEzspRandomNumber;
139
- class SecureEzspSessionId extends basic.uint64_t {
140
- }
141
- exports.SecureEzspSessionId = SecureEzspSessionId;
142
- class Bool extends basic.uint8_t {
143
- static false = 0x00; // An alias for zero, used for clarity.
144
- static true = 0x01; // An alias for one, used for clarity.
145
- }
146
- exports.Bool = Bool;
147
- class EzspConfigId extends basic.uint8_t {
148
- // Identifies a configuration value.
149
- // The number of packet buffers available to the stack. When set to the
150
- // special value 0xFF, the NCP will allocate all remaining configuration RAM
151
- // towards packet buffers, such that the resulting count will be the largest
152
- // whole number of packet buffers that can fit into the available memory.
153
- static CONFIG_PACKET_BUFFER_COUNT = 0x01;
154
- // The maximum number of router neighbors the stack can keep track of. A
155
- // neighbor is a node within radio range.
156
- static CONFIG_NEIGHBOR_TABLE_SIZE = 0x02;
157
- // The maximum number of APS retried messages the stack can be transmitting
158
- // at any time.
159
- static CONFIG_APS_UNICAST_MESSAGE_COUNT = 0x03;
160
- // The maximum number of non-volatile bindings supported by the stack.
161
- static CONFIG_BINDING_TABLE_SIZE = 0x04;
162
- // The maximum number of EUI64 to network address associations that the
163
- // stack can maintain for the application. (Note, the total number of such
164
- // address associations maintained by the NCP is the sum of the value of
165
- // this setting and the value of ::CONFIG_TRUST_CENTER_ADDRESS_CACHE_SIZE).
166
- static CONFIG_ADDRESS_TABLE_SIZE = 0x05;
167
- // The maximum number of multicast groups that the device may be a member
168
- // of.
169
- static CONFIG_MULTICAST_TABLE_SIZE = 0x06;
170
- // The maximum number of destinations to which a node can route messages.
171
- // This includes both messages originating at this node and those relayed
172
- // for others.
173
- static CONFIG_ROUTE_TABLE_SIZE = 0x07;
174
- // The number of simultaneous route discoveries that a node will support.
175
- static CONFIG_DISCOVERY_TABLE_SIZE = 0x08;
176
- // The size of the alarm broadcast buffer.
177
- static CONFIG_BROADCAST_ALARM_DATA_SIZE = 0x09;
178
- // The size of the unicast alarm buffers allocated for end device children.
179
- static CONFIG_UNICAST_ALARM_DATA_SIZE = 0x0a;
180
- // Specifies the stack profile.
181
- static CONFIG_STACK_PROFILE = 0x0c;
182
- // The security level used for security at the MAC and network layers. The
183
- // supported values are 0 (no security) and 5 (payload is encrypted and a
184
- // four-byte MIC is used for authentication).
185
- static CONFIG_SECURITY_LEVEL = 0x0d;
186
- // The maximum number of hops for a message.
187
- static CONFIG_MAX_HOPS = 0x10;
188
- // The maximum number of end device children that a router will support.
189
- static CONFIG_MAX_END_DEVICE_CHILDREN = 0x11;
190
- // The maximum amount of time that the MAC will hold a message for indirect
191
- // transmission to a child.
192
- static CONFIG_INDIRECT_TRANSMISSION_TIMEOUT = 0x12;
193
- // The maximum amount of time that an end device child can wait between
194
- // polls. If no poll is heard within this timeout, then the parent removes
195
- // the end device from its tables.
196
- static CONFIG_END_DEVICE_POLL_TIMEOUT = 0x13;
197
- // The maximum amount of time that a mobile node can wait between polls. If
198
- // no poll is heard within this timeout, then the parent removes the mobile
199
- // node from its tables.
200
- static CONFIG_MOBILE_NODE_POLL_TIMEOUT = 0x14;
201
- // The number of child table entries reserved for use only by mobile nodes.
202
- static CONFIG_RESERVED_MOBILE_CHILD_ENTRIES = 0x15;
203
- // Enables boost power mode and/or the alternate transmitter output.
204
- static CONFIG_TX_POWER_MODE = 0x17;
205
- // 0: Allow this node to relay messages. 1: Prevent this node from relaying
206
- // messages.
207
- static CONFIG_DISABLE_RELAY = 0x18;
208
- // The maximum number of EUI64 to network address associations that the
209
- // Trust Center can maintain. These address cache entries are reserved for
210
- // and reused by the Trust Center when processing device join/rejoin
211
- // authentications. This cache size limits the number of overlapping joins
212
- // the Trust Center can process within a narrow time window (e.g. two
213
- // seconds), and thus should be set to the maximum number of near
214
- // simultaneous joins the Trust Center is expected to accommodate. (Note,
215
- // the total number of such address associations maintained by the NCP is
216
- // the sum of the value of this setting and the value of
217
- // ::CONFIG_ADDRESS_TABLE_SIZE.)
218
- static CONFIG_TRUST_CENTER_ADDRESS_CACHE_SIZE = 0x19;
219
- // The size of the source route table.
220
- static CONFIG_SOURCE_ROUTE_TABLE_SIZE = 0x1a;
221
- // The units used for timing out end devices on their parents.
222
- static CONFIG_END_DEVICE_POLL_TIMEOUT_SHIFT = 0x1b;
223
- // The number of blocks of a fragmented message that can be sent in a single
224
- // window.
225
- static CONFIG_FRAGMENT_WINDOW_SIZE = 0x1c;
226
- // The time the stack will wait (in milliseconds) between sending blocks of
227
- // a fragmented message.
228
- static CONFIG_FRAGMENT_DELAY_MS = 0x1d;
229
- // The size of the Key Table used for storing individual link keys (if the
230
- // device is a Trust Center) or Application Link Keys (if the device is a
231
- // normal node).
232
- static CONFIG_KEY_TABLE_SIZE = 0x1e;
233
- // The APS ACK timeout value. The stack waits this amount of time between
234
- // resends of APS retried messages.
235
- static CONFIG_APS_ACK_TIMEOUT = 0x1f;
236
- // The duration of an active scan, in the units used by the 15.4 scan
237
- // parameter (((1 << duration) + 1) * 15ms). This also controls the jitter
238
- // used when responding to a beacon request.
239
- static CONFIG_ACTIVE_SCAN_DURATION = 0x20;
240
- // The time the coordinator will wait (in seconds) for a second end device
241
- // bind request to arrive.
242
- static CONFIG_END_DEVICE_BIND_TIMEOUT = 0x21;
243
- // The number of PAN id conflict reports that must be received by the
244
- // network manager within one minute to trigger a PAN id change.
245
- static CONFIG_PAN_ID_CONFLICT_REPORT_THRESHOLD = 0x22;
246
- // The timeout value in minutes for how long the Trust Center or a normal
247
- // node waits for the ZigBee Request Key to complete. On the Trust Center
248
- // this controls whether or not the device buffers the request, waiting for
249
- // a matching pair of ZigBee Request Key. If the value is non-zero, the
250
- // Trust Center buffers and waits for that amount of time. If the value is
251
- // zero, the Trust Center does not buffer the request and immediately
252
- // responds to the request. Zero is the most compliant behavior.
253
- static CONFIG_REQUEST_KEY_TIMEOUT = 0x24;
254
- // This value indicates the size of the runtime modifiable certificate
255
- // table. Normally certificates are stored in MFG tokens but this table can
256
- // be used to field upgrade devices with new Smart Energy certificates.
257
- // This value cannot be set, it can only be queried.
258
- static CONFIG_CERTIFICATE_TABLE_SIZE = 0x29;
259
- // This is a bitmask that controls which incoming ZDO request messages are
260
- // passed to the application. The bits are defined in the
261
- // EmberZdoConfigurationFlags enumeration. To see if the application is
262
- // required to send a ZDO response in reply to an incoming message, the
263
- // application must check the APS options bitfield within the
264
- // incomingMessageHandler callback to see if the
265
- // APS_OPTION_ZDO_RESPONSE_REQUIRED flag is set.
266
- static CONFIG_APPLICATION_ZDO_FLAGS = 0x2a;
267
- // The maximum number of broadcasts during a single broadcast timeout
268
- // period.
269
- static CONFIG_BROADCAST_TABLE_SIZE = 0x2b;
270
- // The size of the MAC filter list table.
271
- static CONFIG_MAC_FILTER_TABLE_SIZE = 0x2c;
272
- // The number of supported networks.
273
- static CONFIG_SUPPORTED_NETWORKS = 0x2d;
274
- // Whether multicasts are sent to the RxOnWhenIdle=true address (0xFFFD) or
275
- // the sleepy broadcast address (0xFFFF). The RxOnWhenIdle=true address is
276
- // the ZigBee compliant destination for multicasts.
277
- static CONFIG_SEND_MULTICASTS_TO_SLEEPY_ADDRESS = 0x2e;
278
- // ZLL group address initial configuration.
279
- static CONFIG_ZLL_GROUP_ADDRESSES = 0x2f;
280
- // ZLL rssi threshold initial configuration.
281
- static CONFIG_ZLL_RSSI_THRESHOLD = 0x30;
282
- // The maximum number of pairings supported by the stack. Controllers
283
- // must support at least one pairing table entry while targets must
284
- // support at least five.
285
- static CONFIG_RF4CE_PAIRING_TABLE_SIZE = 0x31;
286
- // The maximum number of outgoing RF4CE packets supported by the stack.
287
- static CONFIG_RF4CE_PENDING_OUTGOING_PACKET_TABLE_SIZE = 0x32;
288
- // Toggles the mtorr flow control in the stack.
289
- static CONFIG_MTORR_FLOW_CONTROL = 0x33;
290
- // Setting the retry queue size.
291
- static CONFIG_RETRY_QUEUE_SIZE = 0x34;
292
- // Setting the new broadcast entry threshold.
293
- static CONFIG_NEW_BROADCAST_ENTRY_THRESHOLD = 0x35;
294
- // The length of time, in seconds, that a trust center will store a
295
- // transient link key that a device can use to join its network. A transient
296
- // key is added with a call to emberAddTransientLinkKey. After the transient
297
- // key is added, it will be removed once this amount of time has passed. A
298
- // joining device will not be able to use that key to join until it is added
299
- // again on the trust center. The default value is 300 seconds, i.e., 5
300
- // minutes.
301
- static CONFIG_TRANSIENT_KEY_TIMEOUT_S = 0x36;
302
- // The number of passive acknowledgements to record from neighbors before we stop
303
- // re-transmitting broadcasts
304
- static CONFIG_BROADCAST_MIN_ACKS_NEEDED = 0x37;
305
- // The length of time, in seconds, that a trust center will allow a Trust Center
306
- // (insecure) rejoin for a device that is using the well-known link key. This timeout
307
- // takes effect once rejoins using the well-known key has been allowed. This command
308
- // updates the emAllowTcRejoinsUsingWellKnownKeyTimeoutSec value.
309
- static CONFIG_TC_REJOINS_USING_WELL_KNOWN_KEY_TIMEOUT_S = 0x38;
310
- }
311
- exports.EzspConfigId = EzspConfigId;
312
- class EzspValueId extends basic.uint8_t {
313
- // Identifies a value.
314
- // The contents of the node data stack token.
315
- static VALUE_TOKEN_STACK_NODE_DATA = 0x00;
316
- // The types of MAC passthrough messages that the host wishes to receive.
317
- static VALUE_MAC_PASSTHROUGH_FLAGS = 0x01;
318
- // The source address used to filter legacy EmberNet messages when the
319
- // MAC_PASSTHROUGH_EMBERNET_SOURCE flag is set in
320
- // VALUE_MAC_PASSTHROUGH_FLAGS.
321
- static VALUE_EMBERNET_PASSTHROUGH_SOURCE_ADDRESS = 0x02;
322
- // The number of available message buffers.
323
- static VALUE_FREE_BUFFERS = 0x03;
324
- // Selects sending synchronous callbacks in ezsp-uart.
325
- static VALUE_UART_SYNCH_CALLBACKS = 0x04;
326
- // The maximum incoming transfer size for the local node.
327
- static VALUE_MAXIMUM_INCOMING_TRANSFER_SIZE = 0x05;
328
- // The maximum outgoing transfer size for the local node.
329
- static VALUE_MAXIMUM_OUTGOING_TRANSFER_SIZE = 0x06;
330
- // A boolean indicating whether stack tokens are written to persistent
331
- // storage as they change.
332
- static VALUE_STACK_TOKEN_WRITING = 0x07;
333
- // A read-only value indicating whether the stack is currently performing a
334
- // rejoin.
335
- static VALUE_STACK_IS_PERFORMING_REJOIN = 0x08;
336
- // A list of EmberMacFilterMatchData values.
337
- static VALUE_MAC_FILTER_LIST = 0x09;
338
- // The Ember Extended Security Bitmask.
339
- static VALUE_EXTENDED_SECURITY_BITMASK = 0x0a;
340
- // The node short ID.
341
- static VALUE_NODE_SHORT_ID = 0x0b;
342
- // The descriptor capability of the local node.
343
- static VALUE_DESCRIPTOR_CAPABILITY = 0x0c;
344
- // The stack device request sequence number of the local node.
345
- static VALUE_STACK_DEVICE_REQUEST_SEQUENCE_NUMBER = 0x0d;
346
- // Enable or disable radio hold-off.
347
- static VALUE_RADIO_HOLD_OFF = 0x0e;
348
- // The flags field associated with the endpoint data.
349
- static VALUE_ENDPOINT_FLAGS = 0x0f;
350
- // Enable/disable the Mfg security config key settings.
351
- static VALUE_MFG_SECURITY_CONFIG = 0x10;
352
- // Retrieves the version information from the stack on the NCP.
353
- static VALUE_VERSION_INFO = 0x11;
354
- // This will get/set the rejoin reason noted by the host for a subsequent
355
- // call to emberFindAndRejoinNetwork(). After a call to
356
- // emberFindAndRejoinNetwork() the host's rejoin reason will be set to
357
- // REJOIN_REASON_NONE. The NCP will store the rejoin reason used by the
358
- // call to emberFindAndRejoinNetwork()
359
- static VALUE_NEXT_HOST_REJOIN_REASON = 0x12;
360
- // This is the reason that the last rejoin took place. This value may only
361
- // be retrieved, not set. The rejoin may have been initiated by the stack
362
- // (NCP) or the application (host). If a host initiated a rejoin the reason
363
- // will be set by default to REJOIN_DUE_TO_APP_EVENT_1. If the application
364
- // wishes to denote its own rejoin reasons it can do so by calling
365
- // ezspSetValue(VALUE_HOST_REJOIN_REASON, REJOIN_DUE_TO_APP_EVENT_X). X is a
366
- // number corresponding to one of the app events defined. If the NCP
367
- // initiated a rejoin it will record this value internally for retrieval by
368
- // ezspGetValue(VALUE_REAL_REJOIN_REASON).
369
- static VALUE_LAST_REJOIN_REASON = 0x13;
370
- // The next ZigBee sequence number.
371
- static VALUE_NEXT_ZIGBEE_SEQUENCE_NUMBER = 0x14;
372
- // CCA energy detect threshold for radio.
373
- static VALUE_CCA_THRESHOLD = 0x15;
374
- // The threshold value for a counter
375
- static VALUE_SET_COUNTER_THRESHOLD = 0x17;
376
- // Resets all counters thresholds to 0xFF
377
- static VALUE_RESET_COUNTER_THRESHOLDS = 0x18;
378
- // Clears all the counters
379
- static VALUE_CLEAR_COUNTERS = 0x19;
380
- // The device RF4CE base channel
381
- static VALUE_RF4CE_BASE_CHANNEL = 0x1a;
382
- // The RF4CE device types supported by the node
383
- static VALUE_RF4CE_SUPPORTED_DEVICE_TYPES_LIST = 0x1b;
384
- // The RF4CE profiles supported by the node
385
- static VALUE_RF4CE_SUPPORTED_PROFILES_LIST = 0x1c;
386
- // Setting this byte enables R21 behavior on the NCP.
387
- static VALUE_ENABLE_R21_BEHAVIOR = 0x29;
388
- // Configure the antenna mode(0-primary,1-secondary,2- toggle on tx ack
389
- // fail).
390
- static VALUE_ANTENNA_MODE = 0x30;
391
- // The GDP binding recipient parameters
392
- static VALUE_RF4CE_GDP_BINDING_RECIPIENT_PARAMETERS = 0x1d;
393
- // The GDP binding push button stimulus received pending flag
394
- static VALUE_RF4CE_GDP_PUSH_BUTTON_STIMULUS_RECEIVED_PENDING_FLAG = 0x1e;
395
- // The GDP originator proxy flag in the advanced binding options
396
- static VALUE_RF4CE_GDP_BINDING_PROXY_FLAG = 0x1f;
397
- // The GDP application specific user s join unti_VALUE_RF4CE_MSO_USER_STRING
398
- // 0x21 The MSO user string
399
- static VALUE_RF4CE_GDP_APPLICATION_SPECIFIC_USER_STRING = 0x20;
400
- // The MSO user string
401
- static VALUE_RF4CE_MSO_USER_STRING = 0x21;
402
- // The MSO binding recipient parameters
403
- static VALUE_RF4CE_MSO_BINDING_RECIPIENT_PARAMETERS = 0x22;
404
- // The NWK layer security frame counter value
405
- static VALUE_NWK_FRAME_COUNTER = 0x23;
406
- // The APS layer security frame counter value
407
- static VALUE_APS_FRAME_COUNTER = 0x24;
408
- // Sets the device type to use on the next rejoin using device type
409
- static VALUE_RETRY_DEVICE_TYPE = 0x25;
410
- // The device RF4CE base channel
411
- static VALUE_RF4CE_BASE_CHANNEL2 = 0x26;
412
- // The RF4CE device types supported by the node
413
- static VALUE_RF4CE_SUPPORTED_DEVICE_TYPES_LIST2 = 0x27;
414
- // The RF4CE profiles supported by the node
415
- static VALUE_RF4CE_SUPPORTED_PROFILES_LIST2 = 0x28;
416
- // Enable or disable packet traffic arbitration.
417
- static VALUE_ENABLE_PTA = 0x31;
418
- // Set packet traffic arbitration configuration options.
419
- static VALUE_PTA_OPTIONS = 0x32;
420
- // Configure manufacturing library options(0-non-CSMA transmits,1-CSMA transmits).
421
- static VALUE_MFGLIB_OPTIONS = 0x33;
422
- static VALUE_END_DEVICE_KEEP_ALIVE_SUPPORT_MODE = 0x3f;
423
- }
424
- exports.EzspValueId = EzspValueId;
425
- class EzspExtendedValueId extends basic.uint8_t {
426
- // Identifies a value based on specified characteristics. Each set of
427
- // characteristics is unique to that value and is specified during the call
428
- // to get the extended value.
429
- // The flags field associated with the specified endpoint.
430
- static EXTENDED_VALUE_ENDPOINT_FLAGS = 0x00;
431
- // This is the reason for the node to leave the network as well as the
432
- // device that told it to leave. The leave reason is the 1st byte of the
433
- // value while the node ID is the 2nd and 3rd byte. If the leave was caused
434
- // due to an API call rather than an over the air message, the node ID will
435
- // be UNKNOWN_NODE_ID (0xFFFD).
436
- static EXTENDED_VALUE_LAST_LEAVE_REASON = 0x01;
437
- // This number of bytes of overhead required in the network frame for source
438
- // routing to a particular destination.
439
- static EXTENDED_VALUE_GET_SOURCE_ROUTE_OVERHEAD = 0x02;
440
- }
441
- exports.EzspExtendedValueId = EzspExtendedValueId;
442
- class EzspEndpointFlags extends basic.uint16_t {
443
- // Flags associated with the endpoint data configured on the NCP.
444
- // Indicates that the endpoint is disabled and NOT discoverable via ZDO.
445
- static ENDPOINT_DISABLED = 0x00;
446
- // Indicates that the endpoint is enabled and discoverable via ZDO.
447
- static ENDPOINT_ENABLED = 0x01;
448
- }
449
- exports.EzspEndpointFlags = EzspEndpointFlags;
450
- class EmberConfigTxPowerMode extends basic.uint16_t {
451
- // Values for CONFIG_TX_POWER_MODE.
452
- // Normal power mode and bi-directional RF transmitter output.
453
- static TX_POWER_MODE_DEFAULT = 0x00;
454
- // Enable boost power mode. This is a high performance radio mode which
455
- // offers increased receive sensitivity and transmit power at the cost of an
456
- // increase in power consumption.
457
- static TX_POWER_MODE_BOOST = 0x01;
458
- // Enable the alternate transmitter output. This allows for simplified
459
- // connection to an external power amplifier via the RF_TX_ALT_P and
460
- // RF_TX_ALT_N pins. TX_POWER_MODE_BOOST_AND_ALTERNATE 0x03 Enable both
461
- // boost mode and the alternate transmitter output.
462
- static TX_POWER_MODE_ALTERNATE = 0x02;
463
- }
464
- exports.EmberConfigTxPowerMode = EmberConfigTxPowerMode;
465
- class EzspPolicyId extends basic.uint8_t {
466
- // Identifies a policy.
467
- // Controls trust center behavior.
468
- static TRUST_CENTER_POLICY = 0x00;
469
- // Controls how external binding modification requests are handled.
470
- static BINDING_MODIFICATION_POLICY = 0x01;
471
- // Controls whether the Host supplies unicast replies.
472
- static UNICAST_REPLIES_POLICY = 0x02;
473
- // Controls whether pollHandler callbacks are generated.
474
- static POLL_HANDLER_POLICY = 0x03;
475
- // Controls whether the message contents are included in the
476
- // messageSentHandler callback.
477
- static MESSAGE_CONTENTS_IN_CALLBACK_POLICY = 0x04;
478
- // Controls whether the Trust Center will respond to Trust Center link key
479
- // requests.
480
- static TC_KEY_REQUEST_POLICY = 0x05;
481
- // Controls whether the Trust Center will respond to application link key
482
- // requests.
483
- static APP_KEY_REQUEST_POLICY = 0x06;
484
- // Controls whether ZigBee packets that appear invalid are automatically
485
- // dropped by the stack. A counter will be incremented when this occurs.
486
- static PACKET_VALIDATE_LIBRARY_POLICY = 0x07;
487
- // Controls whether the stack will process ZLL messages.
488
- static ZLL_POLICY = 0x08;
489
- static TC_REJOINS_USING_WELL_KNOWN_KEY_POLICY = 0x09;
490
- }
491
- exports.EzspPolicyId = EzspPolicyId;
492
- class EzspDecisionId extends basic.uint16_t {
493
- // Identifies a policy decision.
494
- // Send the network key in the clear to all joining and rejoining devices.
495
- static ALLOW_JOINS = 0x00;
496
- // Send the network key in the clear to all joining devices. Rejoining
497
- // devices are sent the network key encrypted with their trust center link
498
- // key. The trust center and any rejoining device are assumed to share a
499
- // link key, either preconfigured or obtained under a previous policy.
500
- static ALLOW_JOINS_REJOINS_HAVE_LINK_KEY = 0x04;
501
- // Send the network key encrypted with the joining or rejoining device's
502
- // trust center link key. The trust center and any joining or rejoining
503
- // device are assumed to share a link key, either preconfigured or obtained
504
- // under a previous policy. This is the default value for the
505
- // TRUST_CENTER_POLICY.
506
- static ALLOW_PRECONFIGURED_KEY_JOINS = 0x01;
507
- // Send the network key encrypted with the rejoining device's trust center
508
- // link key. The trust center and any rejoining device are assumed to share
509
- // a link key, either preconfigured or obtained under a previous policy. No
510
- // new devices are allowed to join.
511
- static ALLOW_REJOINS_ONLY = 0x02;
512
- // Reject all unsecured join and rejoin attempts.
513
- static DISALLOW_ALL_JOINS_AND_REJOINS = 0x03;
514
- // Take no action on trust center rejoin attempts.
515
- static IGNORE_TRUST_CENTER_REJOINS = 0x05;
516
- // BINDING_MODIFICATION_POLICY default decision. Do not allow the local
517
- // binding table to be changed by remote nodes.
518
- static DISALLOW_BINDING_MODIFICATION = 0x10;
519
- // BINDING_MODIFICATION_POLICY decision. Allow remote nodes to change
520
- // the local binding table.
521
- static ALLOW_BINDING_MODIFICATION = 0x11;
522
- // BINDING_MODIFICATION_POLICY decision. Allows remote nodes to set local
523
- // binding entries only if the entries correspond to endpoints defined on
524
- // the device, and for output clusters bound to those endpoints.
525
- static CHECK_BINDING_MODIFICATIONS_ARE_VALID_ENDPOINT_CLUSTERS = 0x12;
526
- // UNICAST_REPLIES_POLICY default decision. The NCP will automatically send
527
- // an empty reply (containing no payload) for every unicast received.
528
- static HOST_WILL_NOT_SUPPLY_REPLY = 0x20;
529
- // UNICAST_REPLIES_POLICY decision. The NCP will only send a reply if it
530
- // receives a sendReply command from the Host.
531
- static HOST_WILL_SUPPLY_REPLY = 0x21;
532
- // POLL_HANDLER_POLICY default decision. Do not inform the Host when a child
533
- // polls.
534
- static POLL_HANDLER_IGNORE = 0x30;
535
- // POLL_HANDLER_POLICY decision. Generate a pollHandler callback when a
536
- // child polls.
537
- static POLL_HANDLER_CALLBACK = 0x31;
538
- // MESSAGE_CONTENTS_IN_CALLBACK_POLICY default decision. Include only the
539
- // message tag in the messageSentHandler callback.
540
- static MESSAGE_TAG_ONLY_IN_CALLBACK = 0x40;
541
- // MESSAGE_CONTENTS_IN_CALLBACK_POLICY decision. Include both the message
542
- // tag and the message contents in the messageSentHandler callback.
543
- static MESSAGE_TAG_AND_CONTENTS_IN_CALLBACK = 0x41;
544
- // TC_KEY_REQUEST_POLICY decision. When the Trust Center receives a request
545
- // for a Trust Center link key, it will be ignored.
546
- static DENY_TC_KEY_REQUESTS = 0x50;
547
- // TC_KEY_REQUEST_POLICY decision. When the Trust Center receives a request
548
- // for a Trust Center link key, it will reply to it with the corresponding
549
- // key.
550
- static ALLOW_TC_KEY_REQUESTS = 0x51;
551
- // TC_KEY_REQUEST_POLICY decision. When the Trust Center receives a request
552
- // for a Trust Center link key, it will generate a key to send to the
553
- // joiner.
554
- static GENERATE_NEW_TC_LINK_KEY = 0x52;
555
- // APP_KEY_REQUEST_POLICY decision. When the Trust Center receives a request
556
- // for an application link key, it will be ignored.
557
- static DENY_APP_KEY_REQUESTS = 0x60;
558
- // APP_KEY_REQUEST_POLICY decision. When the Trust Center receives a request
559
- // for an application link key, it will randomly generate a key and send it
560
- // to both partners.
561
- static ALLOW_APP_KEY_REQUESTS = 0x61;
562
- // Indicates that packet validate library checks are enabled on the NCP.
563
- static PACKET_VALIDATE_LIBRARY_CHECKS_ENABLED = 0x62;
564
- // Indicates that packet validate library checks are NOT enabled on the NCP.
565
- static PACKET_VALIDATE_LIBRARY_CHECKS_DISABLED = 0x63;
566
- }
567
- exports.EzspDecisionId = EzspDecisionId;
568
- class EzspMfgTokenId extends basic.uint8_t {
569
- // Manufacturing token IDs used by ezspGetMfgToken().
570
- // Custom version (2 bytes).
571
- static MFG_CUSTOM_VERSION = 0x00;
572
- // Manufacturing string (16 bytes).
573
- static MFG_STRING = 0x01;
574
- // Board name (16 bytes).
575
- static MFG_BOARD_NAME = 0x02;
576
- // Manufacturing ID (2 bytes).
577
- static MFG_MANUF_ID = 0x03;
578
- // Radio configuration (2 bytes).
579
- static MFG_PHY_CONFIG = 0x04;
580
- // Bootload AES key (16 bytes).
581
- static MFG_BOOTLOAD_AES_KEY = 0x05;
582
- // ASH configuration (40 bytes).
583
- static MFG_ASH_CONFIG = 0x06;
584
- // EZSP storage (8 bytes).
585
- static MFG_STORAGE = 0x07;
586
- // Radio calibration data (64 bytes). 4 bytes are stored for each of the 16
587
- // channels. This token is not stored in the Flash Information Area. It is
588
- // updated by the stack each time a calibration is performed.
589
- static STACK_CAL_DATA = 0x08;
590
- // Certificate Based Key Exchange (CBKE) data (92 bytes).
591
- static MFG_CBKE_DATA = 0x09;
592
- // Installation code (20 bytes).
593
- static MFG_INSTALLATION_CODE = 0x0a;
594
- // Radio channel filter calibration data (1 byte). This token is not stored
595
- // in the Flash Information Area. It is updated by the stack each time a
596
- // calibration is performed.
597
- static STACK_CAL_FILTER = 0x0b;
598
- // Custom EUI64 MAC address (8 bytes).
599
- static MFG_CUSTOM_EUI_64 = 0x0c;
600
- // CTUNE value (2 byte).
601
- static MFG_CTUNE = 0x0d;
602
- }
603
- exports.EzspMfgTokenId = EzspMfgTokenId;
604
- class EzspStatus extends basic.uint8_t {
605
- // Status values used by EZSP.
606
- // Success.
607
- static SUCCESS = 0x00;
608
- // Fatal error.
609
- static SPI_ERR_FATAL = 0x10;
610
- // The Response frame of the current transaction indicates the NCP has
611
- // reset.
612
- static SPI_ERR_NCP_RESET = 0x11;
613
- // The NCP is reporting that the Command frame of the current transaction is
614
- // oversized (the length byte is too large).
615
- static SPI_ERR_OVERSIZED_FRAME = 0x12;
616
- // The Response frame of the current transaction indicates the previous
617
- // transaction was aborted (nSSEL deasserted too soon).
618
- static SPI_ERR_ABORTED_TRANSACTION = 0x13;
619
- // The Response frame of the current transaction indicates the frame
620
- // terminator is missing from the Command frame.
621
- static SPI_ERR_MISSING_FRAME_TERMINATOR = 0x14;
622
- // The NCP has not provided a Response within the time limit defined by
623
- // WAIT_SECTION_TIMEOUT.
624
- static SPI_ERR_WAIT_SECTION_TIMEOUT = 0x15;
625
- // The Response frame from the NCP is missing the frame terminator.
626
- static SPI_ERR_NO_FRAME_TERMINATOR = 0x16;
627
- // The Host attempted to send an oversized Command (the length byte is too
628
- // large) and the AVR's spi-protocol.c blocked the transmission.
629
- static SPI_ERR_COMMAND_OVERSIZED = 0x17;
630
- // The NCP attempted to send an oversized Response (the length byte is too
631
- // large) and the AVR's spi-protocol.c blocked the reception.
632
- static SPI_ERR_RESPONSE_OVERSIZED = 0x18;
633
- // The Host has sent the Command and is still waiting for the NCP to send a
634
- // Response.
635
- static SPI_WAITING_FOR_RESPONSE = 0x19;
636
- // The NCP has not asserted nHOST_INT within the time limit defined by
637
- // WAKE_HANDSHAKE_TIMEOUT.
638
- static SPI_ERR_HANDSHAKE_TIMEOUT = 0x1a;
639
- // The NCP has not asserted nHOST_INT after an NCP reset within the time
640
- // limit defined by STARTUP_TIMEOUT.
641
- static SPI_ERR_STARTUP_TIMEOUT = 0x1b;
642
- // The Host attempted to verify the SPI Protocol activity and version
643
- // number, and the verification failed.
644
- static SPI_ERR_STARTUP_FAIL = 0x1c;
645
- // The Host has sent a command with a SPI Byte that is unsupported by the
646
- // current mode the NCP is operating in.
647
- static SPI_ERR_UNSUPPORTED_SPI_COMMAND = 0x1d;
648
- // Operation not yet complete.
649
- static ASH_IN_PROGRESS = 0x20;
650
- // Fatal error detected by host.
651
- static HOST_FATAL_ERROR = 0x21;
652
- // Fatal error detected by NCP.
653
- static ASH_NCP_FATAL_ERROR = 0x22;
654
- // Tried to send DATA frame too long.
655
- static DATA_FRAME_TOO_LONG = 0x23;
656
- // Tried to send DATA frame too short.
657
- static DATA_FRAME_TOO_SHORT = 0x24;
658
- // No space for tx'ed DATA frame.
659
- static NO_TX_SPACE = 0x25;
660
- // No space for rec'd DATA frame.
661
- static NO_RX_SPACE = 0x26;
662
- // No receive data available.
663
- static NO_RX_DATA = 0x27;
664
- // Not in Connected state.
665
- static NOT_CONNECTED = 0x28;
666
- // The NCP received a command before the EZSP version had been set.
667
- static ERROR_VERSION_NOT_SET = 0x30;
668
- // The NCP received a command containing an unsupported frame ID.
669
- static ERROR_INVALID_FRAME_ID = 0x31;
670
- // The direction flag in the frame control field was incorrect.
671
- static ERROR_WRONG_DIRECTION = 0x32;
672
- // The truncated flag in the frame control field was set, indicating there
673
- // was not enough memory available to complete the response or that the
674
- // response would have exceeded the maximum EZSP frame length.
675
- static ERROR_TRUNCATED = 0x33;
676
- // The overflow flag in the frame control field was set, indicating one or
677
- // more callbacks occurred since the previous response and there was not
678
- // enough memory available to report them to the Host.
679
- static ERROR_OVERFLOW = 0x34;
680
- // Insufficient memory was available.
681
- static ERROR_OUT_OF_MEMORY = 0x35;
682
- // The value was out of bounds.
683
- static ERROR_INVALID_VALUE = 0x36;
684
- // The configuration id was not recognized.
685
- static ERROR_INVALID_ID = 0x37;
686
- // Configuration values can no longer be modified.
687
- static ERROR_INVALID_CALL = 0x38;
688
- // The NCP failed to respond to a command.
689
- static ERROR_NO_RESPONSE = 0x39;
690
- // The length of the command exceeded the maximum EZSP frame length.
691
- static ERROR_COMMAND_TOO_LONG = 0x40;
692
- // The UART receive queue was full causing a callback response to be
693
- // dropped.
694
- static ERROR_QUEUE_FULL = 0x41;
695
- // The command has been filtered out by NCP.
696
- static ERROR_COMMAND_FILTERED = 0x42;
697
- // EZSP Security Key is already set
698
- static ERROR_SECURITY_KEY_ALREADY_SET = 0x43;
699
- // EZSP Security Type is invalid
700
- static ERROR_SECURITY_TYPE_INVALID = 0x44;
701
- // EZSP Security Parameters are invalid
702
- static ERROR_SECURITY_PARAMETERS_INVALID = 0x45;
703
- // EZSP Security Parameters are already set
704
- static ERROR_SECURITY_PARAMETERS_ALREADY_SET = 0x46;
705
- // EZSP Security Key is not set
706
- static ERROR_SECURITY_KEY_NOT_SET = 0x47;
707
- // EZSP Security Parameters are not set
708
- static ERROR_SECURITY_PARAMETERS_NOT_SET = 0x48;
709
- // Received frame with unsupported control byte
710
- static ERROR_UNSUPPORTED_CONTROL = 0x49;
711
- // Received frame is unsecure, when security is established
712
- static ERROR_UNSECURE_FRAME = 0x4a;
713
- // Incompatible ASH version
714
- static ASH_ERROR_VERSION = 0x50;
715
- // Exceeded max ACK timeouts
716
- static ASH_ERROR_TIMEOUTS = 0x51;
717
- // Timed out waiting for RSTACK
718
- static ASH_ERROR_RESET_FAIL = 0x52;
719
- // Unexpected ncp reset
720
- static ASH_ERROR_NCP_RESET = 0x53;
721
- // Serial port initialization failed
722
- static ERROR_SERIAL_INIT = 0x54;
723
- // Invalid ncp processor type
724
- static ASH_ERROR_NCP_TYPE = 0x55;
725
- // Invalid ncp reset method
726
- static ASH_ERROR_RESET_METHOD = 0x56;
727
- // XON/XOFF not supported by host driver
728
- static ASH_ERROR_XON_XOFF = 0x57;
729
- // ASH protocol started
730
- static ASH_STARTED = 0x70;
731
- // ASH protocol connected
732
- static ASH_CONNECTED = 0x71;
733
- // ASH protocol disconnected
734
- static ASH_DISCONNECTED = 0x72;
735
- // Timer expired waiting for ack
736
- static ASH_ACK_TIMEOUT = 0x73;
737
- // Frame in progress cancelled
738
- static ASH_CANCELLED = 0x74;
739
- // Received frame out of sequence
740
- static ASH_OUT_OF_SEQUENCE = 0x75;
741
- // Received frame with CRC error
742
- static ASH_BAD_CRC = 0x76;
743
- // Received frame with comm error
744
- static ASH_COMM_ERROR = 0x77;
745
- // Received frame with bad ackNum
746
- static ASH_BAD_ACKNUM = 0x78;
747
- // Received frame shorter than minimum
748
- static ASH_TOO_SHORT = 0x79;
749
- // Received frame longer than maximum
750
- static ASH_TOO_LONG = 0x7a;
751
- // Received frame with illegal control byte
752
- static ASH_BAD_CONTROL = 0x7b;
753
- // Received frame with illegal length for its type
754
- static ASH_BAD_LENGTH = 0x7c;
755
- // Received ASH Ack
756
- static ASH_ACK_RECEIVED = 0x7d;
757
- // Sent ASH Ack
758
- static ASH_ACK_SENT = 0x7e;
759
- // No reset or error
760
- static NO_ERROR = 0xff;
761
- }
762
- exports.EzspStatus = EzspStatus;
763
- class EmberStatus extends basic.uint8_t {
764
- // Return type for stack functions.
765
- // The generic 'no error' message.
766
- static SUCCESS = 0x00;
767
- // The generic 'fatal error' message.
768
- static ERR_FATAL = 0x01;
769
- // An invalid value was passed as an argument to a function
770
- static BAD_ARGUMENT = 0x02;
771
- // The manufacturing and stack token format in nonvolatile memory is
772
- // different than what the stack expects (returned at initialization).
773
- static EEPROM_MFG_STACK_VERSION_MISMATCH = 0x04;
774
- // The static memory definitions in ember-staticmemory.h are incompatible
775
- // with this stack version.
776
- static INCOMPATIBLE_STATIC_MEMORY_DEFINITIONS = 0x05;
777
- // The manufacturing token format in non-volatile memory is different than
778
- // what the stack expects (returned at initialization).
779
- static EEPROM_MFG_VERSION_MISMATCH = 0x06;
780
- // The stack token format in non-volatile memory is different than what the
781
- // stack expects (returned at initialization).
782
- static EEPROM_STACK_VERSION_MISMATCH = 0x07;
783
- // There are no more buffers.
784
- static NO_BUFFERS = 0x18;
785
- // Specified an invalid baud rate.
786
- static SERIAL_INVALID_BAUD_RATE = 0x20;
787
- // Specified an invalid serial port.
788
- static SERIAL_INVALID_PORT = 0x21;
789
- // Tried to send too much data.
790
- static SERIAL_TX_OVERFLOW = 0x22;
791
- // There was not enough space to store a received character and the
792
- // character was dropped.
793
- static SERIAL_RX_OVERFLOW = 0x23;
794
- // Detected a UART framing error.
795
- static SERIAL_RX_FRAME_ERROR = 0x24;
796
- // Detected a UART parity error.
797
- static SERIAL_RX_PARITY_ERROR = 0x25;
798
- // There is no received data to process.
799
- static SERIAL_RX_EMPTY = 0x26;
800
- // The receive interrupt was not handled in time, and a character was
801
- // dropped.
802
- static SERIAL_RX_OVERRUN_ERROR = 0x27;
803
- // The MAC transmit queue is full.
804
- static MAC_TRANSMIT_QUEUE_FULL = 0x39;
805
- // MAC header FCR error on receive.
806
- static MAC_UNKNOWN_HEADER_TYPE = 0x3a;
807
- // The MAC can't complete this task because it is scanning.
808
- static MAC_SCANNING = 0x3d;
809
- // No pending data exists for device doing a data poll.
810
- static MAC_NO_DATA = 0x31;
811
- // Attempt to scan when we are joined to a network.
812
- static MAC_JOINED_NETWORK = 0x32;
813
- // Scan duration must be 0 to 14 inclusive. Attempt was made to scan with an
814
- // incorrect duration value.
815
- static MAC_BAD_SCAN_DURATION = 0x33;
816
- // emberStartScan was called with an incorrect scan type.
817
- static MAC_INCORRECT_SCAN_TYPE = 0x34;
818
- // emberStartScan was called with an invalid channel mask.
819
- static MAC_INVALID_CHANNEL_MASK = 0x35;
820
- // Failed to scan current channel because we were unable to transmit the
821
- // relevant MAC command.
822
- static MAC_COMMAND_TRANSMIT_FAILURE = 0x36;
823
- // We expected to receive an ACK following the transmission, but the MAC
824
- // level ACK was never received.
825
- static MAC_NO_ACK_RECEIVED = 0x40;
826
- // Indirect data message timed out before polled.
827
- static MAC_INDIRECT_TIMEOUT = 0x42;
828
- // The Simulated EEPROM is telling the application that there is at least
829
- // one flash page to be erased. The GREEN status means the current page has
830
- // not filled above the ERASE_CRITICAL_THRESHOLD. The application should
831
- // call the function halSimEepromErasePage when it can to erase a page.
832
- static SIM_EEPROM_ERASE_PAGE_GREEN = 0x43;
833
- // The Simulated EEPROM is telling the application that there is at least
834
- // one flash page to be erased. The RED status means the current page has
835
- // filled above the ERASE_CRITICAL_THRESHOLD. Due to the shrinking
836
- // availability of write space, there is a danger of data loss. The
837
- // application must call the function halSimEepromErasePage as soon as
838
- // possible to erase a page.
839
- static SIM_EEPROM_ERASE_PAGE_RED = 0x44;
840
- // The Simulated EEPROM has run out of room to write any new data and the
841
- // data trying to be set has been lost. This error code is the result of
842
- // ignoring the SIM_EEPROM_ERASE_PAGE_RED error code. The application must
843
- // call the function halSimEepromErasePage to make room for any further
844
- // calls to set a token.
845
- static SIM_EEPROM_FULL = 0x45;
846
- // A fatal error has occurred while trying to write data to the Flash. The
847
- // target memory attempting to be programmed is already programmed. The
848
- // flash write routines were asked to flip a bit from a 0 to 1, which is
849
- // physically impossible and the write was therefore inhibited. The data in
850
- // the flash cannot be trusted after this error.
851
- static ERR_FLASH_WRITE_INHIBITED = 0x46;
852
- // A fatal error has occurred while trying to write data to the Flash and
853
- // the write verification has failed. The data in the flash cannot be
854
- // trusted after this error, and it is possible this error is the result of
855
- // exceeding the life cycles of the flash.
856
- static ERR_FLASH_VERIFY_FAILED = 0x47;
857
- // Attempt 1 to initialize the Simulated EEPROM has failed. This failure
858
- // means the information already stored in Flash (or a lack thereof), is
859
- // fatally incompatible with the token information compiled into the code
860
- // image being run.
861
- static SIM_EEPROM_INIT_1_FAILED = 0x48;
862
- // Attempt 2 to initialize the Simulated EEPROM has failed. This failure
863
- // means Attempt 1 failed, and the token system failed to properly reload
864
- // default tokens and reset the Simulated EEPROM.
865
- static SIM_EEPROM_INIT_2_FAILED = 0x49;
866
- // Attempt 3 to initialize the Simulated EEPROM has failed. This failure
867
- // means one or both of the tokens TOKEN_MFG_NVDATA_VERSION or
868
- // TOKEN_STACK_NVDATA_VERSION were incorrect and the token system failed to
869
- // properly reload default tokens and reset the Simulated EEPROM.
870
- static SIM_EEPROM_INIT_3_FAILED = 0x4a;
871
- // A fatal error has occurred while trying to write data to the flash,
872
- // possibly due to write protection or an invalid address. The data in the
873
- // flash cannot be trusted after this error, and it is possible this error
874
- // is the result of exceeding the life cycles of the flash.
875
- static ERR_FLASH_PROG_FAIL = 0x4b;
876
- // A fatal error has occurred while trying to erase flash, possibly due to
877
- // write protection. The data in the flash cannot be trusted after this
878
- // error, and it is possible this error is the result of exceeding the life
879
- // cycles of the flash.
880
- static ERR_FLASH_ERASE_FAIL = 0x4c;
881
- // The bootloader received an invalid message (failed attempt to go into
882
- // bootloader).
883
- static ERR_BOOTLOADER_TRAP_TABLE_BAD = 0x58;
884
- // Bootloader received an invalid message (failed attempt to go into
885
- // bootloader).
886
- static ERR_BOOTLOADER_TRAP_UNKNOWN = 0x59;
887
- // The bootloader cannot complete the bootload operation because either an
888
- // image was not found or the image exceeded memory bounds.
889
- static ERR_BOOTLOADER_NO_IMAGE = 0x5a;
890
- // The APS layer attempted to send or deliver a message, but it failed.
891
- static DELIVERY_FAILED = 0x66;
892
- // This binding index is out of range of the current binding table.
893
- static BINDING_INDEX_OUT_OF_RANGE = 0x69;
894
- // This address table index is out of range for the current address table.
895
- static ADDRESS_TABLE_INDEX_OUT_OF_RANGE = 0x6a;
896
- // An invalid binding table index was given to a function.
897
- static INVALID_BINDING_INDEX = 0x6c;
898
- // The API call is not allowed given the current state of the stack.
899
- static INVALID_CALL = 0x70;
900
- // The link cost to a node is not known.
901
- static COST_NOT_KNOWN = 0x71;
902
- // The maximum number of in-flight messages (i.e.
903
- // APS_UNICAST_MESSAGE_COUNT) has been reached.
904
- static MAX_MESSAGE_LIMIT_REACHED = 0x72;
905
- // The message to be transmitted is too big to fit into a single over-the-
906
- // air packet.
907
- static MESSAGE_TOO_LONG = 0x74;
908
- // The application is trying to delete or overwrite a binding that is in
909
- // use.
910
- static BINDING_IS_ACTIVE = 0x75;
911
- // The application is trying to overwrite an address table entry that is in
912
- // use.
913
- static ADDRESS_TABLE_ENTRY_IS_ACTIVE = 0x76;
914
- // Conversion is complete.
915
- static ADC_CONVERSION_DONE = 0x80;
916
- // Conversion cannot be done because a request is being processed.
917
- static ADC_CONVERSION_BUSY = 0x81;
918
- // Conversion is deferred until the current request has been processed.
919
- static ADC_CONVERSION_DEFERRED = 0x82;
920
- // No results are pending.
921
- static ADC_NO_CONVERSION_PENDING = 0x84;
922
- // Sleeping (for a duration) has been abnormally interrupted and exited
923
- // prematurely.
924
- static SLEEP_INTERRUPTED = 0x85;
925
- // The transmit hardware buffer underflowed.
926
- static PHY_TX_UNDERFLOW = 0x88;
927
- // The transmit hardware did not finish transmitting a packet.
928
- static PHY_TX_INCOMPLETE = 0x89;
929
- // An unsupported channel setting was specified.
930
- static PHY_INVALID_CHANNEL = 0x8a;
931
- // An unsupported power setting was specified.
932
- static PHY_INVALID_POWER = 0x8b;
933
- // The packet cannot be transmitted because the physical MAC layer is
934
- // currently transmitting a packet. (This is used for the MAC backoff
935
- // algorithm.) PHY_TX_CCA_FAIL 0x8D The transmit attempt failed because all
936
- // CCA attempts indicated that the channel was busy
937
- static PHY_TX_BUSY = 0x8c;
938
- // The software installed on the hardware doesn't recognize the hardware
939
- // radio type.
940
- static PHY_OSCILLATOR_CHECK_FAILED = 0x8e;
941
- // The expected ACK was received after the last transmission.
942
- static PHY_ACK_RECEIVED = 0x8f;
943
- // The stack software has completed initialization and is ready to send and
944
- // receive packets over the air.
945
- static NETWORK_UP = 0x90;
946
- // The network is not operating.
947
- static NETWORK_DOWN = 0x91;
948
- // An attempt to join a network failed.
949
- static JOIN_FAILED = 0x94;
950
- // After moving, a mobile node's attempt to re-establish contact with the
951
- // network failed.
952
- static MOVE_FAILED = 0x96;
953
- // An attempt to join as a router failed due to a ZigBee versus ZigBee Pro
954
- // incompatibility. ZigBee devices joining ZigBee Pro networks (or vice
955
- // versa) must join as End Devices, not Routers.
956
- static CANNOT_JOIN_AS_ROUTER = 0x98;
957
- // The local node ID has changed. The application can obtain the new node ID
958
- // by calling emberGetNodeId().
959
- static NODE_ID_CHANGED = 0x99;
960
- // The local PAN ID has changed. The application can obtain the new PAN ID
961
- // by calling emberGetPanId().
962
- static PAN_ID_CHANGED = 0x9a;
963
- // An attempt to join or rejoin the network failed because no router beacons
964
- // could be heard by the joining node.
965
- static NO_BEACONS = 0xab;
966
- // An attempt was made to join a Secured Network using a pre-configured key,
967
- // but the Trust Center sent back a Network Key in-the-clear when an
968
- // encrypted Network Key was required.
969
- static RECEIVED_KEY_IN_THE_CLEAR = 0xac;
970
- // An attempt was made to join a Secured Network, but the device did not
971
- // receive a Network Key.
972
- static NO_NETWORK_KEY_RECEIVED = 0xad;
973
- // After a device joined a Secured Network, a Link Key was requested but no
974
- // response was ever received.
975
- static NO_LINK_KEY_RECEIVED = 0xae;
976
- // An attempt was made to join a Secured Network without a pre-configured
977
- // key, but the Trust Center sent encrypted data using a pre-configured key.
978
- static PRECONFIGURED_KEY_REQUIRED = 0xaf;
979
- // The node has not joined a network.
980
- static NOT_JOINED = 0x93;
981
- // The chosen security level (the value of SECURITY_LEVEL) is not supported
982
- // by the stack.
983
- static INVALID_SECURITY_LEVEL = 0x95;
984
- // A message cannot be sent because the network is currently overloaded.
985
- static NETWORK_BUSY = 0xa1;
986
- // The application tried to send a message using an endpoint that it has not
987
- // defined.
988
- static INVALID_ENDPOINT = 0xa3;
989
- // The application tried to use a binding that has been remotely modified
990
- // and the change has not yet been reported to the application.
991
- static BINDING_HAS_CHANGED = 0xa4;
992
- // An attempt to generate random bytes failed because of insufficient random
993
- // data from the radio.
994
- static INSUFFICIENT_RANDOM_DATA = 0xa5;
995
- // There was an error in trying to encrypt at the APS Level. This could
996
- // result from either an inability to determine the long address of the
997
- // recipient from the short address (no entry in the binding table) or there
998
- // is no link key entry in the table associated with the destination, or
999
- // there was a failure to load the correct key into the encryption core.
1000
- // TRUST_CENTER_MASTER_KEY_NOT_SET 0xA7 There was an attempt to form a
1001
- // network using commercial security without setting the Trust Center master
1002
- // key first.
1003
- static APS_ENCRYPTION_ERROR = 0xa6;
1004
- // There was an attempt to form or join a network with security without
1005
- // calling emberSetInitialSecurityState() first.
1006
- static SECURITY_STATE_NOT_SET = 0xa8;
1007
- // There was an attempt to set an entry in the key table using an invalid
1008
- // long address. An entry cannot be set using either the local device's or
1009
- // Trust Center's IEEE address. Or an entry already exists in the table with
1010
- // the same IEEE address. An Address of all zeros or all F's are not valid
1011
- // addresses in 802.15.4.
1012
- static KEY_TABLE_INVALID_ADDRESS = 0xb3;
1013
- // There was an attempt to set a security configuration that is not valid
1014
- // given the other security settings.
1015
- static SECURITY_CONFIGURATION_INVALID = 0xb7;
1016
- // There was an attempt to broadcast a key switch too quickly after
1017
- // broadcasting the next network key. The Trust Center must wait at least a
1018
- // period equal to the broadcast timeout so that all routers have a chance
1019
- // to receive the broadcast of the new network key.
1020
- static TOO_SOON_FOR_SWITCH_KEY = 0xb8;
1021
- // The message could not be sent because the link key corresponding to the
1022
- // destination is not authorized for use in APS data messages. APS Commands
1023
- // (sent by the stack) are allowed. To use it for encryption of APS data
1024
- // messages it must be authorized using a key agreement protocol (such as
1025
- // CBKE).
1026
- static KEY_NOT_AUTHORIZED = 0xbb;
1027
- // The security data provided was not valid, or an integrity check failed.
1028
- static SECURITY_DATA_INVALID = 0xbd;
1029
- // A ZigBee route error command frame was received indicating that a source
1030
- // routed message from this node failed en route.
1031
- static SOURCE_ROUTE_FAILURE = 0xa9;
1032
- // A ZigBee route error command frame was received indicating that a message
1033
- // sent to this node along a many-to-one route failed en route. The route
1034
- // error frame was delivered by an ad-hoc search for a functioning route.
1035
- static MANY_TO_ONE_ROUTE_FAILURE = 0xaa;
1036
- // A critical and fatal error indicating that the version of the stack
1037
- // trying to run does not match with the chip it is running on. The software
1038
- // (stack) on the chip must be replaced with software that is compatible
1039
- // with the chip.
1040
- static STACK_AND_HARDWARE_MISMATCH = 0xb0;
1041
- // An index was passed into the function that was larger than the valid
1042
- // range.
1043
- static INDEX_OUT_OF_RANGE = 0xb1;
1044
- // There are no empty entries left in the table.
1045
- static TABLE_FULL = 0xb4;
1046
- // The requested table entry has been erased and contains no valid data.
1047
- static TABLE_ENTRY_ERASED = 0xb6;
1048
- // The requested function cannot be executed because the library that
1049
- // contains the necessary functionality is not present.
1050
- static LIBRARY_NOT_PRESENT = 0xb5;
1051
- // The stack accepted the command and is currently processing the request.
1052
- // The results will be returned via an appropriate handler.
1053
- static OPERATION_IN_PROGRESS = 0xba;
1054
- // This error is reserved for customer application use. This will never be
1055
- // returned from any portion of the network stack or HAL.
1056
- static APPLICATION_ERROR_0 = 0xf0;
1057
- // This error is reserved for customer application use. This will never be
1058
- // returned from any portion of the network stack or HAL.
1059
- static APPLICATION_ERROR_1 = 0xf1;
1060
- // This error is reserved for customer application use. This will never be
1061
- // returned from any portion of the network stack or HAL.
1062
- static APPLICATION_ERROR_2 = 0xf2;
1063
- // This error is reserved for customer application use. This will never be
1064
- // returned from any portion of the network stack or HAL.
1065
- static APPLICATION_ERROR_3 = 0xf3;
1066
- // This error is reserved for customer application use. This will never be
1067
- // returned from any portion of the network stack or HAL.
1068
- static APPLICATION_ERROR_4 = 0xf4;
1069
- // This error is reserved for customer application use. This will never be
1070
- // returned from any portion of the network stack or HAL.
1071
- static APPLICATION_ERROR_5 = 0xf5;
1072
- // This error is reserved for customer application use. This will never be
1073
- // returned from any portion of the network stack or HAL.
1074
- static APPLICATION_ERROR_6 = 0xf6;
1075
- // This error is reserved for customer application use. This will never be
1076
- // returned from any portion of the network stack or HAL.
1077
- static APPLICATION_ERROR_7 = 0xf7;
1078
- // This error is reserved for customer application use. This will never be
1079
- // returned from any portion of the network stack or HAL.
1080
- static APPLICATION_ERROR_8 = 0xf8;
1081
- // This error is reserved for customer application use. This will never be
1082
- // returned from any portion of the network stack or HAL.
1083
- static APPLICATION_ERROR_9 = 0xf9;
1084
- // This error is reserved for customer application use. This will never be
1085
- // returned from any portion of the network stack or HAL.
1086
- static APPLICATION_ERROR_10 = 0xfa;
1087
- // This error is reserved for customer application use. This will never be
1088
- // returned from any portion of the network stack or HAL.
1089
- static APPLICATION_ERROR_11 = 0xfb;
1090
- // This error is reserved for customer application use. This will never be
1091
- // returned from any portion of the network stack or HAL.
1092
- static APPLICATION_ERROR_12 = 0xfc;
1093
- // This error is reserved for customer application use. This will never be
1094
- // returned from any portion of the network stack or HAL.
1095
- static APPLICATION_ERROR_13 = 0xfd;
1096
- // This error is reserved for customer application use. This will never be
1097
- // returned from any portion of the network stack or HAL.
1098
- static APPLICATION_ERROR_14 = 0xfe;
1099
- // This error is reserved for customer application use. This will never be
1100
- // returned from any portion of the network stack or HAL.
1101
- static APPLICATION_ERROR_15 = 0xff;
1102
- }
1103
- exports.EmberStatus = EmberStatus;
1104
- /** define global status variable. */
1105
- class SLStatus extends basic.uint32_t {
1106
- /** No error. */
1107
- static SL_STATUS_OK = 0x0000;
1108
- /** Generic error. */
1109
- static SL_STATUS_FAIL = 0x0001;
1110
- /**State Errors */
1111
- /** Generic invalid state error. */
1112
- static SL_STATUS_INVALID_STATE = 0x0002;
1113
- /** Module is not ready for requested operation. */
1114
- static SL_STATUS_NOT_READY = 0x0003;
1115
- /** Module is busy and cannot carry out requested operation. */
1116
- static SL_STATUS_BUSY = 0x0004;
1117
- /** Operation is in progress and not yet complete (pass or fail). */
1118
- static SL_STATUS_IN_PROGRESS = 0x0005;
1119
- /** Operation aborted. */
1120
- static SL_STATUS_ABORT = 0x0006;
1121
- /** Operation timed out. */
1122
- static SL_STATUS_TIMEOUT = 0x0007;
1123
- /** Operation not allowed per permissions. */
1124
- static SL_STATUS_PERMISSION = 0x0008;
1125
- /** Non-blocking operation would block. */
1126
- static SL_STATUS_WOULD_BLOCK = 0x0009;
1127
- /** Operation/module is Idle, cannot carry requested operation. */
1128
- static SL_STATUS_IDLE = 0x000a;
1129
- /** Operation cannot be done while construct is waiting. */
1130
- static SL_STATUS_IS_WAITING = 0x000b;
1131
- /** No task/construct waiting/pending for that action/event. */
1132
- static SL_STATUS_NONE_WAITING = 0x000c;
1133
- /** Operation cannot be done while construct is suspended. */
1134
- static SL_STATUS_SUSPENDED = 0x000d;
1135
- /** Feature not available due to software configuration. */
1136
- static SL_STATUS_NOT_AVAILABLE = 0x000e;
1137
- /** Feature not supported. */
1138
- static SL_STATUS_NOT_SUPPORTED = 0x000f;
1139
- /** Initialization failed. */
1140
- static SL_STATUS_INITIALIZATION = 0x0010;
1141
- /** Module has not been initialized. */
1142
- static SL_STATUS_NOT_INITIALIZED = 0x0011;
1143
- /** Module has already been initialized. */
1144
- static SL_STATUS_ALREADY_INITIALIZED = 0x0012;
1145
- /** Object/construct has been deleted. */
1146
- static SL_STATUS_DELETED = 0x0013;
1147
- /** Illegal call from ISR. */
1148
- static SL_STATUS_ISR = 0x0014;
1149
- /** Illegal call because network is up. */
1150
- static SL_STATUS_NETWORK_UP = 0x0015;
1151
- /** Illegal call because network is down. */
1152
- static SL_STATUS_NETWORK_DOWN = 0x0016;
1153
- /** Failure due to not being joined in a network. */
1154
- static SL_STATUS_NOT_JOINED = 0x0017;
1155
- /** Invalid operation as there are no beacons. */
1156
- static SL_STATUS_NO_BEACONS = 0x0018;
1157
- /**Allocation/ownership Errors */
1158
- /** Generic allocation error. */
1159
- static SL_STATUS_ALLOCATION_FAILED = 0x0019;
1160
- /** No more resource available to perform the operation. */
1161
- static SL_STATUS_NO_MORE_RESOURCE = 0x001a;
1162
- /** Item/list/queue is empty. */
1163
- static SL_STATUS_EMPTY = 0x001b;
1164
- /** Item/list/queue is full. */
1165
- static SL_STATUS_FULL = 0x001c;
1166
- /** Item would overflow. */
1167
- static SL_STATUS_WOULD_OVERFLOW = 0x001d;
1168
- /** Item/list/queue has been overflowed. */
1169
- static SL_STATUS_HAS_OVERFLOWED = 0x001e;
1170
- /** Generic ownership error. */
1171
- static SL_STATUS_OWNERSHIP = 0x001f;
1172
- /** Already/still owning resource. */
1173
- static SL_STATUS_IS_OWNER = 0x0020;
1174
- /**Invalid Parameters Errors */
1175
- /** Generic invalid argument or consequence of invalid argument. */
1176
- static SL_STATUS_INVALID_PARAMETER = 0x0021;
1177
- /** Invalid null pointer received as argument. */
1178
- static SL_STATUS_NULL_POINTER = 0x0022;
1179
- /** Invalid configuration provided. */
1180
- static SL_STATUS_INVALID_CONFIGURATION = 0x0023;
1181
- /** Invalid mode. */
1182
- static SL_STATUS_INVALID_MODE = 0x0024;
1183
- /** Invalid handle. */
1184
- static SL_STATUS_INVALID_HANDLE = 0x0025;
1185
- /** Invalid type for operation. */
1186
- static SL_STATUS_INVALID_TYPE = 0x0026;
1187
- /** Invalid index. */
1188
- static SL_STATUS_INVALID_INDEX = 0x0027;
1189
- /** Invalid range. */
1190
- static SL_STATUS_INVALID_RANGE = 0x0028;
1191
- /** Invalid key. */
1192
- static SL_STATUS_INVALID_KEY = 0x0029;
1193
- /** Invalid credentials. */
1194
- static SL_STATUS_INVALID_CREDENTIALS = 0x002a;
1195
- /** Invalid count. */
1196
- static SL_STATUS_INVALID_COUNT = 0x002b;
1197
- /** Invalid signature / verification failed. */
1198
- static SL_STATUS_INVALID_SIGNATURE = 0x002c;
1199
- /** Item could not be found. */
1200
- static SL_STATUS_NOT_FOUND = 0x002d;
1201
- /** Item already exists. */
1202
- static SL_STATUS_ALREADY_EXISTS = 0x002e;
1203
- /**IO/Communication Errors */
1204
- /** Generic I/O failure. */
1205
- static SL_STATUS_IO = 0x002f;
1206
- /** I/O failure due to timeout. */
1207
- static SL_STATUS_IO_TIMEOUT = 0x0030;
1208
- /** Generic transmission error. */
1209
- static SL_STATUS_TRANSMIT = 0x0031;
1210
- /** Transmit underflowed. */
1211
- static SL_STATUS_TRANSMIT_UNDERFLOW = 0x0032;
1212
- /** Transmit is incomplete. */
1213
- static SL_STATUS_TRANSMIT_INCOMPLETE = 0x0033;
1214
- /** Transmit is busy. */
1215
- static SL_STATUS_TRANSMIT_BUSY = 0x0034;
1216
- /** Generic reception error. */
1217
- static SL_STATUS_RECEIVE = 0x0035;
1218
- /** Failed to read on/via given object. */
1219
- static SL_STATUS_OBJECT_READ = 0x0036;
1220
- /** Failed to write on/via given object. */
1221
- static SL_STATUS_OBJECT_WRITE = 0x0037;
1222
- /** Message is too long. */
1223
- static SL_STATUS_MESSAGE_TOO_LONG = 0x0038;
1224
- /**EEPROM/Flash Errors */
1225
- static SL_STATUS_EEPROM_MFG_VERSION_MISMATCH = 0x0039;
1226
- static SL_STATUS_EEPROM_STACK_VERSION_MISMATCH = 0x003a;
1227
- /** Flash write is inhibited. */
1228
- static SL_STATUS_FLASH_WRITE_INHIBITED = 0x003b;
1229
- /** Flash verification failed. */
1230
- static SL_STATUS_FLASH_VERIFY_FAILED = 0x003c;
1231
- /** Flash programming failed. */
1232
- static SL_STATUS_FLASH_PROGRAM_FAILED = 0x003d;
1233
- /** Flash erase failed. */
1234
- static SL_STATUS_FLASH_ERASE_FAILED = 0x003e;
1235
- /**MAC Errors */
1236
- static SL_STATUS_MAC_NO_DATA = 0x003f;
1237
- static SL_STATUS_MAC_NO_ACK_RECEIVED = 0x0040;
1238
- static SL_STATUS_MAC_INDIRECT_TIMEOUT = 0x0041;
1239
- static SL_STATUS_MAC_UNKNOWN_HEADER_TYPE = 0x0042;
1240
- static SL_STATUS_MAC_ACK_HEADER_TYPE = 0x0043;
1241
- static SL_STATUS_MAC_COMMAND_TRANSMIT_FAILURE = 0x0044;
1242
- /**CLI_STORAGE Errors */
1243
- /** Error in open NVM */
1244
- static SL_STATUS_CLI_STORAGE_NVM_OPEN_ERROR = 0x0045;
1245
- /**Security status codes */
1246
- /** Image checksum is not valid. */
1247
- static SL_STATUS_SECURITY_IMAGE_CHECKSUM_ERROR = 0x0046;
1248
- /** Decryption failed */
1249
- static SL_STATUS_SECURITY_DECRYPT_ERROR = 0x0047;
1250
- /**Command status codes */
1251
- /** Command was not recognized */
1252
- static SL_STATUS_COMMAND_IS_INVALID = 0x0048;
1253
- /** Command or parameter maximum length exceeded */
1254
- static SL_STATUS_COMMAND_TOO_LONG = 0x0049;
1255
- /** Data received does not form a complete command */
1256
- static SL_STATUS_COMMAND_INCOMPLETE = 0x004a;
1257
- /**Misc Errors */
1258
- /** Bus error, e.g. invalid DMA address */
1259
- static SL_STATUS_BUS_ERROR = 0x004b;
1260
- /**Unified MAC Errors */
1261
- static SL_STATUS_CCA_FAILURE = 0x004c;
1262
- /**Scan errors */
1263
- static SL_STATUS_MAC_SCANNING = 0x004d;
1264
- static SL_STATUS_MAC_INCORRECT_SCAN_TYPE = 0x004e;
1265
- static SL_STATUS_INVALID_CHANNEL_MASK = 0x004f;
1266
- static SL_STATUS_BAD_SCAN_DURATION = 0x0050;
1267
- /**Bluetooth status codes */
1268
- /** Bonding procedure can't be started because device has no space */
1269
- /** left for bond. */
1270
- static SL_STATUS_BT_OUT_OF_BONDS = 0x0402;
1271
- /** Unspecified error */
1272
- static SL_STATUS_BT_UNSPECIFIED = 0x0403;
1273
- /** Hardware failure */
1274
- static SL_STATUS_BT_HARDWARE = 0x0404;
1275
- /** The bonding does not exist. */
1276
- static SL_STATUS_BT_NO_BONDING = 0x0406;
1277
- /** Error using crypto functions */
1278
- static SL_STATUS_BT_CRYPTO = 0x0407;
1279
- /** Data was corrupted. */
1280
- static SL_STATUS_BT_DATA_CORRUPTED = 0x0408;
1281
- /** Invalid periodic advertising sync handle */
1282
- static SL_STATUS_BT_INVALID_SYNC_HANDLE = 0x040a;
1283
- /** Bluetooth cannot be used on this hardware */
1284
- static SL_STATUS_BT_INVALID_MODULE_ACTION = 0x040b;
1285
- /** Error received from radio */
1286
- static SL_STATUS_BT_RADIO = 0x040c;
1287
- /** Returned when remote disconnects the connection-oriented channel by sending */
1288
- /** disconnection request. */
1289
- static SL_STATUS_BT_L2CAP_REMOTE_DISCONNECTED = 0x040d;
1290
- /** Returned when local host disconnect the connection-oriented channel by sending */
1291
- /** disconnection request. */
1292
- static SL_STATUS_BT_L2CAP_LOCAL_DISCONNECTED = 0x040e;
1293
- /** Returned when local host did not find a connection-oriented channel with given */
1294
- /** destination CID. */
1295
- static SL_STATUS_BT_L2CAP_CID_NOT_EXIST = 0x040f;
1296
- /** Returned when connection-oriented channel disconnected due to LE connection is dropped. */
1297
- static SL_STATUS_BT_L2CAP_LE_DISCONNECTED = 0x0410;
1298
- /** Returned when connection-oriented channel disconnected due to remote end send data */
1299
- /** even without credit. */
1300
- static SL_STATUS_BT_L2CAP_FLOW_CONTROL_VIOLATED = 0x0412;
1301
- /** Returned when connection-oriented channel disconnected due to remote end send flow */
1302
- /** control credits exceed 65535. */
1303
- static SL_STATUS_BT_L2CAP_FLOW_CONTROL_CREDIT_OVERFLOWED = 0x0413;
1304
- /** Returned when connection-oriented channel has run out of flow control credit and */
1305
- /** local application still trying to send data. */
1306
- static SL_STATUS_BT_L2CAP_NO_FLOW_CONTROL_CREDIT = 0x0414;
1307
- /** Returned when connection-oriented channel has not received connection response message */
1308
- /** within maximum timeout. */
1309
- static SL_STATUS_BT_L2CAP_CONNECTION_REQUEST_TIMEOUT = 0x0415;
1310
- /** Returned when local host received a connection-oriented channel connection response */
1311
- /** with an invalid destination CID. */
1312
- static SL_STATUS_BT_L2CAP_INVALID_CID = 0x0416;
1313
- /** Returned when local host application tries to send a command which is not suitable */
1314
- /** for L2CAP channel's current state. */
1315
- static SL_STATUS_BT_L2CAP_WRONG_STATE = 0x0417;
1316
- /** Flash reserved for PS store is full */
1317
- static SL_STATUS_BT_PS_STORE_FULL = 0x041b;
1318
- /** PS key not found */
1319
- static SL_STATUS_BT_PS_KEY_NOT_FOUND = 0x041c;
1320
- /** Mismatched or insufficient security level */
1321
- static SL_STATUS_BT_APPLICATION_MISMATCHED_OR_INSUFFICIENT_SECURITY = 0x041d;
1322
- /** Encrypion/decryption operation failed. */
1323
- static SL_STATUS_BT_APPLICATION_ENCRYPTION_DECRYPTION_ERROR = 0x041e;
1324
- /**Bluetooth controller status codes */
1325
- /** Connection does not exist, or connection open request was cancelled. */
1326
- static SL_STATUS_BT_CTRL_UNKNOWN_CONNECTION_IDENTIFIER = 0x1002;
1327
- /** Pairing or authentication failed due to incorrect results in the pairing or */
1328
- /** authentication procedure. This could be due to an incorrect PIN or Link Key */
1329
- static SL_STATUS_BT_CTRL_AUTHENTICATION_FAILURE = 0x1005;
1330
- /** Pairing failed because of missing PIN, or authentication failed because of missing Key */
1331
- static SL_STATUS_BT_CTRL_PIN_OR_KEY_MISSING = 0x1006;
1332
- /** Controller is out of memory. */
1333
- static SL_STATUS_BT_CTRL_MEMORY_CAPACITY_EXCEEDED = 0x1007;
1334
- /** Link supervision timeout has expired. */
1335
- static SL_STATUS_BT_CTRL_CONNECTION_TIMEOUT = 0x1008;
1336
- /** Controller is at limit of connections it can support. */
1337
- static SL_STATUS_BT_CTRL_CONNECTION_LIMIT_EXCEEDED = 0x1009;
1338
- /** The Synchronous Connection Limit to a Device Exceeded error code indicates that */
1339
- /** the Controller has reached the limit to the number of synchronous connections that */
1340
- /** can be achieved to a device. */
1341
- static SL_STATUS_BT_CTRL_SYNCHRONOUS_CONNECTION_LIMIT_EXCEEDED = 0x100a;
1342
- /** The ACL Connection Already Exists error code indicates that an attempt to create */
1343
- /** a new ACL Connection to a device when there is already a connection to this device. */
1344
- static SL_STATUS_BT_CTRL_ACL_CONNECTION_ALREADY_EXISTS = 0x100b;
1345
- /** Command requested cannot be executed because the Controller is in a state where */
1346
- /** it cannot process this command at this time. */
1347
- static SL_STATUS_BT_CTRL_COMMAND_DISALLOWED = 0x100c;
1348
- /** The Connection Rejected Due To Limited Resources error code indicates that an */
1349
- /** incoming connection was rejected due to limited resources. */
1350
- static SL_STATUS_BT_CTRL_CONNECTION_REJECTED_DUE_TO_LIMITED_RESOURCES = 0x100d;
1351
- /** The Connection Rejected Due To Security Reasons error code indicates that a */
1352
- /** connection was rejected due to security requirements not being fulfilled, like */
1353
- /** authentication or pairing. */
1354
- static SL_STATUS_BT_CTRL_CONNECTION_REJECTED_DUE_TO_SECURITY_REASONS = 0x100e;
1355
- /** The Connection was rejected because this device does not accept the BD_ADDR. */
1356
- /** This may be because the device will only accept connections from specific BD_ADDRs. */
1357
- static SL_STATUS_BT_CTRL_CONNECTION_REJECTED_DUE_TO_UNACCEPTABLE_BD_ADDR = 0x100f;
1358
- /** The Connection Accept Timeout has been exceeded for this connection attempt. */
1359
- static SL_STATUS_BT_CTRL_CONNECTION_ACCEPT_TIMEOUT_EXCEEDED = 0x1010;
1360
- /** A feature or parameter value in the HCI command is not supported. */
1361
- static SL_STATUS_BT_CTRL_UNSUPPORTED_FEATURE_OR_PARAMETER_VALUE = 0x1011;
1362
- /** Command contained invalid parameters. */
1363
- static SL_STATUS_BT_CTRL_INVALID_COMMAND_PARAMETERS = 0x1012;
1364
- /** User on the remote device terminated the connection. */
1365
- static SL_STATUS_BT_CTRL_REMOTE_USER_TERMINATED = 0x1013;
1366
- /** The remote device terminated the connection because of low resources */
1367
- static SL_STATUS_BT_CTRL_REMOTE_DEVICE_TERMINATED_CONNECTION_DUE_TO_LOW_RESOURCES = 0x1014;
1368
- /** Remote Device Terminated Connection due to Power Off */
1369
- static SL_STATUS_BT_CTRL_REMOTE_POWERING_OFF = 0x1015;
1370
- /** Local device terminated the connection. */
1371
- static SL_STATUS_BT_CTRL_CONNECTION_TERMINATED_BY_LOCAL_HOST = 0x1016;
1372
- /** The Controller is disallowing an authentication or pairing procedure because */
1373
- /** too little time has elapsed since the last authentication or pairing attempt failed. */
1374
- static SL_STATUS_BT_CTRL_REPEATED_ATTEMPTS = 0x1017;
1375
- /** The device does not allow pairing. This can be for example, when a device only */
1376
- /** allows pairing during a certain time window after some user input allows pairing */
1377
- static SL_STATUS_BT_CTRL_PAIRING_NOT_ALLOWED = 0x1018;
1378
- /** The remote device does not support the feature associated with the issued command. */
1379
- static SL_STATUS_BT_CTRL_UNSUPPORTED_REMOTE_FEATURE = 0x101a;
1380
- /** No other error code specified is appropriate to use. */
1381
- static SL_STATUS_BT_CTRL_UNSPECIFIED_ERROR = 0x101f;
1382
- /** Connection terminated due to link-layer procedure timeout. */
1383
- static SL_STATUS_BT_CTRL_LL_RESPONSE_TIMEOUT = 0x1022;
1384
- /** LL procedure has collided with the same transaction or procedure that is already */
1385
- /** in progress. */
1386
- static SL_STATUS_BT_CTRL_LL_PROCEDURE_COLLISION = 0x1023;
1387
- /** The requested encryption mode is not acceptable at this time. */
1388
- static SL_STATUS_BT_CTRL_ENCRYPTION_MODE_NOT_ACCEPTABLE = 0x1025;
1389
- /** Link key cannot be changed because a fixed unit key is being used. */
1390
- static SL_STATUS_BT_CTRL_LINK_KEY_CANNOT_BE_CHANGED = 0x1026;
1391
- /** LMP PDU or LL PDU that includes an instant cannot be performed because the instan */
1392
- /** when this would have occurred has passed. */
1393
- static SL_STATUS_BT_CTRL_INSTANT_PASSED = 0x1028;
1394
- /** It was not possible to pair as a unit key was requested and it is not supported. */
1395
- static SL_STATUS_BT_CTRL_PAIRING_WITH_UNIT_KEY_NOT_SUPPORTED = 0x1029;
1396
- /** LMP transaction was started that collides with an ongoing transaction. */
1397
- static SL_STATUS_BT_CTRL_DIFFERENT_TRANSACTION_COLLISION = 0x102a;
1398
- /** The Controller cannot perform channel assessment because it is not supported. */
1399
- static SL_STATUS_BT_CTRL_CHANNEL_ASSESSMENT_NOT_SUPPORTED = 0x102e;
1400
- /** The HCI command or LMP PDU sent is only possible on an encrypted link. */
1401
- static SL_STATUS_BT_CTRL_INSUFFICIENT_SECURITY = 0x102f;
1402
- /** A parameter value requested is outside the mandatory range of parameters for the */
1403
- /** given HCI command or LMP PDU. */
1404
- static SL_STATUS_BT_CTRL_PARAMETER_OUT_OF_MANDATORY_RANGE = 0x1030;
1405
- /** The IO capabilities request or response was rejected because the sending Host does */
1406
- /** not support Secure Simple Pairing even though the receiving Link Manager does. */
1407
- static SL_STATUS_BT_CTRL_SIMPLE_PAIRING_NOT_SUPPORTED_BY_HOST = 0x1037;
1408
- /** The Host is busy with another pairing operation and unable to support the requested */
1409
- /** pairing. The receiving device should retry pairing again later. */
1410
- static SL_STATUS_BT_CTRL_HOST_BUSY_PAIRING = 0x1038;
1411
- /** The Controller could not calculate an appropriate value for the Channel selection operation. */
1412
- static SL_STATUS_BT_CTRL_CONNECTION_REJECTED_DUE_TO_NO_SUITABLE_CHANNEL_FOUND = 0x1039;
1413
- /** Operation was rejected because the controller is busy and unable to process the request. */
1414
- static SL_STATUS_BT_CTRL_CONTROLLER_BUSY = 0x103a;
1415
- /** Remote device terminated the connection because of an unacceptable connection interval. */
1416
- static SL_STATUS_BT_CTRL_UNACCEPTABLE_CONNECTION_INTERVAL = 0x103b;
1417
- /** Ddvertising for a fixed duration completed or, for directed advertising, that advertising */
1418
- /** completed without a connection being created. */
1419
- static SL_STATUS_BT_CTRL_ADVERTISING_TIMEOUT = 0x103c;
1420
- /** Connection was terminated because the Message Integrity Check (MIC) failed on a */
1421
- /** received packet. */
1422
- static SL_STATUS_BT_CTRL_CONNECTION_TERMINATED_DUE_TO_MIC_FAILURE = 0x103d;
1423
- /** LL initiated a connection but the connection has failed to be established. Controller did not receive */
1424
- /** any packets from remote end. */
1425
- static SL_STATUS_BT_CTRL_CONNECTION_FAILED_TO_BE_ESTABLISHED = 0x103e;
1426
- /** The MAC of the 802.11 AMP was requested to connect to a peer, but the connection failed. */
1427
- static SL_STATUS_BT_CTRL_MAC_CONNECTION_FAILED = 0x103f;
1428
- /** The master, at this time, is unable to make a coarse adjustment to the piconet clock, */
1429
- /** using the supplied parameters. Instead the master will attempt to move the clock using clock dragging. */
1430
- static SL_STATUS_BT_CTRL_COARSE_CLOCK_ADJUSTMENT_REJECTED_BUT_WILL_TRY_TO_ADJUST_USING_CLOCK_DRAGGING = 0x1040;
1431
- /** A command was sent from the Host that should identify an Advertising or Sync handle, but the */
1432
- /** Advertising or Sync handle does not exist. */
1433
- static SL_STATUS_BT_CTRL_UNKNOWN_ADVERTISING_IDENTIFIER = 0x1042;
1434
- /** Number of operations requested has been reached and has indicated the completion of the activity */
1435
- /** (e.g., advertising or scanning). */
1436
- static SL_STATUS_BT_CTRL_LIMIT_REACHED = 0x1043;
1437
- /** A request to the Controller issued by the Host and still pending was successfully canceled. */
1438
- static SL_STATUS_BT_CTRL_OPERATION_CANCELLED_BY_HOST = 0x1044;
1439
- /** An attempt was made to send or receive a packet that exceeds the maximum allowed packet l */
1440
- static SL_STATUS_BT_CTRL_PACKET_TOO_LONG = 0x1045;
1441
- /**Bluetooth attribute status codes */
1442
- /** The attribute handle given was not valid on this server */
1443
- static SL_STATUS_BT_ATT_INVALID_HANDLE = 0x1101;
1444
- /** The attribute cannot be read */
1445
- static SL_STATUS_BT_ATT_READ_NOT_PERMITTED = 0x1102;
1446
- /** The attribute cannot be written */
1447
- static SL_STATUS_BT_ATT_WRITE_NOT_PERMITTED = 0x1103;
1448
- /** The attribute PDU was invalid */
1449
- static SL_STATUS_BT_ATT_INVALID_PDU = 0x1104;
1450
- /** The attribute requires authentication before it can be read or written. */
1451
- static SL_STATUS_BT_ATT_INSUFFICIENT_AUTHENTICATION = 0x1105;
1452
- /** Attribute Server does not support the request received from the client. */
1453
- static SL_STATUS_BT_ATT_REQUEST_NOT_SUPPORTED = 0x1106;
1454
- /** Offset specified was past the end of the attribute */
1455
- static SL_STATUS_BT_ATT_INVALID_OFFSET = 0x1107;
1456
- /** The attribute requires authorization before it can be read or written. */
1457
- static SL_STATUS_BT_ATT_INSUFFICIENT_AUTHORIZATION = 0x1108;
1458
- /** Too many prepare writes have been queued */
1459
- static SL_STATUS_BT_ATT_PREPARE_QUEUE_FULL = 0x1109;
1460
- /** No attribute found within the given attribute handle range. */
1461
- static SL_STATUS_BT_ATT_ATT_NOT_FOUND = 0x110a;
1462
- /** The attribute cannot be read or written using the Read Blob Request */
1463
- static SL_STATUS_BT_ATT_ATT_NOT_LONG = 0x110b;
1464
- /** The Encryption Key Size used for encrypting this link is insufficient. */
1465
- static SL_STATUS_BT_ATT_INSUFFICIENT_ENC_KEY_SIZE = 0x110c;
1466
- /** The attribute value length is invalid for the operation */
1467
- static SL_STATUS_BT_ATT_INVALID_ATT_LENGTH = 0x110d;
1468
- /** The attribute request that was requested has encountered an error that was unlikely, and */
1469
- /** therefore could not be completed as requested. */
1470
- static SL_STATUS_BT_ATT_UNLIKELY_ERROR = 0x110e;
1471
- /** The attribute requires encryption before it can be read or written. */
1472
- static SL_STATUS_BT_ATT_INSUFFICIENT_ENCRYPTION = 0x110f;
1473
- /** The attribute type is not a supported grouping attribute as defined by a higher layer */
1474
- /** specification. */
1475
- static SL_STATUS_BT_ATT_UNSUPPORTED_GROUP_TYPE = 0x1110;
1476
- /** Insufficient Resources to complete the request */
1477
- static SL_STATUS_BT_ATT_INSUFFICIENT_RESOURCES = 0x1111;
1478
- /** The server requests the client to rediscover the database. */
1479
- static SL_STATUS_BT_ATT_OUT_OF_SYNC = 0x1112;
1480
- /** The attribute parameter value was not allowed. */
1481
- static SL_STATUS_BT_ATT_VALUE_NOT_ALLOWED = 0x1113;
1482
- /** When this is returned in a BGAPI response, the application tried to read or write the */
1483
- /** value of a user attribute from the GATT databa */
1484
- static SL_STATUS_BT_ATT_APPLICATION = 0x1180;
1485
- /** The requested write operation cannot be fulfilled for reasons other than permissions. */
1486
- static SL_STATUS_BT_ATT_WRITE_REQUEST_REJECTED = 0x11fc;
1487
- /** The Client Characteristic Configuration descriptor is not configured according to the */
1488
- /** requirements of the profile or service. */
1489
- static SL_STATUS_BT_ATT_CLIENT_CHARACTERISTIC_CONFIGURATION_DESCRIPTOR_IMPROPERLY_CONFIGURED = 0x11fd;
1490
- /** The profile or service request cannot be serviced because an operation that has been */
1491
- /** previously triggered is still in progress. */
1492
- static SL_STATUS_BT_ATT_PROCEDURE_ALREADY_IN_PROGRESS = 0x11fe;
1493
- /** The attribute value is out of range as defined by a profile or service specification. */
1494
- static SL_STATUS_BT_ATT_OUT_OF_RANGE = 0x11ff;
1495
- /**Bluetooth Security Manager Protocol status codes */
1496
- /** The user input of passkey failed, for example, the user cancelled the operation */
1497
- static SL_STATUS_BT_SMP_PASSKEY_ENTRY_FAILED = 0x1201;
1498
- /** Out of Band data is not available for authentication */
1499
- static SL_STATUS_BT_SMP_OOB_NOT_AVAILABLE = 0x1202;
1500
- /** The pairing procedure cannot be performed as authentication requirements cannot be */
1501
- /** met due to IO capabilities of one or both devices */
1502
- static SL_STATUS_BT_SMP_AUTHENTICATION_REQUIREMENTS = 0x1203;
1503
- /** The confirm value does not match the calculated compare value */
1504
- static SL_STATUS_BT_SMP_CONFIRM_VALUE_FAILED = 0x1204;
1505
- /** Pairing is not supported by the device */
1506
- static SL_STATUS_BT_SMP_PAIRING_NOT_SUPPORTED = 0x1205;
1507
- /** The resultant encryption key size is insufficient for the security requirements of this device */
1508
- static SL_STATUS_BT_SMP_ENCRYPTION_KEY_SIZE = 0x1206;
1509
- /** The SMP command received is not supported on this device */
1510
- static SL_STATUS_BT_SMP_COMMAND_NOT_SUPPORTED = 0x1207;
1511
- /** Pairing failed due to an unspecified reason */
1512
- static SL_STATUS_BT_SMP_UNSPECIFIED_REASON = 0x1208;
1513
- /** Pairing or authentication procedure is disallowed because too little time has elapsed */
1514
- /** since last pairing request or security request */
1515
- static SL_STATUS_BT_SMP_REPEATED_ATTEMPTS = 0x1209;
1516
- /** The Invalid Parameters error code indicates: the command length is invalid or a parameter */
1517
- /** is outside of the specified range. */
1518
- static SL_STATUS_BT_SMP_INVALID_PARAMETERS = 0x120a;
1519
- /** Indicates to the remote device that the DHKey Check value received doesn't match the one */
1520
- /** calculated by the local device. */
1521
- static SL_STATUS_BT_SMP_DHKEY_CHECK_FAILED = 0x120b;
1522
- /** Indicates that the confirm values in the numeric comparison protocol do not match. */
1523
- static SL_STATUS_BT_SMP_NUMERIC_COMPARISON_FAILED = 0x120c;
1524
- /** Indicates that the pairing over the LE transport failed due to a Pairing Request */
1525
- /** sent over the BR/EDR transport in process. */
1526
- static SL_STATUS_BT_SMP_BREDR_PAIRING_IN_PROGRESS = 0x120d;
1527
- /** Indicates that the BR/EDR Link Key generated on the BR/EDR transport cannot be used */
1528
- /** to derive and distribute keys for the LE transport. */
1529
- static SL_STATUS_BT_SMP_CROSS_TRANSPORT_KEY_DERIVATION_GENERATION_NOT_ALLOWED = 0x120e;
1530
- /** Indicates that the device chose not to accept a distributed key. */
1531
- static SL_STATUS_BT_SMP_KEY_REJECTED = 0x120f;
1532
- /**Bluetooth Mesh status codes */
1533
- /** Returned when trying to add a key or some other unique resource with an ID which already exists */
1534
- static SL_STATUS_BT_MESH_ALREADY_EXISTS = 0x0501;
1535
- /** Returned when trying to manipulate a key or some other resource with an ID which does not exist */
1536
- static SL_STATUS_BT_MESH_DOES_NOT_EXIST = 0x0502;
1537
- /** Returned when an operation cannot be executed because a pre-configured limit for keys, */
1538
- /** key bindings, elements, models, virtual addresses, provisioned devices, or provisioning sessions is reached */
1539
- static SL_STATUS_BT_MESH_LIMIT_REACHED = 0x0503;
1540
- /** Returned when trying to use a reserved address or add a "pre-provisioned" device */
1541
- /** using an address already used by some other device */
1542
- static SL_STATUS_BT_MESH_INVALID_ADDRESS = 0x0504;
1543
- /** In a BGAPI response, the user supplied malformed data; in a BGAPI event, the remote */
1544
- /** end responded with malformed or unrecognized data */
1545
- static SL_STATUS_BT_MESH_MALFORMED_DATA = 0x0505;
1546
- /** An attempt was made to initialize a subsystem that was already initialized. */
1547
- static SL_STATUS_BT_MESH_ALREADY_INITIALIZED = 0x0506;
1548
- /** An attempt was made to use a subsystem that wasn't initialized yet. Call the */
1549
- /** subsystem's init function first. */
1550
- static SL_STATUS_BT_MESH_NOT_INITIALIZED = 0x0507;
1551
- /** Returned when trying to establish a friendship as a Low Power Node, but no acceptable */
1552
- /** friend offer message was received. */
1553
- static SL_STATUS_BT_MESH_NO_FRIEND_OFFER = 0x0508;
1554
- /** Provisioning link was unexpectedly closed before provisioning was complete. */
1555
- static SL_STATUS_BT_MESH_PROV_LINK_CLOSED = 0x0509;
1556
- /** An unrecognized provisioning PDU was received. */
1557
- static SL_STATUS_BT_MESH_PROV_INVALID_PDU = 0x050a;
1558
- /** A provisioning PDU with wrong length or containing field values that are out of */
1559
- /** bounds was received. */
1560
- static SL_STATUS_BT_MESH_PROV_INVALID_PDU_FORMAT = 0x050b;
1561
- /** An unexpected (out of sequence) provisioning PDU was received. */
1562
- static SL_STATUS_BT_MESH_PROV_UNEXPECTED_PDU = 0x050c;
1563
- /** The computed confirmation value did not match the expected value. */
1564
- static SL_STATUS_BT_MESH_PROV_CONFIRMATION_FAILED = 0x050d;
1565
- /** Provisioning could not be continued due to insufficient resources. */
1566
- static SL_STATUS_BT_MESH_PROV_OUT_OF_RESOURCES = 0x050e;
1567
- /** The provisioning data block could not be decrypted. */
1568
- static SL_STATUS_BT_MESH_PROV_DECRYPTION_FAILED = 0x050f;
1569
- /** An unexpected error happened during provisioning. */
1570
- static SL_STATUS_BT_MESH_PROV_UNEXPECTED_ERROR = 0x0510;
1571
- /** Device could not assign unicast addresses to all of its elements. */
1572
- static SL_STATUS_BT_MESH_PROV_CANNOT_ASSIGN_ADDR = 0x0511;
1573
- /** Returned when trying to reuse an address of a previously deleted device before an */
1574
- /** IV Index Update has been executed. */
1575
- static SL_STATUS_BT_MESH_ADDRESS_TEMPORARILY_UNAVAILABLE = 0x0512;
1576
- /** Returned when trying to assign an address that is used by one of the devices in the */
1577
- /** Device Database, or by the Provisioner itself. */
1578
- static SL_STATUS_BT_MESH_ADDRESS_ALREADY_USED = 0x0513;
1579
- /** Application key or publish address are not set */
1580
- static SL_STATUS_BT_MESH_PUBLISH_NOT_CONFIGURED = 0x0514;
1581
- /** Application key is not bound to a model */
1582
- static SL_STATUS_BT_MESH_APP_KEY_NOT_BOUND = 0x0515;
1583
- /**Bluetooth Mesh foundation status codes */
1584
- /** Returned when address in request was not valid */
1585
- static SL_STATUS_BT_MESH_FOUNDATION_INVALID_ADDRESS = 0x1301;
1586
- /** Returned when model identified is not found for a given element */
1587
- static SL_STATUS_BT_MESH_FOUNDATION_INVALID_MODEL = 0x1302;
1588
- /** Returned when the key identified by AppKeyIndex is not stored in the node */
1589
- static SL_STATUS_BT_MESH_FOUNDATION_INVALID_APP_KEY = 0x1303;
1590
- /** Returned when the key identified by NetKeyIndex is not stored in the node */
1591
- static SL_STATUS_BT_MESH_FOUNDATION_INVALID_NET_KEY = 0x1304;
1592
- /** Returned when The node cannot serve the request due to insufficient resources */
1593
- static SL_STATUS_BT_MESH_FOUNDATION_INSUFFICIENT_RESOURCES = 0x1305;
1594
- /** Returned when the key identified is already stored in the node and the new */
1595
- /** NetKey value is different */
1596
- static SL_STATUS_BT_MESH_FOUNDATION_KEY_INDEX_EXISTS = 0x1306;
1597
- /** Returned when the model does not support the publish mechanism */
1598
- static SL_STATUS_BT_MESH_FOUNDATION_INVALID_PUBLISH_PARAMS = 0x1307;
1599
- /** Returned when the model does not support the subscribe mechanism */
1600
- static SL_STATUS_BT_MESH_FOUNDATION_NOT_SUBSCRIBE_MODEL = 0x1308;
1601
- /** Returned when storing of the requested parameters failed */
1602
- static SL_STATUS_BT_MESH_FOUNDATION_STORAGE_FAILURE = 0x1309;
1603
- /** Returned when requested setting is not supported */
1604
- static SL_STATUS_BT_MESH_FOUNDATION_NOT_SUPPORTED = 0x130a;
1605
- /** Returned when the requested update operation cannot be performed due to general constraints */
1606
- static SL_STATUS_BT_MESH_FOUNDATION_CANNOT_UPDATE = 0x130b;
1607
- /** Returned when the requested delete operation cannot be performed due to general constraints */
1608
- static SL_STATUS_BT_MESH_FOUNDATION_CANNOT_REMOVE = 0x130c;
1609
- /** Returned when the requested bind operation cannot be performed due to general constraints */
1610
- static SL_STATUS_BT_MESH_FOUNDATION_CANNOT_BIND = 0x130d;
1611
- /** Returned when The node cannot start advertising with Node Identity or Proxy since the */
1612
- /** maximum number of parallel advertising is reached */
1613
- static SL_STATUS_BT_MESH_FOUNDATION_TEMPORARILY_UNABLE = 0x130e;
1614
- /** Returned when the requested state cannot be set */
1615
- static SL_STATUS_BT_MESH_FOUNDATION_CANNOT_SET = 0x130f;
1616
- /** Returned when an unspecified error took place */
1617
- static SL_STATUS_BT_MESH_FOUNDATION_UNSPECIFIED = 0x1310;
1618
- /** Returned when the NetKeyIndex and AppKeyIndex combination is not valid for a Config AppKey Update */
1619
- static SL_STATUS_BT_MESH_FOUNDATION_INVALID_BINDING = 0x1311;
1620
- /**Wi-Fi Errors */
1621
- /** Invalid firmware keyset */
1622
- static SL_STATUS_WIFI_INVALID_KEY = 0x0b01;
1623
- /** The firmware download took too long */
1624
- static SL_STATUS_WIFI_FIRMWARE_DOWNLOAD_TIMEOUT = 0x0b02;
1625
- /** Unknown request ID or wrong interface ID used */
1626
- static SL_STATUS_WIFI_UNSUPPORTED_MESSAGE_ID = 0x0b03;
1627
- /** The request is successful but some parameters have been ignored */
1628
- static SL_STATUS_WIFI_WARNING = 0x0b04;
1629
- /** No Packets waiting to be received */
1630
- static SL_STATUS_WIFI_NO_PACKET_TO_RECEIVE = 0x0b05;
1631
- /** The sleep mode is granted */
1632
- static SL_STATUS_WIFI_SLEEP_GRANTED = 0x0b08;
1633
- /** The WFx does not go back to sleep */
1634
- static SL_STATUS_WIFI_SLEEP_NOT_GRANTED = 0x0b09;
1635
- /** The SecureLink MAC key was not found */
1636
- static SL_STATUS_WIFI_SECURE_LINK_MAC_KEY_ERROR = 0x0b10;
1637
- /** The SecureLink MAC key is already installed in OTP */
1638
- static SL_STATUS_WIFI_SECURE_LINK_MAC_KEY_ALREADY_BURNED = 0x0b11;
1639
- /** The SecureLink MAC key cannot be installed in RAM */
1640
- static SL_STATUS_WIFI_SECURE_LINK_RAM_MODE_NOT_ALLOWED = 0x0b12;
1641
- /** The SecureLink MAC key installation failed */
1642
- static SL_STATUS_WIFI_SECURE_LINK_FAILED_UNKNOWN_MODE = 0x0b13;
1643
- /** SecureLink key (re)negotiation failed */
1644
- static SL_STATUS_WIFI_SECURE_LINK_EXCHANGE_FAILED = 0x0b14;
1645
- /** The device is in an inappropriate state to perform the request */
1646
- static SL_STATUS_WIFI_WRONG_STATE = 0x0b18;
1647
- /** The request failed due to regulatory limitations */
1648
- static SL_STATUS_WIFI_CHANNEL_NOT_ALLOWED = 0x0b19;
1649
- /** The connection request failed because no suitable AP was found */
1650
- static SL_STATUS_WIFI_NO_MATCHING_AP = 0x0b1a;
1651
- /** The connection request was aborted by host */
1652
- static SL_STATUS_WIFI_CONNECTION_ABORTED = 0x0b1b;
1653
- /** The connection request failed because of a timeout */
1654
- static SL_STATUS_WIFI_CONNECTION_TIMEOUT = 0x0b1c;
1655
- /** The connection request failed because the AP rejected the device */
1656
- static SL_STATUS_WIFI_CONNECTION_REJECTED_BY_AP = 0x0b1d;
1657
- /** The connection request failed because the WPA handshake did not complete successfully */
1658
- static SL_STATUS_WIFI_CONNECTION_AUTH_FAILURE = 0x0b1e;
1659
- /** The request failed because the retry limit was exceeded */
1660
- static SL_STATUS_WIFI_RETRY_EXCEEDED = 0x0b1f;
1661
- /** The request failed because the MSDU life time was exceeded */
1662
- static SL_STATUS_WIFI_TX_LIFETIME_EXCEEDED = 0x0b20;
1663
- }
1664
- exports.SLStatus = SLStatus;
1665
- class EmberStackError extends basic.uint8_t {
1666
- // Error codes that a router uses to notify the message initiator about a broken route.
1667
- static EMBER_ROUTE_ERROR_NO_ROUTE_AVAILABLE = 0x00;
1668
- static EMBER_ROUTE_ERROR_TREE_LINK_FAILURE = 0x01;
1669
- static EMBER_ROUTE_ERROR_NON_TREE_LINK_FAILURE = 0x02;
1670
- static EMBER_ROUTE_ERROR_LOW_BATTERY_LEVEL = 0x03;
1671
- static EMBER_ROUTE_ERROR_NO_ROUTING_CAPACITY = 0x04;
1672
- static EMBER_ROUTE_ERROR_NO_INDIRECT_CAPACITY = 0x05;
1673
- static EMBER_ROUTE_ERROR_INDIRECT_TRANSACTION_EXPIRY = 0x06;
1674
- static EMBER_ROUTE_ERROR_TARGET_DEVICE_UNAVAILABLE = 0x07;
1675
- static EMBER_ROUTE_ERROR_TARGET_ADDRESS_UNALLOCATED = 0x08;
1676
- static EMBER_ROUTE_ERROR_PARENT_LINK_FAILURE = 0x09;
1677
- static EMBER_ROUTE_ERROR_VALIDATE_ROUTE = 0x0a;
1678
- static EMBER_ROUTE_ERROR_SOURCE_ROUTE_FAILURE = 0x0b;
1679
- static EMBER_ROUTE_ERROR_MANY_TO_ONE_ROUTE_FAILURE = 0x0c;
1680
- static EMBER_ROUTE_ERROR_ADDRESS_CONFLICT = 0x0d;
1681
- static EMBER_ROUTE_ERROR_VERIFY_ADDRESSES = 0x0e;
1682
- static EMBER_ROUTE_ERROR_PAN_IDENTIFIER_UPDATE = 0x0f;
1683
- static ZIGBEE_NETWORK_STATUS_NETWORK_ADDRESS_UPDATE = 0x10;
1684
- static ZIGBEE_NETWORK_STATUS_BAD_FRAME_COUNTER = 0x11;
1685
- static ZIGBEE_NETWORK_STATUS_BAD_KEY_SEQUENCE_NUMBER = 0x12;
1686
- static ZIGBEE_NETWORK_STATUS_UNKNOWN_COMMAND = 0x13;
1687
- }
1688
- exports.EmberStackError = EmberStackError;
1689
- class EmberEventUnits extends basic.uint8_t {
1690
- // Either marks an event as inactive or specifies the units for the event
1691
- // execution time.
1692
- // The event is not scheduled to run.
1693
- static EVENT_INACTIVE = 0x00;
1694
- // The execution time is in approximate milliseconds.
1695
- static EVENT_MS_TIME = 0x01;
1696
- // The execution time is in 'binary' quarter seconds (256 approximate
1697
- // milliseconds each).
1698
- static EVENT_QS_TIME = 0x02;
1699
- // The execution time is in 'binary' minutes (65536 approximate milliseconds
1700
- // each).
1701
- static EVENT_MINUTE_TIME = 0x03;
1702
- }
1703
- exports.EmberEventUnits = EmberEventUnits;
1704
- class EmberNodeType extends basic.uint8_t {
1705
- // The type of the node.
1706
- // Device is not joined.
1707
- static UNKNOWN_DEVICE = 0x00;
1708
- // Will relay messages and can act as a parent to other nodes.
1709
- static COORDINATOR = 0x01;
1710
- // Will relay messages and can act as a parent to other nodes.
1711
- static ROUTER = 0x02;
1712
- // Communicates only with its parent and will not relay messages.
1713
- static END_DEVICE = 0x03;
1714
- // An end device whose radio can be turned off to save power. The
1715
- // application must poll to receive messages.
1716
- static SLEEPY_END_DEVICE = 0x04;
1717
- // A sleepy end device that can move through the network.
1718
- static MOBILE_END_DEVICE = 0x05;
1719
- }
1720
- exports.EmberNodeType = EmberNodeType;
1721
- class EmberNetworkStatus extends basic.uint8_t {
1722
- // The possible join states for a node.
1723
- // The node is not associated with a network in any way.
1724
- static NO_NETWORK = 0x00;
1725
- // The node is currently attempting to join a network.
1726
- static JOINING_NETWORK = 0x01;
1727
- // The node is joined to a network.
1728
- static JOINED_NETWORK = 0x02;
1729
- // The node is an end device joined to a network but its parent is not
1730
- // responding.
1731
- static JOINED_NETWORK_NO_PARENT = 0x03;
1732
- // The node is in the process of leaving its current network.
1733
- static LEAVING_NETWORK = 0x04;
1734
- }
1735
- exports.EmberNetworkStatus = EmberNetworkStatus;
1736
- class EmberIncomingMessageType extends basic.uint8_t {
1737
- // Incoming message types.
1738
- // Unicast.
1739
- static INCOMING_UNICAST = 0x00;
1740
- // Unicast reply.
1741
- static INCOMING_UNICAST_REPLY = 0x01;
1742
- // Multicast.
1743
- static INCOMING_MULTICAST = 0x02;
1744
- // Multicast sent by the local device.
1745
- static INCOMING_MULTICAST_LOOPBACK = 0x03;
1746
- // Broadcast.
1747
- static INCOMING_BROADCAST = 0x04;
1748
- // Broadcast sent by the local device.
1749
- static INCOMING_BROADCAST_LOOPBACK = 0x05;
1750
- // Many to one route request.
1751
- static INCOMING_MANY_TO_ONE_ROUTE_REQUEST = 0x06;
1752
- }
1753
- exports.EmberIncomingMessageType = EmberIncomingMessageType;
1754
- class EmberOutgoingMessageType extends basic.uint8_t {
1755
- // Outgoing message types.
1756
- // Unicast sent directly to an EmberNodeId.
1757
- static OUTGOING_DIRECT = 0x00;
1758
- // Unicast sent using an entry in the address table.
1759
- static OUTGOING_VIA_ADDRESS_TABLE = 0x01;
1760
- // Unicast sent using an entry in the binding table.
1761
- static OUTGOING_VIA_BINDING = 0x02;
1762
- // Multicast message. This value is passed to emberMessageSentHandler()
1763
- // only. It may not be passed to emberSendUnicast().
1764
- static OUTGOING_MULTICAST = 0x03;
1765
- // Broadcast message. This value is passed to emberMessageSentHandler()
1766
- // only. It may not be passed to emberSendUnicast().
1767
- static OUTGOING_BROADCAST = 0x04;
1768
- }
1769
- exports.EmberOutgoingMessageType = EmberOutgoingMessageType;
1770
- class EmberMacPassthroughType extends basic.uint8_t {
1771
- // MAC passthrough message type flags.
1772
- // No MAC passthrough messages.
1773
- static MAC_PASSTHROUGH_NONE = 0x00;
1774
- // SE InterPAN messages.
1775
- static MAC_PASSTHROUGH_SE_INTERPAN = 0x01;
1776
- // Legacy EmberNet messages.
1777
- static MAC_PASSTHROUGH_EMBERNET = 0x02;
1778
- // Legacy EmberNet messages filtered by their source address.
1779
- static MAC_PASSTHROUGH_EMBERNET_SOURCE = 0x04;
1780
- static MAC_PASSTHROUGH_APPLICATION = 0x08;
1781
- static MAC_PASSTHROUGH_CUSTOM = 0x10;
1782
- static MAC_PASSTHROUGH_INTERNAL = 0x80;
1783
- }
1784
- exports.EmberMacPassthroughType = EmberMacPassthroughType;
1785
- class EmberBindingType extends basic.uint8_t {
1786
- // Binding types.
1787
- // A binding that is currently not in use.
1788
- static UNUSED_BINDING = 0x00;
1789
- // A unicast binding whose 64-bit identifier is the destination EUI64.
1790
- static UNICAST_BINDING = 0x01;
1791
- // A unicast binding whose 64-bit identifier is the aggregator EUI64.
1792
- static MANY_TO_ONE_BINDING = 0x02;
1793
- // A multicast binding whose 64-bit identifier is the group address. A
1794
- // multicast binding can be used to send messages to the group and to
1795
- // receive messages sent to the group.
1796
- static MULTICAST_BINDING = 0x03;
1797
- }
1798
- exports.EmberBindingType = EmberBindingType;
1799
- class EmberApsOption extends basic.uint16_t {
1800
- // Options to use when sending a message.
1801
- // No options.
1802
- static APS_OPTION_NONE = 0x0000;
1803
- // UNKNOWN: Discovered while receiving data
1804
- static APS_OPTION_UNKNOWN = 0x0008;
1805
- // Send the message using APS Encryption, using the Link Key shared with the
1806
- // destination node to encrypt the data at the APS Level.
1807
- static APS_OPTION_ENCRYPTION = 0x0020;
1808
- // Resend the message using the APS retry mechanism.
1809
- static APS_OPTION_RETRY = 0x0040;
1810
- // Causes a route discovery to be initiated if no route to the destination
1811
- // is known.
1812
- static APS_OPTION_ENABLE_ROUTE_DISCOVERY = 0x0100;
1813
- // Causes a route discovery to be initiated even if one is known.
1814
- static APS_OPTION_FORCE_ROUTE_DISCOVERY = 0x0200;
1815
- // Include the source EUI64 in the network frame.
1816
- static APS_OPTION_SOURCE_EUI64 = 0x0400;
1817
- // Include the destination EUI64 in the network frame.
1818
- static APS_OPTION_DESTINATION_EUI64 = 0x0800;
1819
- // Send a ZDO request to discover the node ID of the destination, if it is
1820
- // not already know.
1821
- static APS_OPTION_ENABLE_ADDRESS_DISCOVERY = 0x1000;
1822
- // Reserved.
1823
- static APS_OPTION_POLL_RESPONSE = 0x2000;
1824
- // This incoming message is a ZDO request not handled by the EmberZNet
1825
- // stack, and the application is responsible for sending a ZDO response.
1826
- // This flag is used only when the ZDO is configured to have requests
1827
- // handled by the application. See the CONFIG_APPLICATION_ZDO_FLAGS
1828
- // configuration parameter for more information.
1829
- static APS_OPTION_ZDO_RESPONSE_REQUIRED = 0x4000;
1830
- // This message is part of a fragmented message. This option may only be set
1831
- // for unicasts. The groupId field gives the index of this fragment in the
1832
- // low-order byte. If the low-order byte is zero this is the first fragment
1833
- // and the high-order byte contains the number of fragments in the message.
1834
- static APS_OPTION_FRAGMENT = 0x8000;
1835
- }
1836
- exports.EmberApsOption = EmberApsOption;
1837
- class EzspNetworkScanType extends basic.uint8_t {
1838
- // Network scan types.
1839
- // An energy scan scans each channel for its RSSI value.
1840
- static ENERGY_SCAN = 0x00;
1841
- // An active scan scans each channel for available networks.
1842
- static ACTIVE_SCAN = 0x01;
1843
- }
1844
- exports.EzspNetworkScanType = EzspNetworkScanType;
1845
- class EmberJoinDecision extends basic.uint8_t {
1846
- // Decision made by the trust center when a node attempts to join.
1847
- // Allow the node to join. The joining node should have a pre-configured
1848
- // key. The security data sent to it will be encrypted with that key.
1849
- static USE_PRECONFIGURED_KEY = 0x00;
1850
- // Allow the node to join. Send the necessary key (the Network Key in
1851
- // Standard Security mode, the Trust Center Master in High Security mode)
1852
- // in-the-clear to the joining device.
1853
- static SEND_KEY_IN_THE_CLEAR = 0x01;
1854
- // Deny join.
1855
- static DENY_JOIN = 0x02;
1856
- // Take no action.
1857
- static NO_ACTION = 0x03;
1858
- }
1859
- exports.EmberJoinDecision = EmberJoinDecision;
1860
- class EmberInitialSecurityBitmask extends basic.uint16_t {
1861
- // This is the Initial Security Bitmask that controls the use of various
1862
- // security features.
1863
- // This enables ZigBee Standard Security on the node.
1864
- static STANDARD_SECURITY_MODE = 0x0000;
1865
- // This enables Distributed Trust Center Mode for the device forming the
1866
- // network. (Previously known as NO_TRUST_CENTER_MODE)
1867
- static DISTRIBUTED_TRUST_CENTER_MODE = 0x0002;
1868
- // This enables a Global Link Key for the Trust Center. All nodes will share
1869
- // the same Trust Center Link Key.
1870
- static TRUST_CENTER_GLOBAL_LINK_KEY = 0x0004;
1871
- // This enables devices that perform MAC Association with a pre-configured
1872
- // Network Key to join the network. It is only set on the Trust Center.
1873
- static PRECONFIGURED_NETWORK_KEY_MODE = 0x0008;
1874
- // This denotes that the preconfiguredKey is not the actual Link Key but a
1875
- // Secret Key known only to the Trust Center. It is hashed with the IEEE
1876
- // Address of the destination device in order to create the actual Link Key
1877
- // used in encryption. This is bit is only used by the Trust Center. The
1878
- // joining device need not set this.
1879
- static TRUST_CENTER_USES_HASHED_LINK_KEY = 0x0084;
1880
- // This denotes that the preconfiguredKey element has valid data that should
1881
- // be used to configure the initial security state.
1882
- static HAVE_PRECONFIGURED_KEY = 0x0100;
1883
- // This denotes that the networkKey element has valid data that should be
1884
- // used to configure the initial security state.
1885
- static HAVE_NETWORK_KEY = 0x0200;
1886
- // This denotes to a joining node that it should attempt to acquire a Trust
1887
- // Center Link Key during joining. This is only necessary if the device does
1888
- // not have a pre-configured key.
1889
- static GET_LINK_KEY_WHEN_JOINING = 0x0400;
1890
- // This denotes that a joining device should only accept an encrypted
1891
- // network key from the Trust Center (using its preconfigured key). A key
1892
- // sent in-the-clear by the Trust Center will be rejected and the join will
1893
- // fail. This option is only valid when utilizing a pre-configured key.
1894
- static REQUIRE_ENCRYPTED_KEY = 0x0800;
1895
- // This denotes whether the device should NOT reset its outgoing frame
1896
- // counters (both NWK and APS) when ::emberSetInitialSecurityState() is
1897
- // called. Normally it is advised to reset the frame counter before joining
1898
- // a new network. However in cases where a device is joining to the same
1899
- // network a again (but not using ::emberRejoinNetwork()) it should keep the
1900
- // NWK and APS frame counters stored in its tokens.
1901
- static NO_FRAME_COUNTER_RESET = 0x1000;
1902
- // This denotes that the device should obtain its preconfigured key from an
1903
- // installation code stored in the manufacturing token. The token contains a
1904
- // value that will be hashed to obtain the actual preconfigured key. If that
1905
- // token is not valid, then the call to emberSetInitialSecurityState() will
1906
- // fail.
1907
- static GET_PRECONFIGURED_KEY_FROM_INSTALL_CODE = 0x2000;
1908
- // This denotes that the
1909
- // ::EmberInitialSecurityState::preconfiguredTrustCenterEui64 has a value in
1910
- // it containing the trust center EUI64. The device will only join a network
1911
- // and accept commands from a trust center with that EUI64. Normally this
1912
- // bit is NOT set, and the EUI64 of the trust center is learned during the
1913
- // join process. When commissioning a device to join onto an existing
1914
- // network, which is using a trust center, and without sending any messages,
1915
- // this bit must be set and the field
1916
- // ::EmberInitialSecurityState::preconfiguredTrustCenterEui64 must be
1917
- // populated with the appropriate EUI64.
1918
- static HAVE_TRUST_CENTER_EUI64 = 0x0040;
1919
- }
1920
- exports.EmberInitialSecurityBitmask = EmberInitialSecurityBitmask;
1921
- class EmberCurrentSecurityBitmask extends basic.uint16_t {
1922
- // This is the Current Security Bitmask that details the use of various
1923
- // security features.
1924
- // This denotes that the device is running in a network with ZigBee Standard
1925
- // Security.
1926
- static STANDARD_SECURITY_MODE = 0x0000;
1927
- // This denotes that the device is running in a network with ZigBee High
1928
- // Security.
1929
- static HIGH_SECURITY_MODE = 0x0001;
1930
- // This denotes that the device is running in a network without a
1931
- // centralized Trust Center.
1932
- static DISTRIBUTED_TRUST_CENTER_MODE = 0x0002;
1933
- // This denotes that the device has a Global Link Key. The Trust Center Link
1934
- // Key is the same across multiple nodes.
1935
- static GLOBAL_LINK_KEY = 0x0004;
1936
- // This denotes that the node has a Trust Center Link Key.
1937
- static HAVE_TRUST_CENTER_LINK_KEY = 0x0010;
1938
- // This denotes that the Trust Center is using a Hashed Link Key.
1939
- static TRUST_CENTER_USES_HASHED_LINK_KEY = 0x0084;
1940
- }
1941
- exports.EmberCurrentSecurityBitmask = EmberCurrentSecurityBitmask;
1942
- class EmberKeyType extends basic.uint8_t {
1943
- // Describes the type of ZigBee security key.
1944
- // A shared key between the Trust Center and a device.
1945
- static TRUST_CENTER_LINK_KEY = 0x01;
1946
- // A shared secret used for deriving keys between the Trust Center and a
1947
- // device
1948
- static TRUST_CENTER_MASTER_KEY = 0x02;
1949
- // The current active Network Key used by all devices in the network.
1950
- static CURRENT_NETWORK_KEY = 0x03;
1951
- // The alternate Network Key that was previously in use, or the newer key
1952
- // that will be switched to.
1953
- static NEXT_NETWORK_KEY = 0x04;
1954
- // An Application Link Key shared with another (non-Trust Center) device.
1955
- static APPLICATION_LINK_KEY = 0x05;
1956
- // An Application Master Key shared secret used to derive an Application
1957
- // Link Key.
1958
- static APPLICATION_MASTER_KEY = 0x06;
1959
- }
1960
- exports.EmberKeyType = EmberKeyType;
1961
- class EmberKeyStructBitmask extends basic.uint16_t {
1962
- // Describes the presence of valid data within the EmberKeyStruct structure.
1963
- // The key has a sequence number associated with it.
1964
- static KEY_HAS_SEQUENCE_NUMBER = 0x0001;
1965
- // The key has an outgoing frame counter associated with it.
1966
- static KEY_HAS_OUTGOING_FRAME_COUNTER = 0x0002;
1967
- // The key has an incoming frame counter associated with it.
1968
- static KEY_HAS_INCOMING_FRAME_COUNTER = 0x0004;
1969
- // The key has a Partner IEEE address associated with it.
1970
- static KEY_HAS_PARTNER_EUI64 = 0x0008;
1971
- }
1972
- exports.EmberKeyStructBitmask = EmberKeyStructBitmask;
1973
- class EmberDeviceUpdate extends basic.uint8_t {
1974
- // The status of the device update.
1975
- static STANDARD_SECURITY_SECURED_REJOIN = 0x0;
1976
- static STANDARD_SECURITY_UNSECURED_JOIN = 0x1;
1977
- static DEVICE_LEFT = 0x2;
1978
- static STANDARD_SECURITY_UNSECURED_REJOIN = 0x3;
1979
- static HIGH_SECURITY_SECURED_REJOIN = 0x4;
1980
- static HIGH_SECURITY_UNSECURED_JOIN = 0x5;
1981
- static HIGH_SECURITY_UNSECURED_REJOIN = 0x7;
1982
- }
1983
- exports.EmberDeviceUpdate = EmberDeviceUpdate;
1984
- class EmberKeyStatus extends basic.uint8_t {
1985
- // The status of the attempt to establish a key.
1986
- static APP_LINK_KEY_ESTABLISHED = 0x01;
1987
- static APP_MASTER_KEY_ESTABLISHED = 0x02;
1988
- static TRUST_CENTER_LINK_KEY_ESTABLISHED = 0x03;
1989
- static KEY_ESTABLISHMENT_TIMEOUT = 0x04;
1990
- static KEY_TABLE_FULL = 0x05;
1991
- static TC_RESPONDED_TO_KEY_REQUEST = 0x06;
1992
- static TC_APP_KEY_SENT_TO_REQUESTER = 0x07;
1993
- static TC_RESPONSE_TO_KEY_REQUEST_FAILED = 0x08;
1994
- static TC_REQUEST_KEY_TYPE_NOT_SUPPORTED = 0x09;
1995
- static TC_NO_LINK_KEY_FOR_REQUESTER = 0x0a;
1996
- static TC_REQUESTER_EUI64_UNKNOWN = 0x0b;
1997
- static TC_RECEIVED_FIRST_APP_KEY_REQUEST = 0x0c;
1998
- static TC_TIMEOUT_WAITING_FOR_SECOND_APP_KEY_REQUEST = 0x0d;
1999
- static TC_NON_MATCHING_APP_KEY_REQUEST_RECEIVED = 0x0e;
2000
- static TC_FAILED_TO_SEND_APP_KEYS = 0x0f;
2001
- static TC_FAILED_TO_STORE_APP_KEY_REQUEST = 0x10;
2002
- static TC_REJECTED_APP_KEY_REQUEST = 0x11;
2003
- }
2004
- exports.EmberKeyStatus = EmberKeyStatus;
2005
- class EmberCounterType extends basic.uint8_t {
2006
- // Defines the events reported to the application by the
2007
- // readAndClearCounters command.
2008
- // The MAC received a broadcast.
2009
- static COUNTER_MAC_RX_BROADCAST = 0;
2010
- // The MAC transmitted a broadcast.
2011
- static COUNTER_MAC_TX_BROADCAST = 1;
2012
- // The MAC received a unicast.
2013
- static COUNTER_MAC_RX_UNICAST = 2;
2014
- // The MAC successfully transmitted a unicast.
2015
- static COUNTER_MAC_TX_UNICAST_SUCCESS = 3;
2016
- // The MAC retried a unicast.
2017
- static COUNTER_MAC_TX_UNICAST_RETRY = 4;
2018
- // The MAC unsuccessfully transmitted a unicast.
2019
- static COUNTER_MAC_TX_UNICAST_FAILED = 5;
2020
- // The APS layer received a data broadcast.
2021
- static COUNTER_APS_DATA_RX_BROADCAST = 6;
2022
- // The APS layer transmitted a data broadcast.
2023
- static COUNTER_APS_DATA_TX_BROADCAST = 7;
2024
- // The APS layer received a data unicast.
2025
- static COUNTER_APS_DATA_RX_UNICAST = 8;
2026
- // The APS layer successfully transmitted a data unicast.
2027
- static COUNTER_APS_DATA_TX_UNICAST_SUCCESS = 9;
2028
- // The APS layer retried a data unicast.
2029
- static COUNTER_APS_DATA_TX_UNICAST_RETRY = 10;
2030
- // The APS layer unsuccessfully transmitted a data unicast.
2031
- static COUNTER_APS_DATA_TX_UNICAST_FAILED = 11;
2032
- // The network layer successfully submitted a new route discovery to the
2033
- // MAC.
2034
- static COUNTER_ROUTE_DISCOVERY_INITIATED = 12;
2035
- // An entry was added to the neighbor table.
2036
- static COUNTER_NEIGHBOR_ADDED = 13;
2037
- // An entry was removed from the neighbor table.
2038
- static COUNTER_NEIGHBOR_REMOVED = 14;
2039
- // A neighbor table entry became stale because it had not been heard from.
2040
- static COUNTER_NEIGHBOR_STALE = 15;
2041
- // A node joined or rejoined to the network via this node.
2042
- static COUNTER_JOIN_INDICATION = 16;
2043
- // An entry was removed from the child table.
2044
- static COUNTER_CHILD_REMOVED = 17;
2045
- // EZSP-UART only. An overflow error occurred in the UART.
2046
- static COUNTER_ASH_OVERFLOW_ERROR = 18;
2047
- // EZSP-UART only. A framing error occurred in the UART.
2048
- static COUNTER_ASH_FRAMING_ERROR = 19;
2049
- // EZSP-UART only. An overrun error occurred in the UART.
2050
- static COUNTER_ASH_OVERRUN_ERROR = 20;
2051
- // A message was dropped at the network layer because the NWK frame counter
2052
- // was not higher than the last message seen from that source.
2053
- static COUNTER_NWK_FRAME_COUNTER_FAILURE = 21;
2054
- // A message was dropped at the APS layer because the APS frame counter was
2055
- // not higher than the last message seen from that source.
2056
- static COUNTER_APS_FRAME_COUNTER_FAILURE = 22;
2057
- // Utility counter for general debugging use.
2058
- static COUNTER_UTILITY = 23;
2059
- // A message was dropped at the APS layer because it had APS encryption but
2060
- // the key associated with the sender has not been authenticated, and thus
2061
- // the key is not authorized for use in APS data messages.
2062
- static COUNTER_APS_LINK_KEY_NOT_AUTHORIZED = 24;
2063
- // A NWK encrypted message was received but dropped because decryption
2064
- // failed.
2065
- static COUNTER_NWK_DECRYPTION_FAILURE = 25;
2066
- // An APS encrypted message was received but dropped because decryption
2067
- // failed.
2068
- static COUNTER_APS_DECRYPTION_FAILURE = 26;
2069
- // The number of times we failed to allocate a set of linked packet buffers.
2070
- // This doesn't necessarily mean that the packet buffer count was 0 at the
2071
- // time, but that the number requested was greater than the number free.
2072
- static COUNTER_ALLOCATE_PACKET_BUFFER_FAILURE = 27;
2073
- // The number of relayed unicast packets.
2074
- static COUNTER_RELAYED_UNICAST = 28;
2075
- // The number of times we dropped a packet due to reaching
2076
- // the preset PHY to MAC queue limit (emMaxPhyToMacQueueLength).
2077
- static COUNTER_PHY_TO_MAC_QUEUE_LIMIT_REACHED = 29;
2078
- // The number of times we dropped a packet due to the
2079
- // packet-validate library checking a packet and rejecting it
2080
- // due to length or other formatting problems.
2081
- static COUNTER_PACKET_VALIDATE_LIBRARY_DROPPED_COUNT = 30;
2082
- // The number of times the NWK retry queue is full and a
2083
- // new message failed to be added.
2084
- static COUNTER_TYPE_NWK_RETRY_OVERFLOW = 31;
2085
- // The number of times the PHY layer was unable to transmit
2086
- // due to a failed CCA.
2087
- static COUNTER_PHY_CCA_FAIL_COUNT = 32;
2088
- // The number of times a NWK broadcast was dropped because
2089
- // the broadcast table was full.
2090
- static COUNTER_BROADCAST_TABLE_FULL = 33;
2091
- // The number of low priority packet traffic arbitration requests.
2092
- static COUNTER_PTA_LO_PRI_REQUESTED = 34;
2093
- // The number of high priority packet traffic arbitration requests.
2094
- static COUNTER_PTA_HI_PRI_REQUESTED = 35;
2095
- // The number of low priority packet traffic arbitration requests denied.
2096
- static COUNTER_PTA_LO_PRI_DENIED = 36;
2097
- // The number of high priority packet traffic arbitration requests denied.
2098
- static COUNTER_PTA_HI_PRI_DENIED = 37;
2099
- // The number of aborted low priority packet traffic arbitration transmissions.
2100
- static COUNTER_PTA_LO_PRI_TX_ABORTED = 38;
2101
- // The number of aborted high priority packet traffic arbitration transmissions.
2102
- static COUNTER_PTA_HI_PRI_TX_ABORTED = 39;
2103
- // A placeholder giving the number of Ember counter types.
2104
- static COUNTER_TYPE_COUNT = 40;
2105
- }
2106
- exports.EmberCounterType = EmberCounterType;
2107
- class EmberJoinMethod extends basic.uint8_t {
2108
- // The type of method used for joining.
2109
- // Normally devices use MAC Association to join a network, which respects
2110
- // the "permit joining" flag in the MAC Beacon. For mobile nodes this value
2111
- // causes the device to use an Ember Mobile Node Join, which is functionally
2112
- // equivalent to a MAC association. This value should be used by default.
2113
- static USE_MAC_ASSOCIATION = 0x0;
2114
- // For those networks where the "permit joining" flag is never turned on,
2115
- // they will need to use a ZigBee NWK Rejoin. This value causes the rejoin
2116
- // to be sent without NWK security and the Trust Center will be asked to
2117
- // send the NWK key to the device. The NWK key sent to the device can be
2118
- // encrypted with the device's corresponding Trust Center link key. That is
2119
- // determined by the ::EmberJoinDecision on the Trust Center returned by the
2120
- // ::emberTrustCenterJoinHandler(). For a mobile node this value will cause
2121
- // it to use an Ember Mobile node rejoin, which is functionally equivalent.
2122
- static USE_NWK_REJOIN = 0x1;
2123
- // For those networks where the "permit joining" flag is never turned on,
2124
- // they will need to use a NWK Rejoin. If those devices have been
2125
- // preconfigured with the NWK key (including sequence number) they can use a
2126
- // secured rejoin. This is only necessary for end devices since they need a
2127
- // parent. Routers can simply use the ::USE_NWK_COMMISSIONING join method
2128
- // below.
2129
- static USE_NWK_REJOIN_HAVE_NWK_KEY = 0x2;
2130
- // For those networks where all network and security information is known
2131
- // ahead of time, a router device may be commissioned such that it does not
2132
- // need to send any messages to begin communicating on the network.
2133
- static USE_NWK_COMMISSIONING = 0x3;
2134
- }
2135
- exports.EmberJoinMethod = EmberJoinMethod;
2136
- class EmberZdoConfigurationFlags extends basic.uint8_t {
2137
- // Flags for controlling which incoming ZDO requests are passed to the
2138
- // application. To see if the application is required to send a ZDO response
2139
- // to an incoming message, the application must check the APS options
2140
- // bitfield within the incomingMessageHandler callback to see if the
2141
- // APS_OPTION_ZDO_RESPONSE_REQUIRED flag is set.
2142
- // Set this flag in order to receive supported ZDO request messages via the
2143
- // incomingMessageHandler callback. A supported ZDO request is one that is
2144
- // handled by the EmberZNet stack. The stack will continue to handle the
2145
- // request and send the appropriate ZDO response even if this configuration
2146
- // option is enabled.
2147
- static APP_RECEIVES_SUPPORTED_ZDO_REQUESTS = 0x01;
2148
- // Set this flag in order to receive unsupported ZDO request messages via
2149
- // the incomingMessageHandler callback. An unsupported ZDO request is one
2150
- // that is not handled by the EmberZNet stack, other than to send a 'not
2151
- // supported' ZDO response. If this configuration option is enabled, the
2152
- // stack will no longer send any ZDO response, and it is the application's
2153
- // responsibility to do so.
2154
- static APP_HANDLES_UNSUPPORTED_ZDO_REQUESTS = 0x02;
2155
- // Set this flag in order to receive the following ZDO request messages via
2156
- // the incomingMessageHandler callback: SIMPLE_DESCRIPTOR_REQUEST,
2157
- // MATCH_DESCRIPTORS_REQUEST, and ACTIVE_ENDPOINTS_REQUEST. If this
2158
- // configuration option is enabled, the stack will no longer send any ZDO
2159
- // response for these requests, and it is the application's responsibility
2160
- // to do so.
2161
- static APP_HANDLES_ZDO_ENDPOINT_REQUESTS = 0x04;
2162
- // Set this flag in order to receive the following ZDO request messages via
2163
- // the incomingMessageHandler callback: BINDING_TABLE_REQUEST, BIND_REQUEST,
2164
- // and UNBIND_REQUEST. If this configuration option is enabled, the stack
2165
- // will no longer send any ZDO response for these requests, and it is the
2166
- // application's responsibility to do so.
2167
- static APP_HANDLES_ZDO_BINDING_REQUESTS = 0x08;
2168
- }
2169
- exports.EmberZdoConfigurationFlags = EmberZdoConfigurationFlags;
2170
- class EmberConcentratorType extends basic.uint16_t {
2171
- // Type of concentrator.
2172
- // A concentrator with insufficient memory to store source routes for the
2173
- // entire network. Route records are sent to the concentrator prior to every
2174
- // inbound APS unicast.
2175
- static LOW_RAM_CONCENTRATOR = 0xfff8;
2176
- // A concentrator with sufficient memory to store source routes for the
2177
- // entire network. Remote nodes stop sending route records once the
2178
- // concentrator has successfully received one.
2179
- static HIGH_RAM_CONCENTRATOR = 0xfff9;
2180
- }
2181
- exports.EmberConcentratorType = EmberConcentratorType;
2182
- class EmberZllState extends basic.uint16_t {
2183
- // ZLL device state identifier.
2184
- // No state.
2185
- static ZLL_STATE_NONE = 0x0000;
2186
- // The device is factory new.
2187
- static ZLL_STATE_FACTORY_NEW = 0x0001;
2188
- // The device is capable of assigning addresses to other devices.
2189
- static ZLL_STATE_ADDRESS_ASSIGNMENT_CAPABLE = 0x0002;
2190
- // The device is initiating a link operation.
2191
- static ZLL_STATE_LINK_INITIATOR = 0x0010;
2192
- // The device is requesting link priority.
2193
- static ZLL_STATE_LINK_PRIORITY_REQUEST = 0x0020;
2194
- // The device is on a non-ZLL network.
2195
- static ZLL_STATE_NON_ZLL_NETWORK = 0x0100;
2196
- }
2197
- exports.EmberZllState = EmberZllState;
2198
- class EmberZllKeyIndex extends basic.uint8_t {
2199
- // ZLL key encryption algorithm enumeration.
2200
- // Key encryption algorithm for use during development.
2201
- static ZLL_KEY_INDEX_DEVELOPMENT = 0x00;
2202
- // Key encryption algorithm shared by all certified devices.
2203
- static ZLL_KEY_INDEX_MASTER = 0x04;
2204
- // Key encryption algorithm for use during development and certification.
2205
- static ZLL_KEY_INDEX_CERTIFICATION = 0x0f;
2206
- }
2207
- exports.EmberZllKeyIndex = EmberZllKeyIndex;
2208
- class EzspZllNetworkOperation extends basic.uint8_t {
2209
- // Differentiates among ZLL network operations.
2210
- static ZLL_FORM_NETWORK = 0x00; // ZLL form network command.
2211
- static ZLL_JOIN_TARGET = 0x01; // ZLL join target command.
2212
- }
2213
- exports.EzspZllNetworkOperation = EzspZllNetworkOperation;
2214
- class EzspSourceRouteOverheadInformation extends basic.uint8_t {
2215
- // Validates Source Route Overhead Information cached.
2216
- // Ezsp source route overhead unknown
2217
- static SOURCE_ROUTE_OVERHEAD_UNKNOWN = 0xff;
2218
- }
2219
- exports.EzspSourceRouteOverheadInformation = EzspSourceRouteOverheadInformation;
2220
- class EmberNetworkInitBitmask extends basic.uint16_t {
2221
- // Bitmask options for emberNetworkInit().
2222
- // No options for Network Init
2223
- static NETWORK_INIT_NO_OPTIONS = 0x0000;
2224
- // Save parent info (node ID and EUI64) in a token during joining/rejoin,
2225
- // and restore on reboot.
2226
- static NETWORK_INIT_PARENT_INFO_IN_TOKEN = 0x0001;
2227
- }
2228
- exports.EmberNetworkInitBitmask = EmberNetworkInitBitmask;
2229
- class EmberZDOCmd extends basic.uint16_t {
2230
- // Device and Service Discovery Server Requests
2231
- static NWK_addr_req = 0x0000;
2232
- static IEEE_addr_req = 0x0001;
2233
- static Node_Desc_req = 0x0002;
2234
- static Power_Desc_req = 0x0003;
2235
- static Simple_Desc_req = 0x0004;
2236
- static Active_EP_req = 0x0005;
2237
- static Match_Desc_req = 0x0006;
2238
- static Complex_Desc_req = 0x0010;
2239
- static User_Desc_req = 0x0011;
2240
- static Discovery_Cache_req = 0x0012;
2241
- static Device_annce = 0x0013;
2242
- static User_Desc_set = 0x0014;
2243
- static System_Server_Discovery_req = 0x0015;
2244
- static Discovery_store_req = 0x0016;
2245
- static Node_Desc_store_req = 0x0017;
2246
- static Active_EP_store_req = 0x0019;
2247
- static Simple_Desc_store_req = 0x001a;
2248
- static Remove_node_cache_req = 0x001b;
2249
- static Find_node_cache_req = 0x001c;
2250
- static Extended_Simple_Desc_req = 0x001d;
2251
- static Extended_Active_EP_req = 0x001e;
2252
- static Parent_annce = 0x001f;
2253
- // Bind Management Server Services Responses
2254
- static End_Device_Bind_req = 0x0020;
2255
- static Bind_req = 0x0021;
2256
- static Unbind_req = 0x0022;
2257
- // Network Management Server Services Requests
2258
- // ... TODO optional stuff ...
2259
- static Mgmt_Lqi_req = 0x0031;
2260
- static Mgmt_Rtg_req = 0x0032;
2261
- // ... TODO optional stuff ...
2262
- static Mgmt_Leave_req = 0x0034;
2263
- static Mgmt_Permit_Joining_req = 0x0036;
2264
- static Mgmt_NWK_Update_req = 0x0038;
2265
- // ... TODO optional stuff ...
2266
- // Responses
2267
- // Device and Service Discovery Server Responses
2268
- static NWK_addr_rsp = 0x8000;
2269
- static IEEE_addr_rsp = 0x8001;
2270
- static Node_Desc_rsp = 0x8002;
2271
- static Power_Desc_rsp = 0x8003;
2272
- static Simple_Desc_rsp = 0x8004;
2273
- static Active_EP_rsp = 0x8005;
2274
- static Match_Desc_rsp = 0x8006;
2275
- static Complex_Desc_rsp = 0x8010;
2276
- static User_Desc_rsp = 0x8011;
2277
- static Discovery_Cache_rsp = 0x8012;
2278
- static User_Desc_conf = 0x8014;
2279
- static System_Server_Discovery_rsp = 0x8015;
2280
- static Discovery_Store_rsp = 0x8016;
2281
- static Node_Desc_store_rsp = 0x8017;
2282
- static Power_Desc_store_rsp = 0x8018;
2283
- static Active_EP_store_rsp = 0x8019;
2284
- static Simple_Desc_store_rsp = 0x801a;
2285
- static Remove_node_cache_rsp = 0x801b;
2286
- static Find_node_cache_rsp = 0x801c;
2287
- static Extended_Simple_Desc_rsp = 0x801d;
2288
- static Extended_Active_EP_rsp = 0x801e;
2289
- static Parent_annce_rsp = 0x801f;
2290
- // Bind Management Server Services Responses
2291
- static End_Device_Bind_rsp = 0x8020;
2292
- static Bind_rsp = 0x8021;
2293
- static Unbind_rsp = 0x8022;
2294
- // ... TODO optional stuff ...
2295
- // Network Management Server Services Responses
2296
- static Mgmt_Lqi_rsp = 0x8031;
2297
- static Mgmt_Rtg_rsp = 0x8032;
2298
- // ... TODO optional stuff ...
2299
- static Mgmt_Leave_rsp = 0x8034;
2300
- static Mgmt_Permit_Joining_rsp = 0x8036;
2301
- // ... TODO optional stuff ...
2302
- static Mgmt_NWK_Update_rsp = 0x8038;
2303
- }
2304
- exports.EmberZDOCmd = EmberZDOCmd;
2305
- class EzspDecisionBitmask extends basic.uint16_t {
2306
- // EZSP Decision bitmask.
2307
- // Disallow joins and rejoins.
2308
- static DEFAULT_CONFIGURATION = 0x0000;
2309
- // Send the network key to all joining devices.
2310
- static ALLOW_JOINS = 0x0001;
2311
- // Send the network key to all rejoining devices.
2312
- static ALLOW_UNSECURED_REJOINS = 0x0002;
2313
- // Send the network key in the clear.
2314
- static SEND_KEY_IN_CLEAR = 0x0004;
2315
- // Do nothing for unsecured rejoins.
2316
- static IGNORE_UNSECURED_REJOINS = 0x0008;
2317
- // Allow joins if there is an entry in the transient key table.
2318
- static JOINS_USE_INSTALL_CODE_KEY = 0x0010;
2319
- // Delay sending the network key to a new joining device.
2320
- static DEFER_JOINS = 0x0020;
2321
- }
2322
- exports.EzspDecisionBitmask = EzspDecisionBitmask;
2323
- class EmberDerivedKeyType extends basic.uint8_t {
2324
- // Derived keys are calculated when performing Zigbee crypto operations.
2325
- // The stack makes use of these derivations.
2326
- // Perform no derivation; use the key as is.
2327
- static NONE = 0;
2328
- // Perform the Key-Transport-Key hash.
2329
- static KEY_TRANSPORT_KEY = 1;
2330
- // Perform the Key-Load-Key hash.
2331
- static KEY_LOAD_KEY = 2;
2332
- // Perform the Verify Key hash.
2333
- static VERIFY_KEY = 3;
2334
- // Perform a simple AES hash of the key for TC backup.
2335
- static TC_SWAP_OUT_KEY = 4;
2336
- // For a TC using hashed link keys, hashed the root key against the supplied EUI in context.
2337
- static TC_HASHED_LINK_KEY = 5;
2338
- }
2339
- exports.EmberDerivedKeyType = EmberDerivedKeyType;
2340
- //# sourceMappingURL=named.js.map