@willieee802/zigbee-herdsman 0.49.0 → 0.49.2
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.
- package/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +38 -0
- package/biome.json +1 -1
- package/dist/adapter/adapter.d.ts +66 -0
- package/dist/adapter/adapter.d.ts.map +1 -0
- package/dist/adapter/adapter.js +110 -0
- package/dist/adapter/adapter.js.map +1 -0
- package/dist/adapter/adapterDiscovery.d.ts +34 -0
- package/dist/adapter/adapterDiscovery.d.ts.map +1 -0
- package/dist/adapter/adapterDiscovery.js +646 -0
- package/dist/adapter/adapterDiscovery.js.map +1 -0
- package/dist/adapter/const.d.ts +9 -0
- package/dist/adapter/const.d.ts.map +1 -0
- package/dist/adapter/const.js +48 -0
- package/dist/adapter/const.js.map +1 -0
- package/dist/adapter/deconz/adapter/deconzAdapter.d.ts +61 -0
- package/dist/adapter/deconz/adapter/deconzAdapter.d.ts.map +1 -0
- package/dist/adapter/deconz/adapter/deconzAdapter.js +719 -0
- package/dist/adapter/deconz/adapter/deconzAdapter.js.map +1 -0
- package/dist/adapter/deconz/driver/constants.d.ts +210 -0
- package/dist/adapter/deconz/driver/constants.d.ts.map +1 -0
- package/dist/adapter/deconz/driver/constants.js +139 -0
- package/dist/adapter/deconz/driver/constants.js.map +1 -0
- package/dist/adapter/deconz/driver/driver.d.ts +111 -0
- package/dist/adapter/deconz/driver/driver.d.ts.map +1 -0
- package/dist/adapter/deconz/driver/driver.js +1362 -0
- package/dist/adapter/deconz/driver/driver.js.map +1 -0
- package/dist/adapter/deconz/driver/frame.d.ts +6 -0
- package/dist/adapter/deconz/driver/frame.d.ts.map +1 -0
- package/dist/adapter/deconz/driver/frame.js +13 -0
- package/dist/adapter/deconz/driver/frame.js.map +1 -0
- package/dist/adapter/deconz/driver/frameParser.d.ts +5 -0
- package/dist/adapter/deconz/driver/frameParser.d.ts.map +1 -0
- package/dist/adapter/deconz/driver/frameParser.js +700 -0
- package/dist/adapter/deconz/driver/frameParser.js.map +1 -0
- package/dist/adapter/deconz/driver/parser.d.ts +10 -0
- package/dist/adapter/deconz/driver/parser.d.ts.map +1 -0
- package/dist/adapter/deconz/driver/parser.js +39 -0
- package/dist/adapter/deconz/driver/parser.js.map +1 -0
- package/dist/adapter/deconz/driver/writer.d.ts +8 -0
- package/dist/adapter/deconz/driver/writer.d.ts.map +1 -0
- package/dist/adapter/deconz/driver/writer.js +53 -0
- package/dist/adapter/deconz/driver/writer.js.map +1 -0
- package/dist/adapter/ember/adapter/emberAdapter.d.ts +338 -0
- package/dist/adapter/ember/adapter/emberAdapter.d.ts.map +1 -0
- package/dist/adapter/ember/adapter/emberAdapter.js +1663 -0
- package/dist/adapter/ember/adapter/emberAdapter.js.map +1 -0
- package/dist/adapter/ember/adapter/endpoints.d.ts +27 -0
- package/dist/adapter/ember/adapter/endpoints.d.ts.map +1 -0
- package/dist/adapter/ember/adapter/endpoints.js +69 -0
- package/dist/adapter/ember/adapter/endpoints.js.map +1 -0
- package/dist/adapter/ember/adapter/oneWaitress.d.ts +112 -0
- package/dist/adapter/ember/adapter/oneWaitress.d.ts.map +1 -0
- package/dist/adapter/ember/adapter/oneWaitress.js +233 -0
- package/dist/adapter/ember/adapter/oneWaitress.js.map +1 -0
- package/dist/adapter/ember/adapter/tokensManager.d.ts +69 -0
- package/dist/adapter/ember/adapter/tokensManager.d.ts.map +1 -0
- package/dist/adapter/ember/adapter/tokensManager.js +684 -0
- package/dist/adapter/ember/adapter/tokensManager.js.map +1 -0
- package/dist/adapter/ember/consts.d.ts +107 -0
- package/dist/adapter/ember/consts.d.ts.map +1 -0
- package/dist/adapter/ember/consts.js +155 -0
- package/dist/adapter/ember/consts.js.map +1 -0
- package/dist/adapter/ember/enums.d.ts +1568 -0
- package/dist/adapter/ember/enums.d.ts.map +1 -0
- package/dist/adapter/ember/enums.js +1697 -0
- package/dist/adapter/ember/enums.js.map +1 -0
- package/dist/adapter/ember/ezsp/buffalo.d.ts +166 -0
- package/dist/adapter/ember/ezsp/buffalo.d.ts.map +1 -0
- package/dist/adapter/ember/ezsp/buffalo.js +1133 -0
- package/dist/adapter/ember/ezsp/buffalo.js.map +1 -0
- package/dist/adapter/ember/ezsp/consts.d.ts +117 -0
- package/dist/adapter/ember/ezsp/consts.d.ts.map +1 -0
- package/dist/adapter/ember/ezsp/consts.js +129 -0
- package/dist/adapter/ember/ezsp/consts.js.map +1 -0
- package/dist/adapter/ember/ezsp/enums.d.ts +1016 -0
- package/dist/adapter/ember/ezsp/enums.d.ts.map +1 -0
- package/dist/adapter/ember/ezsp/enums.js +1103 -0
- package/dist/adapter/ember/ezsp/enums.js.map +1 -0
- package/dist/adapter/ember/ezsp/ezsp.d.ts +2951 -0
- package/dist/adapter/ember/ezsp/ezsp.d.ts.map +1 -0
- package/dist/adapter/ember/ezsp/ezsp.js +7119 -0
- package/dist/adapter/ember/ezsp/ezsp.js.map +1 -0
- package/dist/adapter/ember/ezspError.d.ts +6 -0
- package/dist/adapter/ember/ezspError.d.ts.map +1 -0
- package/dist/adapter/ember/ezspError.js +13 -0
- package/dist/adapter/ember/ezspError.js.map +1 -0
- package/dist/adapter/ember/types.d.ts +787 -0
- package/dist/adapter/ember/types.d.ts.map +1 -0
- package/dist/adapter/ember/types.js +3 -0
- package/dist/adapter/ember/types.js.map +1 -0
- package/dist/adapter/ember/uart/ash.d.ts +434 -0
- package/dist/adapter/ember/uart/ash.d.ts.map +1 -0
- package/dist/adapter/ember/uart/ash.js +1561 -0
- package/dist/adapter/ember/uart/ash.js.map +1 -0
- package/dist/adapter/ember/uart/consts.d.ts +91 -0
- package/dist/adapter/ember/uart/consts.d.ts.map +1 -0
- package/dist/adapter/ember/uart/consts.js +100 -0
- package/dist/adapter/ember/uart/consts.js.map +1 -0
- package/dist/adapter/ember/uart/enums.d.ts +191 -0
- package/dist/adapter/ember/uart/enums.d.ts.map +1 -0
- package/dist/adapter/ember/uart/enums.js +156 -0
- package/dist/adapter/ember/uart/enums.js.map +1 -0
- package/dist/adapter/ember/uart/parser.d.ts +7 -0
- package/dist/adapter/ember/uart/parser.d.ts.map +1 -0
- package/dist/adapter/ember/uart/parser.js +32 -0
- package/dist/adapter/ember/uart/parser.js.map +1 -0
- package/dist/adapter/ember/uart/queues.d.ts +84 -0
- package/dist/adapter/ember/uart/queues.d.ts.map +1 -0
- package/dist/adapter/ember/uart/queues.js +213 -0
- package/dist/adapter/ember/uart/queues.js.map +1 -0
- package/dist/adapter/ember/uart/writer.d.ts +13 -0
- package/dist/adapter/ember/uart/writer.d.ts.map +1 -0
- package/dist/adapter/ember/uart/writer.js +42 -0
- package/dist/adapter/ember/uart/writer.js.map +1 -0
- package/dist/adapter/ember/utils/initters.d.ts +20 -0
- package/dist/adapter/ember/utils/initters.d.ts.map +1 -0
- package/dist/adapter/ember/utils/initters.js +92 -0
- package/dist/adapter/ember/utils/initters.js.map +1 -0
- package/dist/adapter/ember/utils/math.d.ts +41 -0
- package/dist/adapter/ember/utils/math.d.ts.map +1 -0
- package/dist/adapter/ember/utils/math.js +80 -0
- package/dist/adapter/ember/utils/math.js.map +1 -0
- package/dist/adapter/events.d.ts +24 -0
- package/dist/adapter/events.d.ts.map +1 -0
- package/dist/adapter/events.js +3 -0
- package/dist/adapter/events.js.map +1 -0
- package/dist/adapter/ezsp/adapter/backup.d.ts +13 -0
- package/dist/adapter/ezsp/adapter/backup.d.ts.map +1 -0
- package/dist/adapter/ezsp/adapter/backup.js +89 -0
- package/dist/adapter/ezsp/adapter/backup.js.map +1 -0
- package/dist/adapter/ezsp/adapter/ezspAdapter.d.ts +53 -0
- package/dist/adapter/ezsp/adapter/ezspAdapter.d.ts.map +1 -0
- package/dist/adapter/ezsp/adapter/ezspAdapter.js +464 -0
- package/dist/adapter/ezsp/adapter/ezspAdapter.js.map +1 -0
- package/dist/adapter/ezsp/driver/commands.d.ts +37 -0
- package/dist/adapter/ezsp/driver/commands.d.ts.map +1 -0
- package/dist/adapter/ezsp/driver/commands.js +2387 -0
- package/dist/adapter/ezsp/driver/commands.js.map +1 -0
- package/dist/adapter/ezsp/driver/consts.d.ts +11 -0
- package/dist/adapter/ezsp/driver/consts.d.ts.map +1 -0
- package/dist/adapter/ezsp/driver/consts.js +14 -0
- package/dist/adapter/ezsp/driver/consts.js.map +1 -0
- package/dist/adapter/ezsp/driver/driver.d.ts +96 -0
- package/dist/adapter/ezsp/driver/driver.d.ts.map +1 -0
- package/dist/adapter/ezsp/driver/driver.js +852 -0
- package/dist/adapter/ezsp/driver/driver.js.map +1 -0
- package/dist/adapter/ezsp/driver/ezsp.d.ts +104 -0
- package/dist/adapter/ezsp/driver/ezsp.d.ts.map +1 -0
- package/dist/adapter/ezsp/driver/ezsp.js +678 -0
- package/dist/adapter/ezsp/driver/ezsp.js.map +1 -0
- package/dist/adapter/ezsp/driver/frame.d.ts +39 -0
- package/dist/adapter/ezsp/driver/frame.d.ts.map +1 -0
- package/dist/adapter/ezsp/driver/frame.js +101 -0
- package/dist/adapter/ezsp/driver/frame.js.map +1 -0
- package/dist/adapter/ezsp/driver/index.d.ts +4 -0
- package/dist/adapter/ezsp/driver/index.d.ts.map +1 -0
- package/dist/adapter/ezsp/driver/index.js +8 -0
- package/dist/adapter/ezsp/driver/index.js.map +1 -0
- package/dist/adapter/ezsp/driver/multicast.d.ts +16 -0
- package/dist/adapter/ezsp/driver/multicast.d.ts.map +1 -0
- package/dist/adapter/ezsp/driver/multicast.js +74 -0
- package/dist/adapter/ezsp/driver/multicast.js.map +1 -0
- package/dist/adapter/ezsp/driver/parser.d.ts +9 -0
- package/dist/adapter/ezsp/driver/parser.d.ts.map +1 -0
- package/dist/adapter/ezsp/driver/parser.js +109 -0
- package/dist/adapter/ezsp/driver/parser.js.map +1 -0
- package/dist/adapter/ezsp/driver/types/basic.d.ts +62 -0
- package/dist/adapter/ezsp/driver/types/basic.d.ts.map +1 -0
- package/dist/adapter/ezsp/driver/types/basic.js +187 -0
- package/dist/adapter/ezsp/driver/types/basic.js.map +1 -0
- package/dist/adapter/ezsp/driver/types/index.d.ts +9 -0
- package/dist/adapter/ezsp/driver/types/index.d.ts.map +1 -0
- package/dist/adapter/ezsp/driver/types/index.js +137 -0
- package/dist/adapter/ezsp/driver/types/index.js.map +1 -0
- package/dist/adapter/ezsp/driver/types/named.d.ts +1287 -0
- package/dist/adapter/ezsp/driver/types/named.d.ts.map +1 -0
- package/dist/adapter/ezsp/driver/types/named.js +2337 -0
- package/dist/adapter/ezsp/driver/types/named.js.map +1 -0
- package/dist/adapter/ezsp/driver/types/struct.d.ts +270 -0
- package/dist/adapter/ezsp/driver/types/struct.d.ts.map +1 -0
- package/dist/adapter/ezsp/driver/types/struct.js +869 -0
- package/dist/adapter/ezsp/driver/types/struct.js.map +1 -0
- package/dist/adapter/ezsp/driver/uart.d.ts +46 -0
- package/dist/adapter/ezsp/driver/uart.d.ts.map +1 -0
- package/dist/adapter/ezsp/driver/uart.js +390 -0
- package/dist/adapter/ezsp/driver/uart.js.map +1 -0
- package/dist/adapter/ezsp/driver/utils/crc16ccitt.d.ts +5 -0
- package/dist/adapter/ezsp/driver/utils/crc16ccitt.d.ts.map +1 -0
- package/dist/adapter/ezsp/driver/utils/crc16ccitt.js +37 -0
- package/dist/adapter/ezsp/driver/utils/crc16ccitt.js.map +1 -0
- package/dist/adapter/ezsp/driver/utils/index.d.ts +5 -0
- package/dist/adapter/ezsp/driver/utils/index.d.ts.map +1 -0
- package/dist/adapter/ezsp/driver/utils/index.js +35 -0
- package/dist/adapter/ezsp/driver/utils/index.js.map +1 -0
- package/dist/adapter/ezsp/driver/writer.d.ts +12 -0
- package/dist/adapter/ezsp/driver/writer.d.ts.map +1 -0
- package/dist/adapter/ezsp/driver/writer.js +92 -0
- package/dist/adapter/ezsp/driver/writer.js.map +1 -0
- package/dist/adapter/index.d.ts +4 -0
- package/dist/adapter/index.d.ts.map +1 -0
- package/dist/adapter/index.js +41 -0
- package/dist/adapter/index.js.map +1 -0
- package/dist/adapter/serialPort.d.ts +19 -0
- package/dist/adapter/serialPort.d.ts.map +1 -0
- package/dist/adapter/serialPort.js +51 -0
- package/dist/adapter/serialPort.js.map +1 -0
- package/dist/adapter/tstype.d.ts +52 -0
- package/dist/adapter/tstype.d.ts.map +1 -0
- package/dist/adapter/tstype.js +3 -0
- package/dist/adapter/tstype.js.map +1 -0
- package/dist/adapter/utils.d.ts +8 -0
- package/dist/adapter/utils.d.ts.map +1 -0
- package/dist/adapter/utils.js +42 -0
- package/dist/adapter/utils.js.map +1 -0
- package/dist/adapter/z-stack/adapter/adapter-backup.d.ts +62 -0
- package/dist/adapter/z-stack/adapter/adapter-backup.d.ts.map +1 -0
- package/dist/adapter/z-stack/adapter/adapter-backup.js +469 -0
- package/dist/adapter/z-stack/adapter/adapter-backup.js.map +1 -0
- package/dist/adapter/z-stack/adapter/adapter-nv-memory.d.ts +150 -0
- package/dist/adapter/z-stack/adapter/adapter-nv-memory.d.ts.map +1 -0
- package/dist/adapter/z-stack/adapter/adapter-nv-memory.js +279 -0
- package/dist/adapter/z-stack/adapter/adapter-nv-memory.js.map +1 -0
- package/dist/adapter/z-stack/adapter/endpoints.d.ts +12 -0
- package/dist/adapter/z-stack/adapter/endpoints.d.ts.map +1 -0
- package/dist/adapter/z-stack/adapter/endpoints.js +87 -0
- package/dist/adapter/z-stack/adapter/endpoints.js.map +1 -0
- package/dist/adapter/z-stack/adapter/manager.d.ts +86 -0
- package/dist/adapter/z-stack/adapter/manager.d.ts.map +1 -0
- package/dist/adapter/z-stack/adapter/manager.js +493 -0
- package/dist/adapter/z-stack/adapter/manager.js.map +1 -0
- package/dist/adapter/z-stack/adapter/tstype.d.ts +7 -0
- package/dist/adapter/z-stack/adapter/tstype.d.ts.map +1 -0
- package/dist/adapter/z-stack/adapter/tstype.js +10 -0
- package/dist/adapter/z-stack/adapter/tstype.js.map +1 -0
- package/dist/adapter/z-stack/adapter/zStackAdapter.d.ts +85 -0
- package/dist/adapter/z-stack/adapter/zStackAdapter.d.ts.map +1 -0
- package/dist/adapter/z-stack/adapter/zStackAdapter.js +924 -0
- package/dist/adapter/z-stack/adapter/zStackAdapter.js.map +1 -0
- package/dist/adapter/z-stack/constants/af.d.ts +24 -0
- package/dist/adapter/z-stack/constants/af.d.ts.map +1 -0
- package/dist/adapter/z-stack/constants/af.js +28 -0
- package/dist/adapter/z-stack/constants/af.js.map +1 -0
- package/dist/adapter/z-stack/constants/common.d.ts +279 -0
- package/dist/adapter/z-stack/constants/common.d.ts.map +1 -0
- package/dist/adapter/z-stack/constants/common.js +290 -0
- package/dist/adapter/z-stack/constants/common.js.map +1 -0
- package/dist/adapter/z-stack/constants/dbg.d.ts +23 -0
- package/dist/adapter/z-stack/constants/dbg.d.ts.map +1 -0
- package/dist/adapter/z-stack/constants/dbg.js +25 -0
- package/dist/adapter/z-stack/constants/dbg.js.map +1 -0
- package/dist/adapter/z-stack/constants/index.d.ts +11 -0
- package/dist/adapter/z-stack/constants/index.d.ts.map +1 -0
- package/dist/adapter/z-stack/constants/index.js +58 -0
- package/dist/adapter/z-stack/constants/index.js.map +1 -0
- package/dist/adapter/z-stack/constants/mac.d.ts +128 -0
- package/dist/adapter/z-stack/constants/mac.d.ts.map +1 -0
- package/dist/adapter/z-stack/constants/mac.js +130 -0
- package/dist/adapter/z-stack/constants/mac.js.map +1 -0
- package/dist/adapter/z-stack/constants/sapi.d.ts +25 -0
- package/dist/adapter/z-stack/constants/sapi.d.ts.map +1 -0
- package/dist/adapter/z-stack/constants/sapi.js +27 -0
- package/dist/adapter/z-stack/constants/sapi.js.map +1 -0
- package/dist/adapter/z-stack/constants/sys.d.ts +72 -0
- package/dist/adapter/z-stack/constants/sys.d.ts.map +1 -0
- package/dist/adapter/z-stack/constants/sys.js +74 -0
- package/dist/adapter/z-stack/constants/sys.js.map +1 -0
- package/dist/adapter/z-stack/constants/util.d.ts +82 -0
- package/dist/adapter/z-stack/constants/util.d.ts.map +1 -0
- package/dist/adapter/z-stack/constants/util.js +84 -0
- package/dist/adapter/z-stack/constants/util.js.map +1 -0
- package/dist/adapter/z-stack/constants/utils.d.ts +5 -0
- package/dist/adapter/z-stack/constants/utils.d.ts.map +1 -0
- package/dist/adapter/z-stack/constants/utils.js +14 -0
- package/dist/adapter/z-stack/constants/utils.js.map +1 -0
- package/dist/adapter/z-stack/constants/zdo.d.ts +103 -0
- package/dist/adapter/z-stack/constants/zdo.d.ts.map +1 -0
- package/dist/adapter/z-stack/constants/zdo.js +105 -0
- package/dist/adapter/z-stack/constants/zdo.js.map +1 -0
- package/dist/adapter/z-stack/models/startup-options.d.ts +13 -0
- package/dist/adapter/z-stack/models/startup-options.d.ts.map +1 -0
- package/dist/adapter/z-stack/models/startup-options.js +3 -0
- package/dist/adapter/z-stack/models/startup-options.js.map +1 -0
- package/dist/adapter/z-stack/structs/entries/address-manager-entry.d.ts +23 -0
- package/dist/adapter/z-stack/structs/entries/address-manager-entry.d.ts.map +1 -0
- package/dist/adapter/z-stack/structs/entries/address-manager-entry.js +43 -0
- package/dist/adapter/z-stack/structs/entries/address-manager-entry.js.map +1 -0
- package/dist/adapter/z-stack/structs/entries/address-manager-table.d.ts +10 -0
- package/dist/adapter/z-stack/structs/entries/address-manager-table.d.ts.map +1 -0
- package/dist/adapter/z-stack/structs/entries/address-manager-table.js +24 -0
- package/dist/adapter/z-stack/structs/entries/address-manager-table.js.map +1 -0
- package/dist/adapter/z-stack/structs/entries/aps-link-key-data-entry.d.ts +10 -0
- package/dist/adapter/z-stack/structs/entries/aps-link-key-data-entry.d.ts.map +1 -0
- package/dist/adapter/z-stack/structs/entries/aps-link-key-data-entry.js +16 -0
- package/dist/adapter/z-stack/structs/entries/aps-link-key-data-entry.js.map +1 -0
- package/dist/adapter/z-stack/structs/entries/aps-link-key-data-table.d.ts +10 -0
- package/dist/adapter/z-stack/structs/entries/aps-link-key-data-table.d.ts.map +1 -0
- package/dist/adapter/z-stack/structs/entries/aps-link-key-data-table.js +25 -0
- package/dist/adapter/z-stack/structs/entries/aps-link-key-data-table.js.map +1 -0
- package/dist/adapter/z-stack/structs/entries/aps-tc-link-key-entry.d.ts +10 -0
- package/dist/adapter/z-stack/structs/entries/aps-tc-link-key-entry.d.ts.map +1 -0
- package/dist/adapter/z-stack/structs/entries/aps-tc-link-key-entry.js +23 -0
- package/dist/adapter/z-stack/structs/entries/aps-tc-link-key-entry.js.map +1 -0
- package/dist/adapter/z-stack/structs/entries/aps-tc-link-key-table.d.ts +10 -0
- package/dist/adapter/z-stack/structs/entries/aps-tc-link-key-table.d.ts.map +1 -0
- package/dist/adapter/z-stack/structs/entries/aps-tc-link-key-table.js +25 -0
- package/dist/adapter/z-stack/structs/entries/aps-tc-link-key-table.js.map +1 -0
- package/dist/adapter/z-stack/structs/entries/channel-list.d.ts +8 -0
- package/dist/adapter/z-stack/structs/entries/channel-list.d.ts.map +1 -0
- package/dist/adapter/z-stack/structs/entries/channel-list.js +12 -0
- package/dist/adapter/z-stack/structs/entries/channel-list.js.map +1 -0
- package/dist/adapter/z-stack/structs/entries/has-configured.d.ts +8 -0
- package/dist/adapter/z-stack/structs/entries/has-configured.d.ts.map +1 -0
- package/dist/adapter/z-stack/structs/entries/has-configured.js +22 -0
- package/dist/adapter/z-stack/structs/entries/has-configured.js.map +1 -0
- package/dist/adapter/z-stack/structs/entries/index.d.ts +17 -0
- package/dist/adapter/z-stack/structs/entries/index.d.ts.map +1 -0
- package/dist/adapter/z-stack/structs/entries/index.js +33 -0
- package/dist/adapter/z-stack/structs/entries/index.js.map +1 -0
- package/dist/adapter/z-stack/structs/entries/nib.d.ts +10 -0
- package/dist/adapter/z-stack/structs/entries/nib.d.ts.map +1 -0
- package/dist/adapter/z-stack/structs/entries/nib.js +72 -0
- package/dist/adapter/z-stack/structs/entries/nib.js.map +1 -0
- package/dist/adapter/z-stack/structs/entries/nwk-key-descriptor.d.ts +10 -0
- package/dist/adapter/z-stack/structs/entries/nwk-key-descriptor.d.ts.map +1 -0
- package/dist/adapter/z-stack/structs/entries/nwk-key-descriptor.js +21 -0
- package/dist/adapter/z-stack/structs/entries/nwk-key-descriptor.js.map +1 -0
- package/dist/adapter/z-stack/structs/entries/nwk-key.d.ts +8 -0
- package/dist/adapter/z-stack/structs/entries/nwk-key.d.ts.map +1 -0
- package/dist/adapter/z-stack/structs/entries/nwk-key.js +19 -0
- package/dist/adapter/z-stack/structs/entries/nwk-key.js.map +1 -0
- package/dist/adapter/z-stack/structs/entries/nwk-pan-id.d.ts +8 -0
- package/dist/adapter/z-stack/structs/entries/nwk-pan-id.d.ts.map +1 -0
- package/dist/adapter/z-stack/structs/entries/nwk-pan-id.js +12 -0
- package/dist/adapter/z-stack/structs/entries/nwk-pan-id.js.map +1 -0
- package/dist/adapter/z-stack/structs/entries/nwk-sec-material-descriptor-entry.d.ts +13 -0
- package/dist/adapter/z-stack/structs/entries/nwk-sec-material-descriptor-entry.d.ts.map +1 -0
- package/dist/adapter/z-stack/structs/entries/nwk-sec-material-descriptor-entry.js +22 -0
- package/dist/adapter/z-stack/structs/entries/nwk-sec-material-descriptor-entry.js.map +1 -0
- package/dist/adapter/z-stack/structs/entries/nwk-sec-material-descriptor-table.d.ts +10 -0
- package/dist/adapter/z-stack/structs/entries/nwk-sec-material-descriptor-table.d.ts.map +1 -0
- package/dist/adapter/z-stack/structs/entries/nwk-sec-material-descriptor-table.js +24 -0
- package/dist/adapter/z-stack/structs/entries/nwk-sec-material-descriptor-table.js.map +1 -0
- package/dist/adapter/z-stack/structs/entries/security-manager-entry.d.ts +20 -0
- package/dist/adapter/z-stack/structs/entries/security-manager-entry.d.ts.map +1 -0
- package/dist/adapter/z-stack/structs/entries/security-manager-entry.js +35 -0
- package/dist/adapter/z-stack/structs/entries/security-manager-entry.js.map +1 -0
- package/dist/adapter/z-stack/structs/entries/security-manager-table.d.ts +10 -0
- package/dist/adapter/z-stack/structs/entries/security-manager-table.d.ts.map +1 -0
- package/dist/adapter/z-stack/structs/entries/security-manager-table.js +25 -0
- package/dist/adapter/z-stack/structs/entries/security-manager-table.js.map +1 -0
- package/dist/adapter/z-stack/structs/index.d.ts +5 -0
- package/dist/adapter/z-stack/structs/index.d.ts.map +1 -0
- package/dist/adapter/z-stack/structs/index.js +21 -0
- package/dist/adapter/z-stack/structs/index.js.map +1 -0
- package/dist/adapter/z-stack/structs/serializable-memory-object.d.ts +13 -0
- package/dist/adapter/z-stack/structs/serializable-memory-object.d.ts.map +1 -0
- package/dist/adapter/z-stack/structs/serializable-memory-object.js +3 -0
- package/dist/adapter/z-stack/structs/serializable-memory-object.js.map +1 -0
- package/dist/adapter/z-stack/structs/struct.d.ts +99 -0
- package/dist/adapter/z-stack/structs/struct.d.ts.map +1 -0
- package/dist/adapter/z-stack/structs/struct.js +308 -0
- package/dist/adapter/z-stack/structs/struct.js.map +1 -0
- package/dist/adapter/z-stack/structs/table.d.ts +94 -0
- package/dist/adapter/z-stack/structs/table.d.ts.map +1 -0
- package/dist/adapter/z-stack/structs/table.js +167 -0
- package/dist/adapter/z-stack/structs/table.js.map +1 -0
- package/dist/adapter/z-stack/unpi/constants.d.ts +29 -0
- package/dist/adapter/z-stack/unpi/constants.d.ts.map +1 -0
- package/dist/adapter/z-stack/unpi/constants.js +40 -0
- package/dist/adapter/z-stack/unpi/constants.js.map +1 -0
- package/dist/adapter/z-stack/unpi/frame.d.ts +15 -0
- package/dist/adapter/z-stack/unpi/frame.d.ts.map +1 -0
- package/dist/adapter/z-stack/unpi/frame.js +53 -0
- package/dist/adapter/z-stack/unpi/frame.js.map +1 -0
- package/dist/adapter/z-stack/unpi/index.d.ts +5 -0
- package/dist/adapter/z-stack/unpi/index.d.ts.map +1 -0
- package/dist/adapter/z-stack/unpi/index.js +44 -0
- package/dist/adapter/z-stack/unpi/index.js.map +1 -0
- package/dist/adapter/z-stack/unpi/parser.d.ts +10 -0
- package/dist/adapter/z-stack/unpi/parser.d.ts.map +1 -0
- package/dist/adapter/z-stack/unpi/parser.js +94 -0
- package/dist/adapter/z-stack/unpi/parser.js.map +1 -0
- package/dist/adapter/z-stack/unpi/writer.d.ts +9 -0
- package/dist/adapter/z-stack/unpi/writer.d.ts.map +1 -0
- package/dist/adapter/z-stack/unpi/writer.js +66 -0
- package/dist/adapter/z-stack/unpi/writer.js.map +1 -0
- package/dist/adapter/z-stack/utils/channel-list.d.ts +21 -0
- package/dist/adapter/z-stack/utils/channel-list.d.ts.map +1 -0
- package/dist/adapter/z-stack/utils/channel-list.js +45 -0
- package/dist/adapter/z-stack/utils/channel-list.js.map +1 -0
- package/dist/adapter/z-stack/utils/index.d.ts +3 -0
- package/dist/adapter/z-stack/utils/index.d.ts.map +1 -0
- package/dist/adapter/z-stack/utils/index.js +19 -0
- package/dist/adapter/z-stack/utils/index.js.map +1 -0
- package/dist/adapter/z-stack/utils/network-options.d.ts +9 -0
- package/dist/adapter/z-stack/utils/network-options.d.ts.map +1 -0
- package/dist/adapter/z-stack/utils/network-options.js +22 -0
- package/dist/adapter/z-stack/utils/network-options.js.map +1 -0
- package/dist/adapter/z-stack/znp/buffaloZnp.d.ts +10 -0
- package/dist/adapter/z-stack/znp/buffaloZnp.d.ts.map +1 -0
- package/dist/adapter/z-stack/znp/buffaloZnp.js +162 -0
- package/dist/adapter/z-stack/znp/buffaloZnp.js.map +1 -0
- package/dist/adapter/z-stack/znp/definition.d.ts +18 -0
- package/dist/adapter/z-stack/znp/definition.d.ts.map +1 -0
- package/dist/adapter/z-stack/znp/definition.js +2703 -0
- package/dist/adapter/z-stack/znp/definition.js.map +1 -0
- package/dist/adapter/z-stack/znp/index.d.ts +3 -0
- package/dist/adapter/z-stack/znp/index.d.ts.map +1 -0
- package/dist/adapter/z-stack/znp/index.js +8 -0
- package/dist/adapter/z-stack/znp/index.js.map +1 -0
- package/dist/adapter/z-stack/znp/parameterType.d.ts +19 -0
- package/dist/adapter/z-stack/znp/parameterType.d.ts.map +1 -0
- package/dist/adapter/z-stack/znp/parameterType.js +22 -0
- package/dist/adapter/z-stack/znp/parameterType.js.map +1 -0
- package/dist/adapter/z-stack/znp/tstype.d.ts +40 -0
- package/dist/adapter/z-stack/znp/tstype.d.ts.map +1 -0
- package/dist/adapter/z-stack/znp/tstype.js +3 -0
- package/dist/adapter/z-stack/znp/tstype.js.map +1 -0
- package/dist/adapter/z-stack/znp/utils.d.ts +4 -0
- package/dist/adapter/z-stack/znp/utils.d.ts.map +1 -0
- package/dist/adapter/z-stack/znp/utils.js +12 -0
- package/dist/adapter/z-stack/znp/utils.js.map +1 -0
- package/dist/adapter/z-stack/znp/znp.d.ts +43 -0
- package/dist/adapter/z-stack/znp/znp.d.ts.map +1 -0
- package/dist/adapter/z-stack/znp/znp.js +295 -0
- package/dist/adapter/z-stack/znp/znp.js.map +1 -0
- package/dist/adapter/z-stack/znp/zpiObject.d.ts +19 -0
- package/dist/adapter/z-stack/znp/zpiObject.d.ts.map +1 -0
- package/dist/adapter/z-stack/znp/zpiObject.js +121 -0
- package/dist/adapter/z-stack/znp/zpiObject.js.map +1 -0
- package/dist/adapter/zboss/adapter/zbossAdapter.d.ts +44 -0
- package/dist/adapter/zboss/adapter/zbossAdapter.d.ts.map +1 -0
- package/dist/adapter/zboss/adapter/zbossAdapter.js +365 -0
- package/dist/adapter/zboss/adapter/zbossAdapter.js.map +1 -0
- package/dist/adapter/zboss/commands.d.ts +20 -0
- package/dist/adapter/zboss/commands.d.ts.map +1 -0
- package/dist/adapter/zboss/commands.js +1141 -0
- package/dist/adapter/zboss/commands.js.map +1 -0
- package/dist/adapter/zboss/consts.d.ts +9 -0
- package/dist/adapter/zboss/consts.d.ts.map +1 -0
- package/dist/adapter/zboss/consts.js +12 -0
- package/dist/adapter/zboss/consts.js.map +1 -0
- package/dist/adapter/zboss/driver.d.ts +55 -0
- package/dist/adapter/zboss/driver.d.ts.map +1 -0
- package/dist/adapter/zboss/driver.js +358 -0
- package/dist/adapter/zboss/driver.js.map +1 -0
- package/dist/adapter/zboss/enums.d.ts +301 -0
- package/dist/adapter/zboss/enums.d.ts.map +1 -0
- package/dist/adapter/zboss/enums.js +359 -0
- package/dist/adapter/zboss/enums.js.map +1 -0
- package/dist/adapter/zboss/frame.d.ts +34 -0
- package/dist/adapter/zboss/frame.d.ts.map +1 -0
- package/dist/adapter/zboss/frame.js +200 -0
- package/dist/adapter/zboss/frame.js.map +1 -0
- package/dist/adapter/zboss/reader.d.ts +8 -0
- package/dist/adapter/zboss/reader.d.ts.map +1 -0
- package/dist/adapter/zboss/reader.js +59 -0
- package/dist/adapter/zboss/reader.js.map +1 -0
- package/dist/adapter/zboss/types.d.ts +2 -0
- package/dist/adapter/zboss/types.d.ts.map +1 -0
- package/dist/adapter/zboss/types.js +3 -0
- package/dist/adapter/zboss/types.js.map +1 -0
- package/dist/adapter/zboss/uart.d.ts +38 -0
- package/dist/adapter/zboss/uart.d.ts.map +1 -0
- package/dist/adapter/zboss/uart.js +373 -0
- package/dist/adapter/zboss/uart.js.map +1 -0
- package/dist/adapter/zboss/utils.d.ts +9 -0
- package/dist/adapter/zboss/utils.d.ts.map +1 -0
- package/dist/adapter/zboss/utils.js +56 -0
- package/dist/adapter/zboss/utils.js.map +1 -0
- package/dist/adapter/zboss/writer.d.ts +14 -0
- package/dist/adapter/zboss/writer.d.ts.map +1 -0
- package/dist/adapter/zboss/writer.js +41 -0
- package/dist/adapter/zboss/writer.js.map +1 -0
- package/dist/adapter/zigate/adapter/patchZdoBuffaloBE.d.ts +5 -0
- package/dist/adapter/zigate/adapter/patchZdoBuffaloBE.d.ts.map +1 -0
- package/dist/adapter/zigate/adapter/patchZdoBuffaloBE.js +26 -0
- package/dist/adapter/zigate/adapter/patchZdoBuffaloBE.js.map +1 -0
- package/dist/adapter/zigate/adapter/zigateAdapter.d.ts +63 -0
- package/dist/adapter/zigate/adapter/zigateAdapter.d.ts.map +1 -0
- package/dist/adapter/zigate/adapter/zigateAdapter.js +462 -0
- package/dist/adapter/zigate/adapter/zigateAdapter.js.map +1 -0
- package/dist/adapter/zigate/driver/buffaloZiGate.d.ts +22 -0
- package/dist/adapter/zigate/driver/buffaloZiGate.d.ts.map +1 -0
- package/dist/adapter/zigate/driver/buffaloZiGate.js +198 -0
- package/dist/adapter/zigate/driver/buffaloZiGate.js.map +1 -0
- package/dist/adapter/zigate/driver/commandType.d.ts +42 -0
- package/dist/adapter/zigate/driver/commandType.d.ts.map +1 -0
- package/dist/adapter/zigate/driver/commandType.js +381 -0
- package/dist/adapter/zigate/driver/commandType.js.map +1 -0
- package/dist/adapter/zigate/driver/constants.d.ts +116 -0
- package/dist/adapter/zigate/driver/constants.d.ts.map +1 -0
- package/dist/adapter/zigate/driver/constants.js +147 -0
- package/dist/adapter/zigate/driver/constants.js.map +1 -0
- package/dist/adapter/zigate/driver/frame.d.ts +26 -0
- package/dist/adapter/zigate/driver/frame.d.ts.map +1 -0
- package/dist/adapter/zigate/driver/frame.js +161 -0
- package/dist/adapter/zigate/driver/frame.js.map +1 -0
- package/dist/adapter/zigate/driver/messageType.d.ts +13 -0
- package/dist/adapter/zigate/driver/messageType.d.ts.map +1 -0
- package/dist/adapter/zigate/driver/messageType.js +281 -0
- package/dist/adapter/zigate/driver/messageType.js.map +1 -0
- package/dist/adapter/zigate/driver/parameterType.d.ts +25 -0
- package/dist/adapter/zigate/driver/parameterType.d.ts.map +1 -0
- package/dist/adapter/zigate/driver/parameterType.js +31 -0
- package/dist/adapter/zigate/driver/parameterType.js.map +1 -0
- package/dist/adapter/zigate/driver/ziGateObject.d.ts +23 -0
- package/dist/adapter/zigate/driver/ziGateObject.d.ts.map +1 -0
- package/dist/adapter/zigate/driver/ziGateObject.js +117 -0
- package/dist/adapter/zigate/driver/ziGateObject.js.map +1 -0
- package/dist/adapter/zigate/driver/zigate.d.ts +47 -0
- package/dist/adapter/zigate/driver/zigate.d.ts.map +1 -0
- package/dist/adapter/zigate/driver/zigate.js +364 -0
- package/dist/adapter/zigate/driver/zigate.js.map +1 -0
- package/dist/adapter/zoh/adapter/utils.d.ts +16 -0
- package/dist/adapter/zoh/adapter/utils.d.ts.map +1 -0
- package/dist/adapter/zoh/adapter/utils.js +31 -0
- package/dist/adapter/zoh/adapter/utils.js.map +1 -0
- package/dist/adapter/zoh/adapter/zohAdapter.d.ts +100 -0
- package/dist/adapter/zoh/adapter/zohAdapter.d.ts.map +1 -0
- package/dist/adapter/zoh/adapter/zohAdapter.js +715 -0
- package/dist/adapter/zoh/adapter/zohAdapter.js.map +1 -0
- package/dist/buffalo/buffalo.d.ts +67 -0
- package/dist/buffalo/buffalo.d.ts.map +1 -0
- package/dist/buffalo/buffalo.js +275 -0
- package/dist/buffalo/buffalo.js.map +1 -0
- package/dist/buffalo/index.d.ts +2 -0
- package/dist/buffalo/index.d.ts.map +1 -0
- package/dist/buffalo/index.js +6 -0
- package/dist/buffalo/index.js.map +1 -0
- package/dist/controller/controller.d.ts +155 -0
- package/dist/controller/controller.d.ts.map +1 -0
- package/dist/controller/controller.js +874 -0
- package/dist/controller/controller.js.map +1 -0
- package/dist/controller/database.d.ts +21 -0
- package/dist/controller/database.d.ts.map +1 -0
- package/dist/controller/database.js +128 -0
- package/dist/controller/database.js.map +1 -0
- package/dist/controller/events.d.ts +44 -0
- package/dist/controller/events.d.ts.map +1 -0
- package/dist/controller/events.js +3 -0
- package/dist/controller/events.js.map +1 -0
- package/dist/controller/greenPower.d.ts +78 -0
- package/dist/controller/greenPower.d.ts.map +1 -0
- package/dist/controller/greenPower.js +425 -0
- package/dist/controller/greenPower.js.map +1 -0
- package/dist/controller/helpers/index.d.ts +2 -0
- package/dist/controller/helpers/index.d.ts.map +1 -0
- package/dist/controller/helpers/index.js +38 -0
- package/dist/controller/helpers/index.js.map +1 -0
- package/dist/controller/helpers/installCodes.d.ts +27 -0
- package/dist/controller/helpers/installCodes.d.ts.map +1 -0
- package/dist/controller/helpers/installCodes.js +90 -0
- package/dist/controller/helpers/installCodes.js.map +1 -0
- package/dist/controller/helpers/ota.d.ts +53 -0
- package/dist/controller/helpers/ota.d.ts.map +1 -0
- package/dist/controller/helpers/ota.js +467 -0
- package/dist/controller/helpers/ota.js.map +1 -0
- package/dist/controller/helpers/request.d.ts +22 -0
- package/dist/controller/helpers/request.d.ts.map +1 -0
- package/dist/controller/helpers/request.js +82 -0
- package/dist/controller/helpers/request.js.map +1 -0
- package/dist/controller/helpers/requestQueue.d.ts +13 -0
- package/dist/controller/helpers/requestQueue.d.ts.map +1 -0
- package/dist/controller/helpers/requestQueue.js +109 -0
- package/dist/controller/helpers/requestQueue.js.map +1 -0
- package/dist/controller/helpers/zclFrameConverter.d.ts +7 -0
- package/dist/controller/helpers/zclFrameConverter.d.ts.map +1 -0
- package/dist/controller/helpers/zclFrameConverter.js +84 -0
- package/dist/controller/helpers/zclFrameConverter.js.map +1 -0
- package/dist/controller/helpers/zclTransactionSequenceNumber.d.ts +8 -0
- package/dist/controller/helpers/zclTransactionSequenceNumber.d.ts.map +1 -0
- package/dist/controller/helpers/zclTransactionSequenceNumber.js +14 -0
- package/dist/controller/helpers/zclTransactionSequenceNumber.js.map +1 -0
- package/dist/controller/index.d.ts +6 -0
- package/dist/controller/index.d.ts.map +1 -0
- package/dist/controller/index.js +9 -0
- package/dist/controller/index.js.map +1 -0
- package/dist/controller/model/device.d.ts +150 -0
- package/dist/controller/model/device.d.ts.map +1 -0
- package/dist/controller/model/device.js +1396 -0
- package/dist/controller/model/device.js.map +1 -0
- package/dist/controller/model/endpoint.d.ts +150 -0
- package/dist/controller/model/endpoint.d.ts.map +1 -0
- package/dist/controller/model/endpoint.js +822 -0
- package/dist/controller/model/endpoint.js.map +1 -0
- package/dist/controller/model/entity.d.ts +18 -0
- package/dist/controller/model/entity.d.ts.map +1 -0
- package/dist/controller/model/entity.js +35 -0
- package/dist/controller/model/entity.js.map +1 -0
- package/dist/controller/model/group.d.ts +50 -0
- package/dist/controller/model/group.d.ts.map +1 -0
- package/dist/controller/model/group.js +343 -0
- package/dist/controller/model/group.js.map +1 -0
- package/dist/controller/model/index.d.ts +6 -0
- package/dist/controller/model/index.d.ts.map +1 -0
- package/dist/controller/model/index.js +14 -0
- package/dist/controller/model/index.js.map +1 -0
- package/dist/controller/model/konnextConfig.d.ts +7 -0
- package/dist/controller/model/konnextConfig.d.ts.map +1 -0
- package/dist/controller/model/konnextConfig.js +3 -0
- package/dist/controller/model/konnextConfig.js.map +1 -0
- package/dist/controller/model/zigbeeEntity.d.ts +8 -0
- package/dist/controller/model/zigbeeEntity.d.ts.map +1 -0
- package/dist/controller/model/zigbeeEntity.js +11 -0
- package/dist/controller/model/zigbeeEntity.js.map +1 -0
- package/dist/controller/touchlink.d.ts +20 -0
- package/dist/controller/touchlink.d.ts.map +1 -0
- package/dist/controller/touchlink.js +169 -0
- package/dist/controller/touchlink.js.map +1 -0
- package/dist/controller/tstype.d.ts +152 -0
- package/dist/controller/tstype.d.ts.map +1 -0
- package/dist/controller/tstype.js +3 -0
- package/dist/controller/tstype.js.map +1 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +54 -0
- package/dist/index.js.map +1 -0
- package/dist/models/backup-storage-legacy.d.ts +25 -0
- package/dist/models/backup-storage-legacy.d.ts.map +1 -0
- package/dist/models/backup-storage-legacy.js +3 -0
- package/dist/models/backup-storage-legacy.js.map +1 -0
- package/dist/models/backup-storage-unified.d.ts +50 -0
- package/dist/models/backup-storage-unified.d.ts.map +1 -0
- package/dist/models/backup-storage-unified.js +3 -0
- package/dist/models/backup-storage-unified.js.map +1 -0
- package/dist/models/backup.d.ts +37 -0
- package/dist/models/backup.d.ts.map +1 -0
- package/dist/models/backup.js +3 -0
- package/dist/models/backup.js.map +1 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.d.ts.map +1 -0
- package/dist/models/index.js +22 -0
- package/dist/models/index.js.map +1 -0
- package/dist/models/network-options.d.ts +12 -0
- package/dist/models/network-options.d.ts.map +1 -0
- package/dist/models/network-options.js +3 -0
- package/dist/models/network-options.js.map +1 -0
- package/dist/utils/aes.d.ts +40 -0
- package/dist/utils/aes.d.ts.map +1 -0
- package/dist/utils/aes.js +207 -0
- package/dist/utils/aes.js.map +1 -0
- package/dist/utils/async-mutex.d.ts +7 -0
- package/dist/utils/async-mutex.d.ts.map +1 -0
- package/dist/utils/async-mutex.js +31 -0
- package/dist/utils/async-mutex.js.map +1 -0
- package/dist/utils/backup.d.ts +21 -0
- package/dist/utils/backup.d.ts.map +1 -0
- package/dist/utils/backup.js +179 -0
- package/dist/utils/backup.js.map +1 -0
- package/dist/utils/index.d.ts +6 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +45 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/logger.d.ts +9 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/logger.js +14 -0
- package/dist/utils/logger.js.map +1 -0
- package/dist/utils/patchBigIntSerialization.d.ts +2 -0
- package/dist/utils/patchBigIntSerialization.d.ts.map +1 -0
- package/dist/utils/patchBigIntSerialization.js +9 -0
- package/dist/utils/patchBigIntSerialization.js.map +1 -0
- package/dist/utils/queue.d.ts +8 -0
- package/dist/utils/queue.d.ts.map +1 -0
- package/dist/utils/queue.js +67 -0
- package/dist/utils/queue.js.map +1 -0
- package/dist/utils/timeService.d.ts +6 -0
- package/dist/utils/timeService.d.ts.map +1 -0
- package/dist/utils/timeService.js +127 -0
- package/dist/utils/timeService.js.map +1 -0
- package/dist/utils/utils.d.ts +5 -0
- package/dist/utils/utils.d.ts.map +1 -0
- package/dist/utils/utils.js +24 -0
- package/dist/utils/utils.js.map +1 -0
- package/dist/utils/wait.d.ts +2 -0
- package/dist/utils/wait.d.ts.map +1 -0
- package/dist/utils/wait.js +9 -0
- package/dist/utils/wait.js.map +1 -0
- package/dist/utils/waitress.d.ts +23 -0
- package/dist/utils/waitress.d.ts.map +1 -0
- package/dist/utils/waitress.js +76 -0
- package/dist/utils/waitress.js.map +1 -0
- package/dist/zspec/consts.d.ts +75 -0
- package/dist/zspec/consts.d.ts.map +1 -0
- package/dist/zspec/consts.js +79 -0
- package/dist/zspec/consts.js.map +1 -0
- package/dist/zspec/enums.d.ts +19 -0
- package/dist/zspec/enums.d.ts.map +1 -0
- package/dist/zspec/enums.js +27 -0
- package/dist/zspec/enums.js.map +1 -0
- package/dist/zspec/index.d.ts +4 -0
- package/dist/zspec/index.d.ts.map +1 -0
- package/dist/zspec/index.js +43 -0
- package/dist/zspec/index.js.map +1 -0
- package/dist/zspec/tstypes.d.ts +19 -0
- package/dist/zspec/tstypes.d.ts.map +1 -0
- package/dist/zspec/tstypes.js +3 -0
- package/dist/zspec/tstypes.js.map +1 -0
- package/dist/zspec/utils.d.ts +77 -0
- package/dist/zspec/utils.d.ts.map +1 -0
- package/dist/zspec/utils.js +217 -0
- package/dist/zspec/utils.js.map +1 -0
- package/dist/zspec/zcl/buffaloZcl.d.ts +43 -0
- package/dist/zspec/zcl/buffaloZcl.d.ts.map +1 -0
- package/dist/zspec/zcl/buffaloZcl.js +969 -0
- package/dist/zspec/zcl/buffaloZcl.js.map +1 -0
- package/dist/zspec/zcl/definition/cluster.d.ts +3 -0
- package/dist/zspec/zcl/definition/cluster.d.ts.map +1 -0
- package/dist/zspec/zcl/definition/cluster.js +7507 -0
- package/dist/zspec/zcl/definition/cluster.js.map +1 -0
- package/dist/zspec/zcl/definition/clusters-types.d.ts +8135 -0
- package/dist/zspec/zcl/definition/clusters-types.d.ts.map +1 -0
- package/dist/zspec/zcl/definition/clusters-types.js +3 -0
- package/dist/zspec/zcl/definition/clusters-types.js.map +1 -0
- package/dist/zspec/zcl/definition/consts.d.ts +9 -0
- package/dist/zspec/zcl/definition/consts.d.ts.map +1 -0
- package/dist/zspec/zcl/definition/consts.js +27 -0
- package/dist/zspec/zcl/definition/consts.js.map +1 -0
- package/dist/zspec/zcl/definition/datatypes.d.ts +2173 -0
- package/dist/zspec/zcl/definition/datatypes.d.ts.map +1 -0
- package/dist/zspec/zcl/definition/datatypes.js +2315 -0
- package/dist/zspec/zcl/definition/datatypes.js.map +1 -0
- package/dist/zspec/zcl/definition/enums.d.ts +205 -0
- package/dist/zspec/zcl/definition/enums.d.ts.map +1 -0
- package/dist/zspec/zcl/definition/enums.js +218 -0
- package/dist/zspec/zcl/definition/enums.js.map +1 -0
- package/dist/zspec/zcl/definition/foundation.d.ts +10 -0
- package/dist/zspec/zcl/definition/foundation.d.ts.map +1 -0
- package/dist/zspec/zcl/definition/foundation.js +312 -0
- package/dist/zspec/zcl/definition/foundation.js.map +1 -0
- package/dist/zspec/zcl/definition/manufacturerCode.d.ts +729 -0
- package/dist/zspec/zcl/definition/manufacturerCode.d.ts.map +1 -0
- package/dist/zspec/zcl/definition/manufacturerCode.js +734 -0
- package/dist/zspec/zcl/definition/manufacturerCode.js.map +1 -0
- package/dist/zspec/zcl/definition/status.d.ts +69 -0
- package/dist/zspec/zcl/definition/status.d.ts.map +1 -0
- package/dist/zspec/zcl/definition/status.js +74 -0
- package/dist/zspec/zcl/definition/status.js.map +1 -0
- package/dist/zspec/zcl/definition/tstype.d.ts +273 -0
- package/dist/zspec/zcl/definition/tstype.d.ts.map +1 -0
- package/dist/zspec/zcl/definition/tstype.js +3 -0
- package/dist/zspec/zcl/definition/tstype.js.map +1 -0
- package/dist/zspec/zcl/index.d.ts +12 -0
- package/dist/zspec/zcl/index.d.ts.map +1 -0
- package/dist/zspec/zcl/index.js +57 -0
- package/dist/zspec/zcl/index.js.map +1 -0
- package/dist/zspec/zcl/utils.d.ts +15 -0
- package/dist/zspec/zcl/utils.d.ts.map +1 -0
- package/dist/zspec/zcl/utils.js +419 -0
- package/dist/zspec/zcl/utils.js.map +1 -0
- package/dist/zspec/zcl/zclFrame.d.ts +49 -0
- package/dist/zspec/zcl/zclFrame.d.ts.map +1 -0
- package/dist/zspec/zcl/zclFrame.js +328 -0
- package/dist/zspec/zcl/zclFrame.js.map +1 -0
- package/dist/zspec/zcl/zclHeader.d.ts +16 -0
- package/dist/zspec/zcl/zclHeader.d.ts.map +1 -0
- package/dist/zspec/zcl/zclHeader.js +88 -0
- package/dist/zspec/zcl/zclHeader.js.map +1 -0
- package/dist/zspec/zcl/zclStatusError.d.ts +6 -0
- package/dist/zspec/zcl/zclStatusError.d.ts.map +1 -0
- package/dist/zspec/zcl/zclStatusError.js +13 -0
- package/dist/zspec/zcl/zclStatusError.js.map +1 -0
- package/dist/zspec/zdo/buffaloZdo.d.ts +407 -0
- package/dist/zspec/zdo/buffaloZdo.d.ts.map +1 -0
- package/dist/zspec/zdo/buffaloZdo.js +1919 -0
- package/dist/zspec/zdo/buffaloZdo.js.map +1 -0
- package/dist/zspec/zdo/definition/clusters.d.ts +624 -0
- package/dist/zspec/zdo/definition/clusters.d.ts.map +1 -0
- package/dist/zspec/zdo/definition/clusters.js +686 -0
- package/dist/zspec/zdo/definition/clusters.js.map +1 -0
- package/dist/zspec/zdo/definition/consts.d.ts +13 -0
- package/dist/zspec/zdo/definition/consts.d.ts.map +1 -0
- package/dist/zspec/zdo/definition/consts.js +16 -0
- package/dist/zspec/zdo/definition/consts.js.map +1 -0
- package/dist/zspec/zdo/definition/enums.d.ts +85 -0
- package/dist/zspec/zdo/definition/enums.d.ts.map +1 -0
- package/dist/zspec/zdo/definition/enums.js +103 -0
- package/dist/zspec/zdo/definition/enums.js.map +1 -0
- package/dist/zspec/zdo/definition/status.d.ts +99 -0
- package/dist/zspec/zdo/definition/status.d.ts.map +1 -0
- package/dist/zspec/zdo/definition/status.js +108 -0
- package/dist/zspec/zdo/definition/status.js.map +1 -0
- package/dist/zspec/zdo/definition/tstypes.d.ts +955 -0
- package/dist/zspec/zdo/definition/tstypes.d.ts.map +1 -0
- package/dist/zspec/zdo/definition/tstypes.js +4 -0
- package/dist/zspec/zdo/definition/tstypes.js.map +1 -0
- package/dist/zspec/zdo/index.d.ts +8 -0
- package/dist/zspec/zdo/index.d.ts.map +1 -0
- package/dist/zspec/zdo/index.js +51 -0
- package/dist/zspec/zdo/index.js.map +1 -0
- package/dist/zspec/zdo/utils.d.ts +24 -0
- package/dist/zspec/zdo/utils.d.ts.map +1 -0
- package/dist/zspec/zdo/utils.js +74 -0
- package/dist/zspec/zdo/utils.js.map +1 -0
- package/dist/zspec/zdo/zdoStatusError.d.ts +6 -0
- package/dist/zspec/zdo/zdoStatusError.d.ts.map +1 -0
- package/dist/zspec/zdo/zdoStatusError.js +13 -0
- package/dist/zspec/zdo/zdoStatusError.js.map +1 -0
- package/package.json +90 -83
- package/src/controller/helpers/ota.ts +5 -2
- package/src/zspec/zcl/definition/cluster.ts +3 -294
- package/src/zspec/zcl/definition/clusters-types.ts +6 -355
- package/src/zspec/zcl/definition/tstype.ts +0 -14
- package/src/zspec/zcl/utils.ts +14 -31
- package/test/controller.test.ts +16 -8
- package/test/zcl.test.ts +36 -7
|
@@ -0,0 +1,2951 @@
|
|
|
1
|
+
import EventEmitter from "node:events";
|
|
2
|
+
import type { Eui64, ExtendedPanId, NodeId, PanId } from "../../../zspec/tstypes";
|
|
3
|
+
import * as Zdo from "../../../zspec/zdo";
|
|
4
|
+
import type { SerialPortOptions } from "../../tstype";
|
|
5
|
+
import { EmberCounterType, EmberDeviceUpdate, type EmberDutyCycleState, type EmberEntropySource, type EmberEventUnits, type EmberExtendedSecurityBitmask, EmberGPStatus, EmberGpKeyType, EmberGpSecurityLevel, EmberIncomingMessageType, EmberJoinDecision, EmberKeyStatus, EmberLeaveNetworkOption, type EmberLibraryId, type EmberLibraryStatus, type EmberMacPassthroughType, type EmberMultiPhyNwkConfig, type EmberNetworkStatus, type EmberNodeType, EmberOutgoingMessageType, type EmberSourceRouteDiscoveryMode, EmberStackError, type EmberTransmitPriority, type EmberTXPowerMode, type EzspNetworkScanType, EzspStatus, type EzspZllNetworkOperation, type IEEE802154CcaMode, SecManFlag, SLStatus } from "../enums";
|
|
6
|
+
import type { Ember802154RadioPriorities, EmberAesMmoHashContext, EmberApsFrame, EmberBeaconClassificationParams, EmberBeaconData, EmberBindingTableEntry, EmberCertificate283k1Data, EmberCertificateData, EmberChildData, EmberCurrentSecurityState, EmberDutyCycleLimits, EmberEndpointDescription, EmberGpAddress, EmberGpProxyTableEntry, EmberGpSinkTableEntry, EmberInitialSecurityState, EmberKeyData, EmberMessageDigest, EmberMulticastTableEntry, EmberMultiPhyRadioParameters, EmberMultiprotocolPriorities, EmberNeighborTableEntry, EmberNetworkInitStruct, EmberNetworkParameters, EmberPerDeviceDutyCycle, EmberPrivateKeyData, EmberPublicKey283k1Data, EmberPublicKeyData, EmberRouteTableEntry, EmberRxPacketInfo, EmberSignature283k1Data, EmberSignatureData, EmberSmacData, EmberTokenData, EmberTokenInfo, EmberTokTypeStackZllData, EmberTokTypeStackZllSecurity, EmberVersion, EmberZigbeeNetwork, EmberZllAddressAssignment, EmberZllDeviceInfoRecord, EmberZllInitialSecurityState, EmberZllNetwork, SecManAPSKeyMetadata, SecManContext, SecManKey, SecManNetworkKeyInfo } from "../types";
|
|
7
|
+
import { UartAsh } from "../uart/ash";
|
|
8
|
+
import { EzspBuffalo } from "./buffalo";
|
|
9
|
+
import { type EmberLeaveReason, type EmberRejoinReason, type EzspConfigId, type EzspEndpointFlag, EzspExtendedValueId, type EzspMemoryUsageData, EzspMfgTokenId, type EzspPolicyId, EzspValueId } from "./enums";
|
|
10
|
+
export interface EmberEzspEventMap {
|
|
11
|
+
/** An error was detected that requires resetting the NCP. */
|
|
12
|
+
ncpNeedsResetAndInit: [status: EzspStatus];
|
|
13
|
+
/** @see Ezsp.ezspIncomingMessageHandler */
|
|
14
|
+
zdoResponse: [apsFrame: EmberApsFrame, sender: NodeId, messageContents: Buffer];
|
|
15
|
+
/** ezspIncomingMessageHandler */
|
|
16
|
+
incomingMessage: [type: EmberIncomingMessageType, apsFrame: EmberApsFrame, lastHopLqi: number, sender: NodeId, messageContents: Buffer];
|
|
17
|
+
/** @see Ezsp.ezspMacFilterMatchMessageHandler */
|
|
18
|
+
touchlinkMessage: [sourcePanId: PanId, sourceAddress: Eui64, groupId: number, lastHopLqi: number, messageContents: Buffer];
|
|
19
|
+
/** @see Ezsp.ezspStackStatusHandler */
|
|
20
|
+
stackStatus: [status: SLStatus];
|
|
21
|
+
/** @see Ezsp.ezspTrustCenterJoinHandler */
|
|
22
|
+
trustCenterJoin: [
|
|
23
|
+
newNodeId: NodeId,
|
|
24
|
+
newNodeEui64: Eui64,
|
|
25
|
+
status: EmberDeviceUpdate,
|
|
26
|
+
policyDecision: EmberJoinDecision,
|
|
27
|
+
parentOfNewNodeId: NodeId
|
|
28
|
+
];
|
|
29
|
+
/** @see Ezsp.ezspMessageSentHandler */
|
|
30
|
+
messageSent: [status: SLStatus, type: EmberOutgoingMessageType, indexOrDestination: number, apsFrame: EmberApsFrame, messageTag: number];
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Host EZSP layer.
|
|
34
|
+
*
|
|
35
|
+
* Provides functions that allow the Host application to send every EZSP command to the NCP.
|
|
36
|
+
*
|
|
37
|
+
* Commands to send to the serial>ASH layers all are named `ezsp${CommandName}`.
|
|
38
|
+
* They do nothing but build the command, send it and return the value(s).
|
|
39
|
+
* Callers are expected to handle errors appropriately.
|
|
40
|
+
* - They will throw `EzspStatus` if `sendCommand` fails or the returned value(s) by NCP are invalid (wrong length, etc).
|
|
41
|
+
* - Most will return `EmberStatus` given by NCP (some `EzspStatus`, some `SLStatus`...).
|
|
42
|
+
*/
|
|
43
|
+
export declare class Ezsp extends EventEmitter<EmberEzspEventMap> {
|
|
44
|
+
private version;
|
|
45
|
+
readonly ash: UartAsh;
|
|
46
|
+
private readonly buffalo;
|
|
47
|
+
/** The contents of the current EZSP frame. CAREFUL using this guy, it's pre-allocated. */
|
|
48
|
+
private readonly frameContents;
|
|
49
|
+
/** The total Length of the incoming frame */
|
|
50
|
+
private frameLength;
|
|
51
|
+
private readonly callbackBuffalo;
|
|
52
|
+
/** The contents of the current EZSP frame. CAREFUL using this guy, it's pre-allocated. */
|
|
53
|
+
private readonly callbackFrameContents;
|
|
54
|
+
/** The total Length of the incoming frame */
|
|
55
|
+
private callbackFrameLength;
|
|
56
|
+
private initialVersionSent;
|
|
57
|
+
/** EZSP frame sequence number. Used in EZSP_SEQUENCE_INDEX byte. */
|
|
58
|
+
private frameSequence;
|
|
59
|
+
/** Sequence used for EZSP send() tagging. static uint8_t */
|
|
60
|
+
private sendSequence;
|
|
61
|
+
private readonly queue;
|
|
62
|
+
/** Awaiting response resolve/timer struct. undefined if not waiting for response. */
|
|
63
|
+
private responseWaiter?;
|
|
64
|
+
/** Counter for Queue Full errors */
|
|
65
|
+
counterErrQueueFull: number;
|
|
66
|
+
constructor(options: SerialPortOptions);
|
|
67
|
+
/**
|
|
68
|
+
* Returns the number of EZSP responses that have been received by the serial
|
|
69
|
+
* protocol and are ready to be collected by the EZSP layer via
|
|
70
|
+
* responseReceived().
|
|
71
|
+
*/
|
|
72
|
+
get pendingResponseCount(): number;
|
|
73
|
+
/**
|
|
74
|
+
* Create a string representation of the last received frame in storage.
|
|
75
|
+
*/
|
|
76
|
+
get frameToString(): string;
|
|
77
|
+
/**
|
|
78
|
+
* Create a string representation of the last received callback frame in storage.
|
|
79
|
+
*/
|
|
80
|
+
get callbackFrameToString(): string;
|
|
81
|
+
start(): Promise<EzspStatus>;
|
|
82
|
+
/**
|
|
83
|
+
* Cleanly close down the serial protocol (UART).
|
|
84
|
+
* After this function has been called, init() must be called to resume communication with the NCP.
|
|
85
|
+
*/
|
|
86
|
+
stop(): Promise<void>;
|
|
87
|
+
/**
|
|
88
|
+
* Must be called immediately after `ezspVersion` to sync the Host protocol version.
|
|
89
|
+
* @param version Version for the Host to use.
|
|
90
|
+
*/
|
|
91
|
+
setProtocolVersion(version: number): void;
|
|
92
|
+
/**
|
|
93
|
+
* Check if connected.
|
|
94
|
+
* If not, attempt to restore the connection.
|
|
95
|
+
*
|
|
96
|
+
* @returns
|
|
97
|
+
*/
|
|
98
|
+
checkConnection(): boolean;
|
|
99
|
+
/**
|
|
100
|
+
* Triggered by ASH layer @see 'fatalError'
|
|
101
|
+
*/
|
|
102
|
+
private onAshFatalError;
|
|
103
|
+
/**
|
|
104
|
+
* Triggered by ASH layer @see 'frame'
|
|
105
|
+
*/
|
|
106
|
+
private onAshFrame;
|
|
107
|
+
/**
|
|
108
|
+
* Event from the EZSP layer indicating that the transaction with the NCP could not be completed due to a
|
|
109
|
+
* serial protocol error or that the response received from the NCP reported an error.
|
|
110
|
+
* The status parameter provides more information about the error.
|
|
111
|
+
*
|
|
112
|
+
* @param status
|
|
113
|
+
*/
|
|
114
|
+
ezspErrorHandler(status: EzspStatus): void;
|
|
115
|
+
private nextFrameSequence;
|
|
116
|
+
private startCommand;
|
|
117
|
+
/**
|
|
118
|
+
* Sends the current EZSP command frame. Returns EZSP_SUCCESS if the command was sent successfully.
|
|
119
|
+
* Any other return value means that an error has been detected by the serial protocol layer.
|
|
120
|
+
*
|
|
121
|
+
* if ezsp.sendCommand fails early, this will be:
|
|
122
|
+
* - EzspStatus.ERROR_INVALID_CALL
|
|
123
|
+
* - EzspStatus.NOT_CONNECTED
|
|
124
|
+
* - EzspStatus.ERROR_COMMAND_TOO_LONG
|
|
125
|
+
*
|
|
126
|
+
* if ezsp.sendCommand fails, this will be whatever ash.send returns:
|
|
127
|
+
* - EzspStatus.SUCCESS
|
|
128
|
+
* - EzspStatus.NO_TX_SPACE
|
|
129
|
+
* - EzspStatus.DATA_FRAME_TOO_SHORT
|
|
130
|
+
* - EzspStatus.DATA_FRAME_TOO_LONG
|
|
131
|
+
* - EzspStatus.NOT_CONNECTED
|
|
132
|
+
*
|
|
133
|
+
* if ezsp.sendCommand times out, this will be EzspStatus.ASH_ERROR_TIMEOUTS
|
|
134
|
+
*
|
|
135
|
+
* if ezsp.sendCommand resolves, this will be whatever ezsp.responseReceived returns:
|
|
136
|
+
* - EzspStatus.NO_RX_DATA (should not happen if command was sent (since we subscribe to frame event to trigger function))
|
|
137
|
+
* - status from EzspFrameID.INVALID_COMMAND status byte
|
|
138
|
+
* - EzspStatus.ERROR_UNSUPPORTED_CONTROL
|
|
139
|
+
* - EzspStatus.ERROR_WRONG_DIRECTION
|
|
140
|
+
* - EzspStatus.ERROR_TRUNCATED
|
|
141
|
+
* - EzspStatus.SUCCESS
|
|
142
|
+
*/
|
|
143
|
+
private sendCommand;
|
|
144
|
+
/**
|
|
145
|
+
* Sets the stage for parsing if valid (indexes buffalo to params index).
|
|
146
|
+
* @returns
|
|
147
|
+
*/
|
|
148
|
+
validateReceivedFrame(buffalo: EzspBuffalo): EzspStatus;
|
|
149
|
+
/**
|
|
150
|
+
* Dispatches callback frames handlers.
|
|
151
|
+
*/
|
|
152
|
+
callbackDispatch(): void;
|
|
153
|
+
/**
|
|
154
|
+
*
|
|
155
|
+
* @returns uint8_t
|
|
156
|
+
*/
|
|
157
|
+
private nextSendSequence;
|
|
158
|
+
/**
|
|
159
|
+
* Calls ezspSend${x} based on type and takes care of tagging message.
|
|
160
|
+
*
|
|
161
|
+
* Alias types expect `alias` & `sequence` params, along with `apsFrame.radius`.
|
|
162
|
+
*
|
|
163
|
+
* @param type Specifies the outgoing message type.
|
|
164
|
+
* @param indexOrDestination uint16_t Depending on the type of addressing used, this is either the NodeId of the destination,
|
|
165
|
+
* an index into the address table, or an index into the binding table.
|
|
166
|
+
* Unused for multicast types.
|
|
167
|
+
* This must be one of the three Zigbee broadcast addresses for broadcast.
|
|
168
|
+
* @param apsFrame [IN/OUT] EmberApsFrame * The APS frame which is to be added to the message.
|
|
169
|
+
* Sequence set in OUT as returned by ezspSend${x} command
|
|
170
|
+
* @param message uint8_t * Content of the message.
|
|
171
|
+
* @param alias The alias source address
|
|
172
|
+
* @param sequence uint8_t The alias sequence number
|
|
173
|
+
* @returns Result of the ezspSend${x} call or EmberStatus.INVALID_PARAMETER if type not supported.
|
|
174
|
+
* @returns messageTag Tag used for ezspSend${x} command
|
|
175
|
+
*/
|
|
176
|
+
send(type: EmberOutgoingMessageType, indexOrDestination: number, apsFrame: EmberApsFrame, message: Buffer, alias: NodeId, sequence: number): Promise<[SLStatus, messageTag: number]>;
|
|
177
|
+
/**
|
|
178
|
+
* Retrieving the new version info.
|
|
179
|
+
* Wrapper for `ezspGetValue`.
|
|
180
|
+
* @returns Send status
|
|
181
|
+
* @returns EmberVersion*, null if status not SUCCESS.
|
|
182
|
+
*/
|
|
183
|
+
ezspGetVersionStruct(): Promise<[SLStatus, version: EmberVersion]>;
|
|
184
|
+
/**
|
|
185
|
+
* Function for manipulating the endpoints flags on the NCP.
|
|
186
|
+
* Wrapper for `ezspGetExtendedValue`
|
|
187
|
+
* @param endpoint uint8_t
|
|
188
|
+
* @param flags EzspEndpointFlags
|
|
189
|
+
* @returns EzspStatus
|
|
190
|
+
*/
|
|
191
|
+
ezspSetEndpointFlags(endpoint: number, flags: EzspEndpointFlag): Promise<SLStatus>;
|
|
192
|
+
/**
|
|
193
|
+
* Function for manipulating the endpoints flags on the NCP.
|
|
194
|
+
* Wrapper for `ezspGetExtendedValue`.
|
|
195
|
+
* @param endpoint uint8_t
|
|
196
|
+
* @returns SLStatus
|
|
197
|
+
* @returns flags
|
|
198
|
+
*/
|
|
199
|
+
ezspGetEndpointFlags(endpoint: number): Promise<[SLStatus, flags: EzspEndpointFlag]>;
|
|
200
|
+
/**
|
|
201
|
+
* Wrapper for `ezspGetExtendedValue`.
|
|
202
|
+
* @param NodeId
|
|
203
|
+
* @param destination
|
|
204
|
+
* @returns SLStatus
|
|
205
|
+
* @returns overhead uint8_t
|
|
206
|
+
*/
|
|
207
|
+
ezspGetSourceRouteOverhead(destination: NodeId): Promise<[SLStatus, overhead: number]>;
|
|
208
|
+
/**
|
|
209
|
+
* Wrapper for `ezspGetExtendedValue`.
|
|
210
|
+
* @returns SLStatus
|
|
211
|
+
* @returns reason
|
|
212
|
+
* @returns nodeId NodeId*
|
|
213
|
+
*/
|
|
214
|
+
ezspGetLastLeaveReason(): Promise<[SLStatus, reason: EmberLeaveReason, nodeId: NodeId]>;
|
|
215
|
+
/**
|
|
216
|
+
* Gets memory usage data from sl_memory_manager APIs.
|
|
217
|
+
* Wrapper for `ezspGetExtendedValue`.
|
|
218
|
+
* @param type Type of memory usage data to be acquired
|
|
219
|
+
* @returns SLStatus
|
|
220
|
+
* @returns Data (in bytes) reflecting current or "boot" memory usage
|
|
221
|
+
*/
|
|
222
|
+
ezspGetMemoryUsageData(type: EzspMemoryUsageData): Promise<[SLStatus, memoryUsageValue: number]>;
|
|
223
|
+
/**
|
|
224
|
+
* Wrapper for `ezspGetValue`.
|
|
225
|
+
* @returns EzspStatus
|
|
226
|
+
* @returns reason
|
|
227
|
+
*/
|
|
228
|
+
ezspGetLastRejoinReason(): Promise<[SLStatus, reason: EmberRejoinReason]>;
|
|
229
|
+
/**
|
|
230
|
+
* Wrapper for `ezspSetValue`.
|
|
231
|
+
* @param mask
|
|
232
|
+
* @returns
|
|
233
|
+
*/
|
|
234
|
+
ezspSetExtendedSecurityBitmask(mask: EmberExtendedSecurityBitmask): Promise<SLStatus>;
|
|
235
|
+
/**
|
|
236
|
+
* Wrapper for `ezspGetValue`.
|
|
237
|
+
* @returns
|
|
238
|
+
*/
|
|
239
|
+
ezspGetExtendedSecurityBitmask(): Promise<[SLStatus, mask: EmberExtendedSecurityBitmask]>;
|
|
240
|
+
/**
|
|
241
|
+
* Wrapper for `ezspSetValue`.
|
|
242
|
+
* @returns
|
|
243
|
+
*/
|
|
244
|
+
ezspStartWritingStackTokens(): Promise<SLStatus>;
|
|
245
|
+
/**
|
|
246
|
+
* Wrapper for `ezspSetValue`.
|
|
247
|
+
* @returns
|
|
248
|
+
*/
|
|
249
|
+
ezspStopWritingStackTokens(): Promise<SLStatus>;
|
|
250
|
+
/**
|
|
251
|
+
* Wrapper for `ezspSetValue`.
|
|
252
|
+
*
|
|
253
|
+
* Set NWK layer outgoing frame counter (intended for device restoration purposes).
|
|
254
|
+
* Caveats:
|
|
255
|
+
* - Can only be called before NetworkInit / FormNetwork / JoinNetwork, when sl_zigbee_network_state()==SL_ZIGBEE_NO_NETWORK.
|
|
256
|
+
* - This function should be called before ::sl_zigbee_set_initial_security_state, and the SL_ZIGBEE_NO_FRAME_COUNTER_RESET
|
|
257
|
+
* bitmask should be added to the initial security bitmask when ::emberSetInitialSecurityState is called.
|
|
258
|
+
* - If used in multi-network context, be sure to call ::sl_zigbee_set_current_network() prior to calling this function.
|
|
259
|
+
*
|
|
260
|
+
* @param desiredValue The desired outgoing NWK frame counter value.
|
|
261
|
+
* This should needs to be less than MAX_INT32U_VALUE to ensure that rollover does not occur on the next encrypted transmission.
|
|
262
|
+
* @returns
|
|
263
|
+
* - SL_STATUS_OK if calling context is valid (sl_zigbee_network_state() == SL_ZIGBEE_NO_NETWORK) and desiredValue < MAX_INT32U_VALUE.
|
|
264
|
+
* - SL_STATUS_INVALID_STATE.
|
|
265
|
+
*/
|
|
266
|
+
ezspSetNWKFrameCounter(frameCounter: number): Promise<SLStatus>;
|
|
267
|
+
/**
|
|
268
|
+
* Wrapper for `ezspSetValue`.
|
|
269
|
+
*
|
|
270
|
+
* Function to set APS layer outgoing frame counter for Trust Center Link Key (intended for device restoration purposes).
|
|
271
|
+
* Caveats:
|
|
272
|
+
* - Can only be called before NetworkInit / FormNetwork / JoinNetwork, when sl_zigbee_network_state()==SL_ZIGBEE_NO_NETWORK.
|
|
273
|
+
* - This function should be called before ::sl_zigbee_set_initial_security_state, and the SL_ZIGBEE_NO_FRAME_COUNTER_RESET
|
|
274
|
+
* bitmask should be added to the initial security bitmask when ::emberSetInitialSecurityState is called.
|
|
275
|
+
* - If used in multi-network context, be sure to call ::sl_zigbee_set_current_network() prior to calling this function.
|
|
276
|
+
*
|
|
277
|
+
* @param desiredValue The desired outgoing APS frame counter value.
|
|
278
|
+
* This should needs to be less than MAX_INT32U_VALUE to ensure that rollover does not occur on the next encrypted transmission.
|
|
279
|
+
* @returns
|
|
280
|
+
* - SL_STATUS_OK if calling context is valid (sl_zigbee_network_state() == SL_ZIGBEE_NO_NETWORK) and desiredValue < MAX_INT32U_VALUE.
|
|
281
|
+
* - SL_STATUS_INVALID_STATE.
|
|
282
|
+
*/
|
|
283
|
+
ezspSetAPSFrameCounter(frameCounter: number): Promise<SLStatus>;
|
|
284
|
+
/**
|
|
285
|
+
* The command allows the Host to specify the desired EZSP version and must be
|
|
286
|
+
* sent before any other command. The response provides information about the
|
|
287
|
+
* firmware running on the NCP.
|
|
288
|
+
*
|
|
289
|
+
* @param desiredProtocolVersion uint8_t The EZSP version the Host wishes to use.
|
|
290
|
+
* To successfully set the version and allow other commands, this must be same as EZSP_PROTOCOL_VERSION.
|
|
291
|
+
* @returns uint8_t The EZSP version the NCP is using.
|
|
292
|
+
* @returns uint8_t * The type of stack running on the NCP (2).
|
|
293
|
+
* @returns uint16_t * The version number of the stack.
|
|
294
|
+
*/
|
|
295
|
+
ezspVersion(desiredProtocolVersion: number): Promise<[protocolVersion: number, stackType: number, stackVersion: number]>;
|
|
296
|
+
/**
|
|
297
|
+
* Reads a configuration value from the NCP.
|
|
298
|
+
*
|
|
299
|
+
* @param configId Identifies which configuration value to read.
|
|
300
|
+
* @returns
|
|
301
|
+
* - SLStatus.OK if the value was read successfully,
|
|
302
|
+
* - SLStatus.ZIGBEE_EZSP_ERROR (for SL_ZIGBEE_EZSP_ERROR_INVALID_ID) if the NCP does not recognize configId.
|
|
303
|
+
* @returns uint16_t * The configuration value.
|
|
304
|
+
*/
|
|
305
|
+
ezspGetConfigurationValue(configId: EzspConfigId): Promise<[SLStatus, value: number]>;
|
|
306
|
+
/**
|
|
307
|
+
* Writes a configuration value to the NCP. Configuration values can be modified
|
|
308
|
+
* by the Host after the NCP has reset. Once the status of the stack changes to
|
|
309
|
+
* EMBER_NETWORK_UP, configuration values can no longer be modified and this
|
|
310
|
+
* command will respond with EzspStatus.ERROR_INVALID_CALL.
|
|
311
|
+
*
|
|
312
|
+
* @param configId Identifies which configuration value to change.
|
|
313
|
+
* @param value uint16_t The new configuration value.
|
|
314
|
+
* @returns EzspStatus
|
|
315
|
+
* - SLStatus.OK if the configuration value was changed,
|
|
316
|
+
* - SLStatus.ZIGBEE_EZSP_ERROR if the new value exceeded the available memory,
|
|
317
|
+
* if the new value was out of bounds,
|
|
318
|
+
* if the NCP does not recognize configId,
|
|
319
|
+
* if configuration values can no longer be modified.
|
|
320
|
+
*/
|
|
321
|
+
ezspSetConfigurationValue(configId: EzspConfigId, value: number): Promise<SLStatus>;
|
|
322
|
+
/**
|
|
323
|
+
* Read attribute data on NCP endpoints.
|
|
324
|
+
* @param endpoint uint8_t Endpoint
|
|
325
|
+
* @param cluster uint16_t Cluster.
|
|
326
|
+
* @param attributeId uint16_t Attribute ID.
|
|
327
|
+
* @param mask uint8_t Mask.
|
|
328
|
+
* @param manufacturerCode uint16_t Manufacturer code.
|
|
329
|
+
* @returns An sl_zigbee_af_status_t value indicating success or the reason for failure, handled by the EZSP layer as a uint8_t.
|
|
330
|
+
* @returns uint8_t * Attribute data type.
|
|
331
|
+
* @returns uint8_t * Length of attribute data.
|
|
332
|
+
* @returns uint8_t * Attribute data.
|
|
333
|
+
*/
|
|
334
|
+
ezspReadAttribute(endpoint: number, cluster: number, attributeId: number, mask: number, manufacturerCode: number, readLength: number): Promise<[SLStatus, dataType: number, outReadLength: number, data: number[]]>;
|
|
335
|
+
/**
|
|
336
|
+
* Write attribute data on NCP endpoints.
|
|
337
|
+
* @param endpoint uint8_t Endpoint
|
|
338
|
+
* @param cluster uint16_t Cluster.
|
|
339
|
+
* @param attributeId uint16_t Attribute ID.
|
|
340
|
+
* @param mask uint8_t Mask.
|
|
341
|
+
* @param manufacturerCode uint16_t Manufacturer code.
|
|
342
|
+
* @param overrideReadOnlyAndDataType Override read only and data type.
|
|
343
|
+
* @param justTest Override read only and data type.
|
|
344
|
+
* @param dataType uint8_t Attribute data type.
|
|
345
|
+
* @param data uint8_t * Attribute data.
|
|
346
|
+
* @returns An sl_zigbee_af_status_t value indicating success or the reason for failure.
|
|
347
|
+
*/
|
|
348
|
+
ezspWriteAttribute(endpoint: number, cluster: number, attributeId: number, mask: number, manufacturerCode: number, overrideReadOnlyAndDataType: boolean, justTest: boolean, dataType: number, data: Buffer): Promise<SLStatus>;
|
|
349
|
+
/**
|
|
350
|
+
* Configures endpoint information on the NCP. The NCP does not remember these
|
|
351
|
+
* settings after a reset. Endpoints can be added by the Host after the NCP has
|
|
352
|
+
* reset. Once the status of the stack changes to EMBER_NETWORK_UP, endpoints
|
|
353
|
+
* can no longer be added and this command will respond with EzspStatus.ERROR_INVALID_CALL.
|
|
354
|
+
* @param endpoint uint8_t The application endpoint to be added.
|
|
355
|
+
* @param profileId uint16_t The endpoint's application profile.
|
|
356
|
+
* @param deviceId uint16_t The endpoint's device ID within the application profile.
|
|
357
|
+
* @param deviceVersion uint8_t The endpoint's device version.
|
|
358
|
+
* @param inputClusterList uint16_t * Input cluster IDs the endpoint will accept.
|
|
359
|
+
* @param outputClusterList uint16_t * Output cluster IDs the endpoint may send.
|
|
360
|
+
* @returns
|
|
361
|
+
* - SLStatus.OK if the endpoint was added,
|
|
362
|
+
* - SLStatus.ZIGBEE_EZSP_ERROR if there is not enough memory available to add the endpoint,
|
|
363
|
+
* if the endpoint already exists,
|
|
364
|
+
* if endpoints can no longer be added.
|
|
365
|
+
*/
|
|
366
|
+
ezspAddEndpoint(endpoint: number, profileId: number, deviceId: number, deviceVersion: number, inputClusterList: number[], outputClusterList: number[]): Promise<SLStatus>;
|
|
367
|
+
/**
|
|
368
|
+
* Allows the Host to change the policies used by the NCP to make fast
|
|
369
|
+
* decisions.
|
|
370
|
+
* @param policyId Identifies which policy to modify.
|
|
371
|
+
* @param decisionId The new decision for the specified policy.
|
|
372
|
+
* @returns
|
|
373
|
+
* - SLStatus.OK if the policy was changed,
|
|
374
|
+
* - SLStatus.ZIGBEE_EZSP_ERROR if the NCP does not recognize policyId.
|
|
375
|
+
*/
|
|
376
|
+
ezspSetPolicy(policyId: EzspPolicyId, decisionId: number): Promise<SLStatus>;
|
|
377
|
+
/**
|
|
378
|
+
* Allows the Host to read the policies used by the NCP to make fast decisions.
|
|
379
|
+
* @param policyId Identifies which policy to read.
|
|
380
|
+
* @returns
|
|
381
|
+
* - SLStatus.OK if the policy was read successfully,
|
|
382
|
+
* - SLStatus.ZIGBEE_EZSP_ERROR if the NCP does not recognize policyId.
|
|
383
|
+
* @returns EzspDecisionId * The current decision for the specified policy.
|
|
384
|
+
*/
|
|
385
|
+
ezspGetPolicy(policyId: EzspPolicyId): Promise<[SLStatus, number]>;
|
|
386
|
+
/**
|
|
387
|
+
* Triggers a pan id update message.
|
|
388
|
+
* @param The new Pan Id
|
|
389
|
+
* @returns true if the request was successfully handed to the stack, false otherwise
|
|
390
|
+
*/
|
|
391
|
+
ezspSendPanIdUpdate(newPan: PanId): Promise<boolean>;
|
|
392
|
+
/**
|
|
393
|
+
* Reads a value from the NCP.
|
|
394
|
+
* @param valueId Identifies which value to read.
|
|
395
|
+
* @returns
|
|
396
|
+
* - SLStatus.OK if the value was read successfully,
|
|
397
|
+
* - SLStatus.ZIGBEE_EZSP_ERROR if the NCP does not recognize valueId,
|
|
398
|
+
* if the length of the returned value exceeds the size of local storage allocated to receive it.
|
|
399
|
+
* @returns uint8_t * Both a command and response parameter.
|
|
400
|
+
* On command, the maximum in bytes of local storage allocated to receive the returned value.
|
|
401
|
+
* On response, the actual length in bytes of the returned value.
|
|
402
|
+
* @returns uint8_t * The value.
|
|
403
|
+
*/
|
|
404
|
+
ezspGetValue(valueId: EzspValueId, valueLength: number): Promise<[SLStatus, outValueLength: number, outValue: number[]]>;
|
|
405
|
+
/**
|
|
406
|
+
* Reads a value from the NCP but passes an extra argument specific to the value
|
|
407
|
+
* being retrieved.
|
|
408
|
+
* @param valueId Identifies which extended value ID to read.
|
|
409
|
+
* @param characteristics uint32_t Identifies which characteristics of the extended value ID to read. These are specific to the value being read.
|
|
410
|
+
* @returns
|
|
411
|
+
* - SLStatus.OK if the value was read successfully,
|
|
412
|
+
* - SLStatus.ZIGBEE_EZSP_ERROR if the NCP does not recognize valueId,
|
|
413
|
+
* if the length of the returned value exceeds the size of local storage allocated to receive it.
|
|
414
|
+
* @returns uint8_t * Both a command and response parameter.
|
|
415
|
+
* On command, the maximum in bytes of local storage allocated to receive the returned value.
|
|
416
|
+
* On response, the actual length in bytes of the returned value.
|
|
417
|
+
* @returns uint8_t * The value.
|
|
418
|
+
*/
|
|
419
|
+
ezspGetExtendedValue(valueId: EzspExtendedValueId, characteristics: number, valueLength: number): Promise<[SLStatus, outValueLength: number, outValue: number[]]>;
|
|
420
|
+
/**
|
|
421
|
+
* Writes a value to the NCP.
|
|
422
|
+
* @param valueId Identifies which value to change.
|
|
423
|
+
* @param valueLength uint8_t The length of the value parameter in bytes.
|
|
424
|
+
* @param value uint8_t * The new value.
|
|
425
|
+
* @returns
|
|
426
|
+
* - SLStatus.OK if the value was changed,
|
|
427
|
+
* - SLStatus.ZIGBEE_EZSP_ERROR if the new value was out of bounds,
|
|
428
|
+
* if the NCP does not recognize valueId,
|
|
429
|
+
* if the value could not be modified.
|
|
430
|
+
*/
|
|
431
|
+
ezspSetValue(valueId: EzspValueId, valueLength: number, value: number[]): Promise<SLStatus>;
|
|
432
|
+
/**
|
|
433
|
+
* Allows the Host to control the broadcast behaviour of a routing device used by the NCP.
|
|
434
|
+
* @param config uint8_t Passive ack config enum.
|
|
435
|
+
* @param minAcksNeeded uint8_t The minimum number of acknowledgments (re-broadcasts) to wait for until
|
|
436
|
+
* deeming the broadcast transmission complete.
|
|
437
|
+
* @returns An SLStatus value indicating success or the reason for failure.
|
|
438
|
+
*/
|
|
439
|
+
ezspSetPassiveAckConfig(config: number, minAcksNeeded: number): Promise<SLStatus>;
|
|
440
|
+
/**
|
|
441
|
+
* Set the PAN ID to be accepted by the device in a NLME Network Update command.
|
|
442
|
+
* If this is set to a different value than its default 0xFFFF, NLME network update messages will be ignored if they do not match this PAN ID.
|
|
443
|
+
* @param panId uint16_t PAN ID to be accepted in a network update.
|
|
444
|
+
*/
|
|
445
|
+
ezspSetPendingNetworkUpdatePanId(panId: PanId): Promise<void>;
|
|
446
|
+
/**
|
|
447
|
+
* Retrieve the endpoint number located at the specified index.
|
|
448
|
+
* @param index uint8_t Index to retrieve the endpoint number for.
|
|
449
|
+
* @returns uint8_t Endpoint number at the index.
|
|
450
|
+
*/
|
|
451
|
+
ezspGetEndpoint(index: number): Promise<number>;
|
|
452
|
+
/**
|
|
453
|
+
* Get the number of configured endpoints.
|
|
454
|
+
* @returns uint8_t Number of configured endpoints.
|
|
455
|
+
*/
|
|
456
|
+
ezspGetEndpointCount(): Promise<number>;
|
|
457
|
+
/**
|
|
458
|
+
* Retrieve the endpoint description for the given endpoint number.
|
|
459
|
+
* @param endpoint Endpoint number to get the description of.
|
|
460
|
+
* @returns Description of this endpoint.
|
|
461
|
+
*/
|
|
462
|
+
ezspGetEndpointDescription(endpoint: number): Promise<EmberEndpointDescription>;
|
|
463
|
+
/**
|
|
464
|
+
* Retrieve one of the cluster IDs associated with the given endpoint.
|
|
465
|
+
* @param endpoint Endpoint number to get a cluster ID for.
|
|
466
|
+
* @param listId Which list to get the cluster ID from. (0 for input, 1 for output).
|
|
467
|
+
* @param listIndex Index from requested list to look at the cluster ID of.
|
|
468
|
+
* @returns ID of the requested cluster.
|
|
469
|
+
*/
|
|
470
|
+
ezspGetEndpointCluster(endpoint: number, listId: number, listIndex: number): Promise<number>;
|
|
471
|
+
/**
|
|
472
|
+
* A command which does nothing. The Host can use this to set the sleep mode or to check the status of the NCP.
|
|
473
|
+
*/
|
|
474
|
+
ezspNop(): Promise<void>;
|
|
475
|
+
/**
|
|
476
|
+
* Variable length data from the Host is echoed back by the NCP.
|
|
477
|
+
* This command has no other effects and is designed for testing the link between the Host and NCP.
|
|
478
|
+
* @param data uint8_t * The data to be echoed back.
|
|
479
|
+
* @returns uint8_t * The echo of the data.
|
|
480
|
+
*/
|
|
481
|
+
ezspEcho(data: Buffer): Promise<Buffer>;
|
|
482
|
+
/**
|
|
483
|
+
* Allows the NCP to respond with a pending callback.
|
|
484
|
+
*/
|
|
485
|
+
ezspCallback(): Promise<void>;
|
|
486
|
+
/**
|
|
487
|
+
* Callback
|
|
488
|
+
* Indicates that there are currently no pending callbacks.
|
|
489
|
+
*/
|
|
490
|
+
ezspNoCallbacks(): void;
|
|
491
|
+
/**
|
|
492
|
+
* Sets a token (8 bytes of non-volatile storage) in the Simulated EEPROM of the NCP.
|
|
493
|
+
* @param tokenId uint8_t Which token to set
|
|
494
|
+
* @param tokenData uint8_t * The data to write to the token.
|
|
495
|
+
* @returns An SLStatus value indicating success or the reason for failure.
|
|
496
|
+
*/
|
|
497
|
+
ezspSetToken(tokenId: number, tokenData: number[]): Promise<SLStatus>;
|
|
498
|
+
/**
|
|
499
|
+
* Retrieves a token (8 bytes of non-volatile storage) from the Simulated EEPROM of the NCP.
|
|
500
|
+
* @param tokenId uint8_t Which token to read
|
|
501
|
+
* @returns An SLStatus value indicating success or the reason for failure.
|
|
502
|
+
* @returns uint8_t * The contents of the token.
|
|
503
|
+
*/
|
|
504
|
+
ezspGetToken(tokenId: number): Promise<[SLStatus, tokenData: number[]]>;
|
|
505
|
+
/**
|
|
506
|
+
* Retrieves a manufacturing token from the Flash Information Area of the NCP
|
|
507
|
+
* (except for EZSP_STACK_CAL_DATA which is managed by the stack).
|
|
508
|
+
* @param tokenId Which manufacturing token to read.
|
|
509
|
+
* @returns uint8_t The length of the tokenData parameter in bytes.
|
|
510
|
+
* @returns uint8_t * The manufacturing token data.
|
|
511
|
+
*/
|
|
512
|
+
ezspGetMfgToken(tokenId: EzspMfgTokenId): Promise<[number, tokenData: number[]]>;
|
|
513
|
+
/**
|
|
514
|
+
* Sets a manufacturing token in the Customer Information Block (CIB) area of
|
|
515
|
+
* the NCP if that token currently unset (fully erased). Cannot be used with
|
|
516
|
+
* EZSP_STACK_CAL_DATA, EZSP_STACK_CAL_FILTER, EZSP_MFG_ASH_CONFIG, or
|
|
517
|
+
* EZSP_MFG_CBKE_DATA token.
|
|
518
|
+
* @param tokenId Which manufacturing token to set.
|
|
519
|
+
* @param tokenData uint8_t * The manufacturing token data.
|
|
520
|
+
* @returns An SLStatus value indicating success or the reason for failure.
|
|
521
|
+
*/
|
|
522
|
+
ezspSetMfgToken(tokenId: EzspMfgTokenId, tokenData: Buffer): Promise<SLStatus>;
|
|
523
|
+
/**
|
|
524
|
+
* Callback
|
|
525
|
+
* A callback invoked to inform the application that a stack token has changed.
|
|
526
|
+
* @param tokenAddress uint16_t The address of the stack token that has changed.
|
|
527
|
+
*/
|
|
528
|
+
ezspStackTokenChangedHandler(tokenAddress: number): void;
|
|
529
|
+
/**
|
|
530
|
+
* Returns a pseudorandom number.
|
|
531
|
+
* @returns Always returns SLStatus.OK.
|
|
532
|
+
* @returns uint16_t * A pseudorandom number.
|
|
533
|
+
*/
|
|
534
|
+
ezspGetRandomNumber(): Promise<[SLStatus, value: number]>;
|
|
535
|
+
/**
|
|
536
|
+
* Sets a timer on the NCP. There are 2 independent timers available for use by the Host.
|
|
537
|
+
* A timer can be cancelled by setting time to 0 or units to EMBER_EVENT_INACTIVE.
|
|
538
|
+
* @param timerId uint8_t Which timer to set (0 or 1).
|
|
539
|
+
* @param time uint16_t The delay before the timerHandler callback will be generated.
|
|
540
|
+
* Note that the timer clock is free running and is not synchronized with this command.
|
|
541
|
+
* This means that the actual delay will be between time and (time - 1). The maximum delay is 32767.
|
|
542
|
+
* @param units The units for time.
|
|
543
|
+
* @param repeat If true, a timerHandler callback will be generated repeatedly. If false, only a single timerHandler callback will be generated.
|
|
544
|
+
* @returns An SLStatus value indicating success or the reason for failure.
|
|
545
|
+
*/
|
|
546
|
+
ezspSetTimer(timerId: number, time: number, units: EmberEventUnits, repeat: boolean): Promise<SLStatus>;
|
|
547
|
+
/**
|
|
548
|
+
* Gets information about a timer. The Host can use this command to find out how
|
|
549
|
+
* much longer it will be before a previously set timer will generate a
|
|
550
|
+
* callback.
|
|
551
|
+
* @param timerId uint8_t Which timer to get information about (0 or 1).
|
|
552
|
+
* @returns uint16_t The delay before the timerHandler callback will be generated.
|
|
553
|
+
* @returns EmberEventUnits * The units for time.
|
|
554
|
+
* @returns bool * True if a timerHandler callback will be generated repeatedly. False if only a single timerHandler callback will be generated.
|
|
555
|
+
*/
|
|
556
|
+
ezspGetTimer(timerId: number): Promise<[number, units: EmberEventUnits, repeat: boolean]>;
|
|
557
|
+
/**
|
|
558
|
+
* Callback
|
|
559
|
+
* A callback from the timer.
|
|
560
|
+
* @param timerId uint8_t Which timer generated the callback (0 or 1).
|
|
561
|
+
*/
|
|
562
|
+
ezspTimerHandler(timerId: number): void;
|
|
563
|
+
/**
|
|
564
|
+
* Sends a debug message from the Host to the Network Analyzer utility via the NCP.
|
|
565
|
+
* @param binaryMessage true if the message should be interpreted as binary data, false if the message should be interpreted as ASCII text.
|
|
566
|
+
* @param messageContents uint8_t * The binary message.
|
|
567
|
+
* @returns An SLStatus value indicating success or the reason for failure.
|
|
568
|
+
*/
|
|
569
|
+
ezspDebugWrite(binaryMessage: boolean, messageContents: Buffer): Promise<SLStatus>;
|
|
570
|
+
/**
|
|
571
|
+
* Retrieves and clears Ember counters. See the EmberCounterType enumeration for the counter types.
|
|
572
|
+
* @returns uint16_t * A list of all counter values ordered according to the EmberCounterType enumeration.
|
|
573
|
+
*/
|
|
574
|
+
ezspReadAndClearCounters(): Promise<number[]>;
|
|
575
|
+
/**
|
|
576
|
+
* Retrieves Ember counters. See the EmberCounterType enumeration for the counter types.
|
|
577
|
+
* @returns uint16_t * A list of all counter values ordered according to the EmberCounterType enumeration.
|
|
578
|
+
*/
|
|
579
|
+
ezspReadCounters(): Promise<number[]>;
|
|
580
|
+
/**
|
|
581
|
+
* Callback
|
|
582
|
+
* This call is fired when a counter exceeds its threshold
|
|
583
|
+
* @param type Type of Counter
|
|
584
|
+
*/
|
|
585
|
+
ezspCounterRolloverHandler(type: EmberCounterType): void;
|
|
586
|
+
/**
|
|
587
|
+
* Callback
|
|
588
|
+
* This call is fired when mux detects an invalid rx case, which would be different rx channels for different protocol contexts, when fast channel switching is not enabled
|
|
589
|
+
* @param newRxChannel uint8_t
|
|
590
|
+
* @param oldRxChannel uint8_t
|
|
591
|
+
*/
|
|
592
|
+
ezspMuxInvalidRxHandler(newRxChannel: number, oldRxChannel: number): void;
|
|
593
|
+
/**
|
|
594
|
+
* Used to test that UART flow control is working correctly.
|
|
595
|
+
* @param delay uint16_t Data will not be read from the host for this many milliseconds.
|
|
596
|
+
*/
|
|
597
|
+
ezspDelayTest(delay: number): Promise<void>;
|
|
598
|
+
/**
|
|
599
|
+
* This retrieves the status of the passed library ID to determine if it is compiled into the stack.
|
|
600
|
+
* @param libraryId The ID of the library being queried.
|
|
601
|
+
* @returns The status of the library being queried.
|
|
602
|
+
*/
|
|
603
|
+
ezspGetLibraryStatus(libraryId: EmberLibraryId): Promise<EmberLibraryStatus>;
|
|
604
|
+
/**
|
|
605
|
+
* Allows the HOST to know whether the NCP is running the XNCP library. If so,
|
|
606
|
+
* the response contains also the manufacturer ID and the version number of the
|
|
607
|
+
* XNCP application that is running on the NCP.
|
|
608
|
+
* @returns
|
|
609
|
+
* - SLStatus.OK if the NCP is running the XNCP library.
|
|
610
|
+
* - SLStatus.INVALID_STATE otherwise.
|
|
611
|
+
* @returns manufacturerId uint16_t * The manufactured ID the user has defined in the XNCP application.
|
|
612
|
+
* @returns versionNumber uint16_t * The version number of the XNCP application.
|
|
613
|
+
*/
|
|
614
|
+
ezspGetXncpInfo(): Promise<[SLStatus, manufacturerId: number, versionNumber: number]>;
|
|
615
|
+
/**
|
|
616
|
+
* Provides the customer a custom EZSP frame. On the NCP, these frames are only
|
|
617
|
+
* handled if the XNCP library is included. On the NCP side these frames are
|
|
618
|
+
* handled in the emberXNcpIncomingCustomEzspMessageCallback() callback
|
|
619
|
+
* function.
|
|
620
|
+
* @param uint8_t * The payload of the custom frame (maximum 119 bytes).
|
|
621
|
+
* @param uint8_t The expected length of the response.
|
|
622
|
+
* @returns The status returned by the custom command.
|
|
623
|
+
* @returns uint8_t *The response.
|
|
624
|
+
*/
|
|
625
|
+
ezspCustomFrame(payload: Buffer, replyLength: number): Promise<[SLStatus, outReply: Buffer]>;
|
|
626
|
+
/**
|
|
627
|
+
* Callback
|
|
628
|
+
* A callback indicating a custom EZSP message has been received.
|
|
629
|
+
* @param payload uint8_t * The payload of the custom frame.
|
|
630
|
+
*/
|
|
631
|
+
ezspCustomFrameHandler(payload: Buffer): void;
|
|
632
|
+
/**
|
|
633
|
+
* Returns the EUI64 ID of the local node.
|
|
634
|
+
* @returns The 64-bit ID.
|
|
635
|
+
*/
|
|
636
|
+
ezspGetEui64(): Promise<Eui64>;
|
|
637
|
+
/**
|
|
638
|
+
* Returns the 16-bit node ID of the local node.
|
|
639
|
+
* @returns The 16-bit ID.
|
|
640
|
+
*/
|
|
641
|
+
ezspGetNodeId(): Promise<NodeId>;
|
|
642
|
+
/**
|
|
643
|
+
* Returns number of phy interfaces present.
|
|
644
|
+
* @returns uint8_t Value indicate how many phy interfaces present.
|
|
645
|
+
*/
|
|
646
|
+
ezspGetPhyInterfaceCount(): Promise<number>;
|
|
647
|
+
/**
|
|
648
|
+
* Returns the entropy source used for true random number generation.
|
|
649
|
+
* @returns Value indicates the used entropy source.
|
|
650
|
+
*/
|
|
651
|
+
ezspGetTrueRandomEntropySource(): Promise<EmberEntropySource>;
|
|
652
|
+
/**
|
|
653
|
+
* Extend a joiner's timeout to wait for the network key on the joiner default key timeout is 3 sec,
|
|
654
|
+
* and only values greater equal to 3 sec are accepted.
|
|
655
|
+
* @param networkKeyTimeoutS Network key timeout
|
|
656
|
+
* @returns An SLStatus value indicating success or the reason for failure.
|
|
657
|
+
*/
|
|
658
|
+
ezspSetupDelayedJoin(networkKeyTimeoutS: number): Promise<SLStatus>;
|
|
659
|
+
/**
|
|
660
|
+
* Get the current scheduler priorities for multiprotocol apps.
|
|
661
|
+
* @returns The current priorities.
|
|
662
|
+
*/
|
|
663
|
+
ezspRadioGetSchedulerPriorities(): Promise<Ember802154RadioPriorities | EmberMultiprotocolPriorities>;
|
|
664
|
+
/**
|
|
665
|
+
* Set the current scheduler priorities for multiprotocol apps.
|
|
666
|
+
* @param priorities The current priorities.
|
|
667
|
+
*/
|
|
668
|
+
ezspRadioSetSchedulerPriorities(priorities: Ember802154RadioPriorities | EmberMultiprotocolPriorities): Promise<void>;
|
|
669
|
+
/**
|
|
670
|
+
* Get the current multiprotocol sliptime
|
|
671
|
+
* @returns Value of the current slip time.
|
|
672
|
+
*/
|
|
673
|
+
ezspRadioGetSchedulerSliptime(): Promise<number>;
|
|
674
|
+
/**
|
|
675
|
+
* Set the current multiprotocol sliptime
|
|
676
|
+
* @param slipTime Value of the current slip time.
|
|
677
|
+
*/
|
|
678
|
+
ezspRadioSetSchedulerSliptime(slipTime: number): Promise<void>;
|
|
679
|
+
/**
|
|
680
|
+
* Check if a particular counter is one that could report from either a 2.4GHz or sub-GHz interface.
|
|
681
|
+
* @param counter The counter to be checked.
|
|
682
|
+
* @returns Whether this counter requires a PHY index when operating on a dual-PHY system.
|
|
683
|
+
*/
|
|
684
|
+
ezspCounterRequiresPhyIndex(counter: EmberCounterType): Promise<boolean>;
|
|
685
|
+
/**
|
|
686
|
+
* Check if a particular counter can report on the destination node ID they have been triggered from.
|
|
687
|
+
* @param counter The counter to be checked.
|
|
688
|
+
* @returns Whether this counter requires the destination node ID.
|
|
689
|
+
*/
|
|
690
|
+
ezspCounterRequiresDestinationNodeId(counter: EmberCounterType): Promise<boolean>;
|
|
691
|
+
/**
|
|
692
|
+
* Sets the manufacturer code to the specified value.
|
|
693
|
+
* The manufacturer code is one of the fields of the node descriptor.
|
|
694
|
+
* @param code uint16_t The manufacturer code for the local node.
|
|
695
|
+
*/
|
|
696
|
+
ezspSetManufacturerCode(code: number): Promise<void>;
|
|
697
|
+
/**
|
|
698
|
+
* Gets the manufacturer code to the specified value.
|
|
699
|
+
* The manufacturer code is one of the fields of the node descriptor.
|
|
700
|
+
* @returns The manufacturer code for the local node.
|
|
701
|
+
*/
|
|
702
|
+
ezspGetManufacturerCode(): Promise<number>;
|
|
703
|
+
/**
|
|
704
|
+
* Sets the power descriptor to the specified value. The power descriptor is a
|
|
705
|
+
* dynamic value. Therefore, you should call this function whenever the value
|
|
706
|
+
* changes.
|
|
707
|
+
* @param descriptor uint16_t The new power descriptor for the local node.
|
|
708
|
+
* @returns An SLStatus value indicating success or the reason for failure. Always `OK` in v13-.
|
|
709
|
+
*/
|
|
710
|
+
ezspSetPowerDescriptor(descriptor: number): Promise<SLStatus>;
|
|
711
|
+
/**
|
|
712
|
+
* Resume network operation after a reboot. The node retains its original type.
|
|
713
|
+
* This should be called on startup whether or not the node was previously part
|
|
714
|
+
* of a network. EMBER_NOT_JOINED is returned if the node is not part of a
|
|
715
|
+
* network. This command accepts options to control the network initialization.
|
|
716
|
+
* @param networkInitStruct EmberNetworkInitStruct * An EmberNetworkInitStruct containing the options for initialization.
|
|
717
|
+
* @returns
|
|
718
|
+
* - SLStatus.OK if successful initialization,
|
|
719
|
+
* - SLStatus.NOT_JOINED if the node is not part of a network
|
|
720
|
+
* - or the reason for failure.
|
|
721
|
+
*/
|
|
722
|
+
ezspNetworkInit(networkInitStruct: EmberNetworkInitStruct): Promise<SLStatus>;
|
|
723
|
+
/**
|
|
724
|
+
* Returns a value indicating whether the node is joining, joined to, or leaving a network.
|
|
725
|
+
* @returns Command send status.
|
|
726
|
+
* @returns An EmberNetworkStatus value indicating the current join status.
|
|
727
|
+
*/
|
|
728
|
+
ezspNetworkState(): Promise<EmberNetworkStatus>;
|
|
729
|
+
/**
|
|
730
|
+
* Callback
|
|
731
|
+
* A callback invoked when the status of the stack changes. If the status
|
|
732
|
+
* parameter equals EMBER_NETWORK_UP, then the getNetworkParameters command can
|
|
733
|
+
* be called to obtain the new network parameters. If any of the parameters are
|
|
734
|
+
* being stored in nonvolatile memory by the Host, the stored values should be
|
|
735
|
+
* updated.
|
|
736
|
+
* @param status Stack status
|
|
737
|
+
*/
|
|
738
|
+
ezspStackStatusHandler(status: SLStatus): void;
|
|
739
|
+
/**
|
|
740
|
+
* This function will start a scan.
|
|
741
|
+
* @param scanType Indicates the type of scan to be performed. Possible values are: EZSP_ENERGY_SCAN and EZSP_ACTIVE_SCAN.
|
|
742
|
+
* For each type, the respective callback for reporting results is: energyScanResultHandler and networkFoundHandler.
|
|
743
|
+
* The energy scan and active scan report errors and completion via the scanCompleteHandler.
|
|
744
|
+
* @param channelMask uint32_t Bits set as 1 indicate that this particular channel should be scanned.
|
|
745
|
+
* Bits set to 0 indicate that this particular channel should not be scanned. For example, a channelMask value of 0x00000001
|
|
746
|
+
* would indicate that only channel 0 should be scanned. Valid channels range from 11 to 26 inclusive.
|
|
747
|
+
* This translates to a channel mask value of 0x07FFF800.
|
|
748
|
+
* As a convenience, a value of 0 is reinterpreted as the mask for the current channel.
|
|
749
|
+
* @param duration uint8_t Sets the exponent of the number of scan periods, where a scan period is 960 symbols.
|
|
750
|
+
* The scan will occur for ((2^duration) + 1) scan periods.
|
|
751
|
+
* @returns
|
|
752
|
+
* - SLStatus.OK signals that the scan successfully started. Possible error responses and their meanings:
|
|
753
|
+
* - SLStatus.MAC_SCANNING, we are already scanning;
|
|
754
|
+
* - SLStatus.BAD_SCAN_DURATION, we have set a duration value that is not 0..14 inclusive;
|
|
755
|
+
* - SLStatus.MAC_INCORRECT_SCAN_TYPE, we have requested an undefined scanning type;
|
|
756
|
+
* - SLStatus.INVALID_CHANNEL_MASK, our channel mask did not specify any valid channels.
|
|
757
|
+
*/
|
|
758
|
+
ezspStartScan(scanType: EzspNetworkScanType, channelMask: number, duration: number): Promise<SLStatus>;
|
|
759
|
+
/**
|
|
760
|
+
* Callback
|
|
761
|
+
* Reports the result of an energy scan for a single channel. The scan is not
|
|
762
|
+
* complete until the scanCompleteHandler callback is called.
|
|
763
|
+
* @param channel uint8_t The 802.15.4 channel number that was scanned.
|
|
764
|
+
* @param maxRssiValue int8_t The maximum RSSI value found on the channel.
|
|
765
|
+
*/
|
|
766
|
+
ezspEnergyScanResultHandler(channel: number, maxRssiValue: number): void;
|
|
767
|
+
/**
|
|
768
|
+
* Callback
|
|
769
|
+
* Reports that a network was found as a result of a prior call to startScan.
|
|
770
|
+
* Gives the network parameters useful for deciding which network to join.
|
|
771
|
+
* @param networkFound EmberZigbeeNetwork * The parameters associated with the network found.
|
|
772
|
+
* @param lastHopLqi uint8_t The link quality from the node that generated this beacon.
|
|
773
|
+
* @param lastHopRssi int8_t The energy level (in units of dBm) observed during the reception.
|
|
774
|
+
*/
|
|
775
|
+
ezspNetworkFoundHandler(networkFound: EmberZigbeeNetwork, lastHopLqi: number, lastHopRssi: number): void;
|
|
776
|
+
/**
|
|
777
|
+
* Callback
|
|
778
|
+
* @param channel uint8_t The channel on which the current error occurred. Undefined for the case of EMBER_SUCCESS.
|
|
779
|
+
* @param status The error condition that occurred on the current channel. Value will be SLStatus.OK when the scan has completed.
|
|
780
|
+
* Other error conditions signify a failure to scan on the channel specified.
|
|
781
|
+
*/
|
|
782
|
+
ezspScanCompleteHandler(channel: number, status: SLStatus): void;
|
|
783
|
+
/**
|
|
784
|
+
* Callback
|
|
785
|
+
* This function returns an unused panID and channel pair found via the find
|
|
786
|
+
* unused panId scan procedure.
|
|
787
|
+
* @param panId The unused panID which has been found.
|
|
788
|
+
* @param channel uint8_t The channel that the unused panID was found on.
|
|
789
|
+
*/
|
|
790
|
+
ezspUnusedPanIdFoundHandler(panId: PanId, channel: number): void;
|
|
791
|
+
/**
|
|
792
|
+
* This function starts a series of scans which will return an available panId.
|
|
793
|
+
* @param channelMask uint32_t The channels that will be scanned for available panIds.
|
|
794
|
+
* @param duration uint8_t The duration of the procedure.
|
|
795
|
+
* @returns The error condition that occurred during the scan. Value will be SLStatus.OK if there are no errors.
|
|
796
|
+
*/
|
|
797
|
+
ezspFindUnusedPanId(channelMask: number, duration: number): Promise<SLStatus>;
|
|
798
|
+
/**
|
|
799
|
+
* Terminates a scan in progress.
|
|
800
|
+
* @returns An SLStatus value indicating success or the reason for failure.
|
|
801
|
+
*/
|
|
802
|
+
ezspStopScan(): Promise<SLStatus>;
|
|
803
|
+
/**
|
|
804
|
+
* Forms a new network by becoming the coordinator.
|
|
805
|
+
* @param parameters EmberNetworkParameters * Specification of the new network.
|
|
806
|
+
* @returns An SLStatus value indicating success or the reason for failure.
|
|
807
|
+
*/
|
|
808
|
+
ezspFormNetwork(parameters: EmberNetworkParameters): Promise<SLStatus>;
|
|
809
|
+
/**
|
|
810
|
+
* Causes the stack to associate with the network using the specified network
|
|
811
|
+
* parameters. It can take several seconds for the stack to associate with the
|
|
812
|
+
* local network. Do not send messages until the stackStatusHandler callback
|
|
813
|
+
* informs you that the stack is up.
|
|
814
|
+
* @param nodeType Specification of the role that this node will have in the network.
|
|
815
|
+
* This role must not be EMBER_COORDINATOR. To be a coordinator, use the formNetwork command.
|
|
816
|
+
* @param parameters EmberNetworkParameters * Specification of the network with which the node should associate.
|
|
817
|
+
* @returns An SLStatus value indicating success or the reason for failure.
|
|
818
|
+
*/
|
|
819
|
+
ezspJoinNetwork(nodeType: EmberNodeType, parameters: EmberNetworkParameters): Promise<SLStatus>;
|
|
820
|
+
/**
|
|
821
|
+
* Causes the stack to associate with the network using the specified network
|
|
822
|
+
* parameters in the beacon parameter. It can take several seconds for the stack
|
|
823
|
+
* to associate with the local network. Do not send messages until the
|
|
824
|
+
* stackStatusHandler callback informs you that the stack is up. Unlike
|
|
825
|
+
* ::emberJoinNetwork(), this function does not issue an active scan before
|
|
826
|
+
* joining. Instead, it will cause the local node to issue a MAC Association
|
|
827
|
+
* Request directly to the specified target node. It is assumed that the beacon
|
|
828
|
+
* parameter is an artifact after issuing an active scan. (For more information,
|
|
829
|
+
* see emberGetBestBeacon and emberGetNextBeacon.)
|
|
830
|
+
* @param localNodeType Specifies the role that this node will have in the network. This role must not be EMBER_COORDINATOR.
|
|
831
|
+
* To be a coordinator, use the formNetwork command.
|
|
832
|
+
* @param beacon EmberBeaconData * Specifies the network with which the node should associate.
|
|
833
|
+
* @param radioTxPower int8_t The radio transmit power to use, specified in dBm.
|
|
834
|
+
* @param clearBeaconsAfterNetworkUp If true, clear beacons in cache upon join success. If join fail, do nothing.
|
|
835
|
+
* @returns An SLStatus value indicating success or the reason for failure.
|
|
836
|
+
*/
|
|
837
|
+
ezspJoinNetworkDirectly(localNodeType: EmberNodeType, beacon: EmberBeaconData, radioTxPower: number, clearBeaconsAfterNetworkUp: boolean): Promise<SLStatus>;
|
|
838
|
+
/**
|
|
839
|
+
* Causes the stack to leave the current network. This generates a
|
|
840
|
+
* stackStatusHandler callback to indicate that the network is down. The radio
|
|
841
|
+
* will not be used until after sending a formNetwork or joinNetwork command.
|
|
842
|
+
* @param options This parameter gives options when leave network
|
|
843
|
+
* @returns An SLStatus value indicating success or the reason for failure.
|
|
844
|
+
*/
|
|
845
|
+
ezspLeaveNetwork(options?: EmberLeaveNetworkOption): Promise<SLStatus>;
|
|
846
|
+
/**
|
|
847
|
+
* The application may call this function when contact with the network has been
|
|
848
|
+
* lost. The most common usage case is when an end device can no longer
|
|
849
|
+
* communicate with its parent and wishes to find a new one. Another case is
|
|
850
|
+
* when a device has missed a Network Key update and no longer has the current
|
|
851
|
+
* Network Key. The stack will call ezspStackStatusHandler to indicate that the
|
|
852
|
+
* network is down, then try to re-establish contact with the network by
|
|
853
|
+
* performing an active scan, choosing a network with matching extended pan id,
|
|
854
|
+
* and sending a Zigbee network rejoin request. A second call to the
|
|
855
|
+
* ezspStackStatusHandler callback indicates either the success or the failure
|
|
856
|
+
* of the attempt. The process takes approximately 150 milliseconds per channel
|
|
857
|
+
* to complete.
|
|
858
|
+
* @param haveCurrentNetworkKey This parameter tells the stack whether to try to use the current network key.
|
|
859
|
+
* If it has the current network key it will perform a secure rejoin (encrypted). If this fails the device should try an unsecure rejoin.
|
|
860
|
+
* If the Trust Center allows the rejoin then the current Network Key will be sent encrypted using the device's Link Key.
|
|
861
|
+
* @param channelMask uint32_t A mask indicating the channels to be scanned. See emberStartScan for format details.
|
|
862
|
+
* A value of 0 is reinterpreted as the mask for the current channel.
|
|
863
|
+
* @param reason uint8_t A sl_zigbee_rejoin_reason_t variable which could be passed in if there is actually a reason for rejoin,
|
|
864
|
+
* or could be left at 0xFF
|
|
865
|
+
* @param nodeType uint8_t The rejoin could be triggered with a different nodeType.
|
|
866
|
+
* This value could be set to 0 or SL_ZIGBEE_DEVICE_TYPE_UNCHANGED if not needed.
|
|
867
|
+
* @returns An SLStatus value indicating success or the reason for failure.
|
|
868
|
+
*/
|
|
869
|
+
ezspFindAndRejoinNetwork(haveCurrentNetworkKey: boolean, channelMask: number, reason?: number, nodeType?: number): Promise<SLStatus>;
|
|
870
|
+
/**
|
|
871
|
+
* Tells the stack to allow other nodes to join the network with this node as
|
|
872
|
+
* their parent. Joining is initially disabled by default.
|
|
873
|
+
* @param duration uint8_t A value of 0x00 disables joining. A value of 0xFF enables joining.
|
|
874
|
+
* Any other value enables joining for that number of seconds.
|
|
875
|
+
* @returns An SLStatus value indicating success or the reason for failure.
|
|
876
|
+
*/
|
|
877
|
+
ezspPermitJoining(duration: number): Promise<SLStatus>;
|
|
878
|
+
/**
|
|
879
|
+
* Callback
|
|
880
|
+
* Indicates that a child has joined or left.
|
|
881
|
+
* @param index uint8_t The index of the child of interest.
|
|
882
|
+
* @param joining True if the child is joining. False the child is leaving.
|
|
883
|
+
* @param childId The node ID of the child.
|
|
884
|
+
* @param childEui64 The EUI64 of the child.
|
|
885
|
+
* @param childType The node type of the child.
|
|
886
|
+
*/
|
|
887
|
+
ezspChildJoinHandler(index: number, joining: boolean, childId: NodeId, childEui64: Eui64, childType: EmberNodeType): void;
|
|
888
|
+
/**
|
|
889
|
+
* Sends a ZDO energy scan request. This request may only be sent by the current
|
|
890
|
+
* network manager and must be unicast, not broadcast. See ezsp-utils.h for
|
|
891
|
+
* related macros emberSetNetworkManagerRequest() and
|
|
892
|
+
* emberChangeChannelRequest().
|
|
893
|
+
* @param target The network address of the node to perform the scan.
|
|
894
|
+
* @param scanChannels uint32_t A mask of the channels to be scanned
|
|
895
|
+
* @param scanDuration uint8_t How long to scan on each channel.
|
|
896
|
+
* Allowed values are 0..5, with the scan times as specified by 802.15.4 (0 = 31ms, 1 = 46ms, 2 = 77ms, 3 = 138ms, 4 = 261ms, 5 = 507ms).
|
|
897
|
+
* @param scanCount uint16_t The number of scans to be performed on each channel (1..8).
|
|
898
|
+
* @returns An SLStatus value indicating success or the reason for failure.
|
|
899
|
+
*/
|
|
900
|
+
ezspEnergyScanRequest(target: NodeId, scanChannels: number, scanDuration: number, scanCount: number): Promise<SLStatus>;
|
|
901
|
+
/**
|
|
902
|
+
* Returns the current network parameters.
|
|
903
|
+
* @returns An SLStatus value indicating success or the reason for failure.
|
|
904
|
+
* @returns EmberNodeType * An EmberNodeType value indicating the current node type.
|
|
905
|
+
* @returns EmberNetworkParameters * The current network parameters.
|
|
906
|
+
*/
|
|
907
|
+
ezspGetNetworkParameters(): Promise<[SLStatus, nodeType: EmberNodeType, parameters: EmberNetworkParameters]>;
|
|
908
|
+
/**
|
|
909
|
+
* Returns the current radio parameters based on phy index.
|
|
910
|
+
* @param phyIndex uint8_t Desired index of phy interface for radio parameters.
|
|
911
|
+
* @returns An SLStatus value indicating success or the reason for failure.
|
|
912
|
+
* @returns EmberMultiPhyRadioParameters * The current radio parameters based on provided phy index.
|
|
913
|
+
*/
|
|
914
|
+
ezspGetRadioParameters(phyIndex: number): Promise<[SLStatus, parameters: EmberMultiPhyRadioParameters]>;
|
|
915
|
+
/**
|
|
916
|
+
* Returns information about the children of the local node and the parent of
|
|
917
|
+
* the local node.
|
|
918
|
+
* @returns uint8_t The number of children the node currently has.
|
|
919
|
+
* @returns The parent's EUI64. The value is undefined for nodes without parents (coordinators and nodes that are not joined to a network).
|
|
920
|
+
* @returns NodeId * The parent's node ID. The value is undefined for nodes without parents
|
|
921
|
+
* (coordinators and nodes that are not joined to a network).
|
|
922
|
+
*/
|
|
923
|
+
ezspGetParentChildParameters(): Promise<[number, parentEui64: Eui64, parentNodeId: NodeId]>;
|
|
924
|
+
/**
|
|
925
|
+
* Return the number of router children that the node currently has.
|
|
926
|
+
* @returns The number of router children.
|
|
927
|
+
*/
|
|
928
|
+
ezspRouterChildCount(): Promise<number>;
|
|
929
|
+
/**
|
|
930
|
+
* Return the maximum number of children for this node.
|
|
931
|
+
* The return value is undefined for nodes that are not joined to a network.
|
|
932
|
+
* @returns The maximum number of children.
|
|
933
|
+
*/
|
|
934
|
+
ezspMaxChildCount(): Promise<number>;
|
|
935
|
+
/**
|
|
936
|
+
* Return the maximum number of router children for this node.
|
|
937
|
+
* The return value is undefined for nodes that are not joined to a network.
|
|
938
|
+
* @returns The maximum number of router children.
|
|
939
|
+
*/
|
|
940
|
+
ezspMaxRouterChildCount(): Promise<number>;
|
|
941
|
+
/**
|
|
942
|
+
*
|
|
943
|
+
* @returns
|
|
944
|
+
*/
|
|
945
|
+
ezspGetParentIncomingNwkFrameCounter(): Promise<number>;
|
|
946
|
+
/**
|
|
947
|
+
*
|
|
948
|
+
* @param value uint32_t
|
|
949
|
+
* @returns
|
|
950
|
+
*/
|
|
951
|
+
ezspSetParentIncomingNwkFrameCounter(value: number): Promise<SLStatus>;
|
|
952
|
+
/**
|
|
953
|
+
* Return a bitmask indicating the stack's current tasks.
|
|
954
|
+
* The mask ::SL_ZIGBEE_HIGH_PRIORITY_TASKS defines which tasks are high priority.
|
|
955
|
+
* Devices should not sleep if any high priority tasks are active.
|
|
956
|
+
* Active tasks that are not high priority are waiting for messages to arrive from other devices.
|
|
957
|
+
* If there are active tasks, but no high priority ones, the device may sleep but should periodically wake up
|
|
958
|
+
* and call ::emberPollForData() in order to receive messages.
|
|
959
|
+
* Parents will hold messages for ::SL_ZIGBEE_INDIRECT_TRANSMISSION_TIMEOUT milliseconds before discarding them.
|
|
960
|
+
* @returns A bitmask of the stack's active tasks.
|
|
961
|
+
*/
|
|
962
|
+
ezspCurrentStackTasks(): Promise<number>;
|
|
963
|
+
/**
|
|
964
|
+
* Indicate whether the stack is currently in a state where there are no high-priority tasks, allowing the device to sleep.
|
|
965
|
+
* There may be tasks expecting incoming messages, in which case the device should periodically wake up
|
|
966
|
+
* and call ::emberPollForData() in order to receive messages.
|
|
967
|
+
* This function can only be called when the node type is ::SL_ZIGBEE_SLEEPY_END_DEVICE
|
|
968
|
+
* @returns True if the application may sleep but the stack may be expecting incoming messages.
|
|
969
|
+
*/
|
|
970
|
+
ezspOkToNap(): Promise<boolean>;
|
|
971
|
+
/**
|
|
972
|
+
* Indicate whether the parent token has been set by association.
|
|
973
|
+
* @returns True if the parent token has been set.
|
|
974
|
+
*/
|
|
975
|
+
ezspParentTokenSet(): Promise<boolean>;
|
|
976
|
+
/**
|
|
977
|
+
* Indicate whether the stack currently has any tasks pending.
|
|
978
|
+
* If no tasks are pending, ::emberTick() does not need to be called until the next time a stack API function is called.
|
|
979
|
+
* This function can only be called when the node type is ::SL_ZIGBEE_SLEEPY_END_DEVICE.
|
|
980
|
+
* @returns True if the application may sleep for as long as it wishes.
|
|
981
|
+
*/
|
|
982
|
+
ezspOkToHibernate(): Promise<boolean>;
|
|
983
|
+
/**
|
|
984
|
+
* Indicate whether the stack is currently in a state that does not require the application to periodically poll.
|
|
985
|
+
* @returns True if the device may poll less frequently.
|
|
986
|
+
*/
|
|
987
|
+
ezspOkToLongPoll(): Promise<boolean>;
|
|
988
|
+
/**
|
|
989
|
+
* Calling this function will render all other stack functions except ezspStackPowerUp() non-functional until the radio is powered back on.
|
|
990
|
+
*/
|
|
991
|
+
ezspStackPowerDown(): Promise<void>;
|
|
992
|
+
/**
|
|
993
|
+
* Initialize the radio. Typically called coming out of deep sleep.
|
|
994
|
+
* For non-sleepy devices, also turns the radio on and leaves it in RX mode.
|
|
995
|
+
*/
|
|
996
|
+
ezspStackPowerUp(): Promise<void>;
|
|
997
|
+
/**
|
|
998
|
+
* Returns information about a child of the local node.
|
|
999
|
+
* @param uint8_t The index of the child of interest in the child table. Possible indexes range from zero to EMBER_CHILD_TABLE_SIZE.
|
|
1000
|
+
* @returns
|
|
1001
|
+
* - SLStatus.OK if there is a child at index.
|
|
1002
|
+
* - SLStatus.NOT_JOINED if there is no child at index.
|
|
1003
|
+
* @returns EmberChildData * The data of the child.
|
|
1004
|
+
*/
|
|
1005
|
+
ezspGetChildData(index: number): Promise<[SLStatus, childData: EmberChildData]>;
|
|
1006
|
+
/**
|
|
1007
|
+
* Sets child data to the child table token.
|
|
1008
|
+
* @param index uint8_t The index of the child of interest in the child table. Possible indexes range from zero to (EMBER_CHILD_TABLE_SIZE - 1).
|
|
1009
|
+
* @param childData EmberChildData * The data of the child.
|
|
1010
|
+
* @returns
|
|
1011
|
+
* - SLStatus.OK if the child data is set successfully at index.
|
|
1012
|
+
* - SLStatus.INVALID_INDEX if provided index is out of range.
|
|
1013
|
+
*/
|
|
1014
|
+
ezspSetChildData(index: number, childData: EmberChildData): Promise<SLStatus>;
|
|
1015
|
+
/**
|
|
1016
|
+
* Convert a child index to a node ID
|
|
1017
|
+
* @param childIndex uint8_t The index of the child of interest in the child table. Possible indexes range from zero to EMBER_CHILD_TABLE_SIZE.
|
|
1018
|
+
* @returns The node ID of the child or EMBER_NULL_NODE_ID if there isn't a child at the childIndex specified
|
|
1019
|
+
*/
|
|
1020
|
+
ezspChildId(childIndex: number): Promise<NodeId>;
|
|
1021
|
+
/**
|
|
1022
|
+
* Return radio power value of the child from the given childIndex
|
|
1023
|
+
* @param childIndex uint8_t The index of the child of interest in the child table.
|
|
1024
|
+
* Possible indexes range from zero to SL_ZIGBEE_CHILD_TABLE_SIZE.
|
|
1025
|
+
* @returns The power of the child or maximum radio power, which is the power value provided by the user
|
|
1026
|
+
* while forming/joining a network if there isn't a child at the childIndex specified
|
|
1027
|
+
*/
|
|
1028
|
+
ezspChilPower(childIndex: number): Promise<number>;
|
|
1029
|
+
/**
|
|
1030
|
+
* Set the radio power value for a given child index.
|
|
1031
|
+
* @param childIndex uint8_t
|
|
1032
|
+
* @param newPower int8_t
|
|
1033
|
+
*/
|
|
1034
|
+
ezspSetChildPower(childIndex: number, newPower: number): Promise<void>;
|
|
1035
|
+
/**
|
|
1036
|
+
* Convert a node ID to a child index
|
|
1037
|
+
* @param childId The node ID of the child
|
|
1038
|
+
* @returns uint8_t The child index or 0xFF if the node ID doesn't belong to a child
|
|
1039
|
+
*/
|
|
1040
|
+
ezspChildIndex(childId: NodeId): Promise<number>;
|
|
1041
|
+
/**
|
|
1042
|
+
* Returns the source route table total size.
|
|
1043
|
+
* @returns uint8_t Total size of source route table.
|
|
1044
|
+
*/
|
|
1045
|
+
ezspGetSourceRouteTableTotalSize(): Promise<number>;
|
|
1046
|
+
/**
|
|
1047
|
+
* Returns the number of filled entries in source route table.
|
|
1048
|
+
* @returns uint8_t The number of filled entries in source route table.
|
|
1049
|
+
*/
|
|
1050
|
+
ezspGetSourceRouteTableFilledSize(): Promise<number>;
|
|
1051
|
+
/**
|
|
1052
|
+
* Returns information about a source route table entry
|
|
1053
|
+
* @param index uint8_t The index of the entry of interest in the source route table.
|
|
1054
|
+
* Possible indexes range from zero to SOURCE_ROUTE_TABLE_FILLED_SIZE.
|
|
1055
|
+
* @returns
|
|
1056
|
+
* - SLStatus.OK if there is source route entry at index.
|
|
1057
|
+
* - SLStatus.NOT_FOUND if there is no source route at index.
|
|
1058
|
+
* @returns NodeId * The node ID of the destination in that entry.
|
|
1059
|
+
* @returns uint8_t * The closer node index for this source route table entry
|
|
1060
|
+
*/
|
|
1061
|
+
ezspGetSourceRouteTableEntry(index: number): Promise<[SLStatus, destination: NodeId, closerIndex: number]>;
|
|
1062
|
+
/**
|
|
1063
|
+
* Returns the neighbor table entry at the given index. The number of active
|
|
1064
|
+
* neighbors can be obtained using the neighborCount command.
|
|
1065
|
+
* @param index uint8_t The index of the neighbor of interest. Neighbors are stored in ascending order by node id,
|
|
1066
|
+
* with all unused entries at the end of the table.
|
|
1067
|
+
* @returns
|
|
1068
|
+
* - SLStatus.FAIL if the index is greater or equal to the number of active neighbors, or if the device is an end device.
|
|
1069
|
+
* - SLStatus.OK otherwise.
|
|
1070
|
+
* @returns EmberNeighborTableEntry * The contents of the neighbor table entry.
|
|
1071
|
+
*/
|
|
1072
|
+
ezspGetNeighbor(index: number): Promise<[SLStatus, value: EmberNeighborTableEntry]>;
|
|
1073
|
+
/**
|
|
1074
|
+
* Return EmberStatus depending on whether the frame counter of the node is
|
|
1075
|
+
* found in the neighbor or child table. This function gets the last received
|
|
1076
|
+
* frame counter as found in the Network Auxiliary header for the specified
|
|
1077
|
+
* neighbor or child
|
|
1078
|
+
* @param eui64 eui64 of the node
|
|
1079
|
+
* @returns
|
|
1080
|
+
* - SLStatus.NOT_FOUND if the node is not found in the neighbor or child table.
|
|
1081
|
+
* - SLStatus.OK otherwise
|
|
1082
|
+
* @returns uint32_t * Return the frame counter of the node from the neighbor or child table
|
|
1083
|
+
*/
|
|
1084
|
+
ezspGetNeighborFrameCounter(eui64: Eui64): Promise<[SLStatus, returnFrameCounter: number]>;
|
|
1085
|
+
/**
|
|
1086
|
+
* Sets the frame counter for the neighbour or child.
|
|
1087
|
+
* @param eui64 eui64 of the node
|
|
1088
|
+
* @param frameCounter uint32_t Return the frame counter of the node from the neighbor or child table
|
|
1089
|
+
* @returns
|
|
1090
|
+
* - SLStatus.NOT_FOUND if the node is not found in the neighbor or child table.
|
|
1091
|
+
* - SLStatus.OK otherwise
|
|
1092
|
+
*/
|
|
1093
|
+
ezspSetNeighborFrameCounter(eui64: Eui64, frameCounter: number): Promise<SLStatus>;
|
|
1094
|
+
/**
|
|
1095
|
+
* Sets the routing shortcut threshold to directly use a neighbor instead of
|
|
1096
|
+
* performing routing.
|
|
1097
|
+
* @param costThresh uint8_t The routing shortcut threshold to configure.
|
|
1098
|
+
* @returns An SLStatus value indicating success or the reason for failure.
|
|
1099
|
+
*/
|
|
1100
|
+
ezspSetRoutingShortcutThreshold(costThresh: number): Promise<SLStatus>;
|
|
1101
|
+
/**
|
|
1102
|
+
* Gets the routing shortcut threshold used to differentiate between directly
|
|
1103
|
+
* using a neighbor vs. performing routing.
|
|
1104
|
+
* @returns uint8_t The routing shortcut threshold
|
|
1105
|
+
*/
|
|
1106
|
+
ezspGetRoutingShortcutThreshold(): Promise<number>;
|
|
1107
|
+
/**
|
|
1108
|
+
* Returns the number of active entries in the neighbor table.
|
|
1109
|
+
* @returns uint8_t The number of active entries in the neighbor table.
|
|
1110
|
+
*/
|
|
1111
|
+
ezspNeighborCount(): Promise<number>;
|
|
1112
|
+
/**
|
|
1113
|
+
* Returns the route table entry at the given index. The route table size can be
|
|
1114
|
+
* obtained using the getConfigurationValue command.
|
|
1115
|
+
* @param index uint8_t The index of the route table entry of interest.
|
|
1116
|
+
* @returns
|
|
1117
|
+
* - SLStatus.FAIL if the index is out of range or the device is an end
|
|
1118
|
+
* - SLStatus.OK otherwise.
|
|
1119
|
+
* @returns EmberRouteTableEntry * The contents of the route table entry.
|
|
1120
|
+
*/
|
|
1121
|
+
ezspGetRouteTableEntry(index: number): Promise<[SLStatus, value: EmberRouteTableEntry]>;
|
|
1122
|
+
/**
|
|
1123
|
+
* Sets the radio output power at which a node is operating. Ember radios have
|
|
1124
|
+
* discrete power settings. For a list of available power settings, see the
|
|
1125
|
+
* technical specification for the RF communication module in your Developer
|
|
1126
|
+
* Kit. Note: Care should be taken when using this API on a running network, as
|
|
1127
|
+
* it will directly impact the established link qualities neighboring nodes have
|
|
1128
|
+
* with the node on which it is called. This can lead to disruption of existing
|
|
1129
|
+
* routes and erratic network behavior.
|
|
1130
|
+
* @param power int8_t Desired radio output power, in dBm.
|
|
1131
|
+
* @returns An SLStatus value indicating the success or failure of the command.
|
|
1132
|
+
*/
|
|
1133
|
+
ezspSetRadioPower(power: number): Promise<SLStatus>;
|
|
1134
|
+
/**
|
|
1135
|
+
* Sets the channel to use for sending and receiving messages. For a list of
|
|
1136
|
+
* available radio channels, see the technical specification for the RF
|
|
1137
|
+
* communication module in your Developer Kit. Note: Care should be taken when
|
|
1138
|
+
* using this API, as all devices on a network must use the same channel.
|
|
1139
|
+
* @param channel uint8_t Desired radio channel.
|
|
1140
|
+
* @returns An SLStatus value indicating the success or failure of the command.
|
|
1141
|
+
*/
|
|
1142
|
+
ezspSetRadioChannel(channel: number): Promise<SLStatus>;
|
|
1143
|
+
/**
|
|
1144
|
+
* Gets the channel in use for sending and receiving messages.
|
|
1145
|
+
* @returns uint8_t Current radio channel.
|
|
1146
|
+
*/
|
|
1147
|
+
ezspGetRadioChannel(): Promise<number>;
|
|
1148
|
+
/**
|
|
1149
|
+
* Set the configured 802.15.4 CCA mode in the radio.
|
|
1150
|
+
* @param ccaMode uint8_t A RAIL_IEEE802154_CcaMode_t value.
|
|
1151
|
+
* @returns An SLStatus value indicating the success or failure of the command.
|
|
1152
|
+
*/
|
|
1153
|
+
ezspSetRadioIeee802154CcaMode(ccaMode: IEEE802154CcaMode): Promise<SLStatus>;
|
|
1154
|
+
/**
|
|
1155
|
+
* Enable/disable concentrator support.
|
|
1156
|
+
* @param on If this bool is true the concentrator support is enabled. Otherwise is disabled.
|
|
1157
|
+
* If this bool is false all the other arguments are ignored.
|
|
1158
|
+
* @param concentratorType uint16_t Must be either EMBER_HIGH_RAM_CONCENTRATOR or EMBER_LOW_RAM_CONCENTRATOR.
|
|
1159
|
+
* The former is used when the caller has enough memory to store source routes for the whole network.
|
|
1160
|
+
* In that case, remote nodes stop sending route records once the concentrator has successfully received one.
|
|
1161
|
+
* The latter is used when the concentrator has insufficient RAM to store all outbound source routes.
|
|
1162
|
+
* In that case, route records are sent to the concentrator prior to every inbound APS unicast.
|
|
1163
|
+
* @param minTime uint16_t The minimum amount of time that must pass between MTORR broadcasts.
|
|
1164
|
+
* @param maxTime uint16_t The maximum amount of time that can pass between MTORR broadcasts.
|
|
1165
|
+
* @param routeErrorThreshold uint8_t The number of route errors that will trigger a re-broadcast of the MTORR.
|
|
1166
|
+
* @param deliveryFailureThreshold uint8_t The number of APS delivery failures that will trigger a re-broadcast of the MTORR.
|
|
1167
|
+
* @param maxHops uint8_t The maximum number of hops that the MTORR broadcast will be allowed to have.
|
|
1168
|
+
* A value of 0 will be converted to the EMBER_MAX_HOPS value set by the stack.
|
|
1169
|
+
* @returns An SLStatus value indicating success or the reason for failure.
|
|
1170
|
+
*/
|
|
1171
|
+
ezspSetConcentrator(on: boolean, concentratorType: number, minTime: number, maxTime: number, routeErrorThreshold: number, deliveryFailureThreshold: number, maxHops: number): Promise<SLStatus>;
|
|
1172
|
+
/**
|
|
1173
|
+
* Starts periodic many-to-one route discovery.
|
|
1174
|
+
* Periodic discovery is started by default on bootup, but this function may be used if discovery
|
|
1175
|
+
* has been stopped by a call to ::ezspConcentratorStopDiscovery().
|
|
1176
|
+
*/
|
|
1177
|
+
ezspConcentratorStartDiscovery(): Promise<void>;
|
|
1178
|
+
/**
|
|
1179
|
+
* Stops periodic many-to-one route discovery.
|
|
1180
|
+
*/
|
|
1181
|
+
ezspConcentratorStopDiscovery(): Promise<void>;
|
|
1182
|
+
/**
|
|
1183
|
+
* Notes when a route error has occurred.
|
|
1184
|
+
* @param status
|
|
1185
|
+
* @param nodeId
|
|
1186
|
+
*/
|
|
1187
|
+
ezspConcentratorNoteRouteError(status: SLStatus, nodeId: NodeId): Promise<void>;
|
|
1188
|
+
/**
|
|
1189
|
+
* Sets the error code that is sent back from a router with a broken route.
|
|
1190
|
+
* @param errorCode uint8_t Desired error code.
|
|
1191
|
+
* @returns An SLStatus value indicating the success or failure of the command.
|
|
1192
|
+
*/
|
|
1193
|
+
ezspSetBrokenRouteErrorCode(errorCode: number): Promise<SLStatus>;
|
|
1194
|
+
/**
|
|
1195
|
+
* This causes to initialize the desired radio interface other than native and
|
|
1196
|
+
* form a new network by becoming the coordinator with same panId as native
|
|
1197
|
+
* radio network.
|
|
1198
|
+
* @param phyIndex uint8_t Index of phy interface. The native phy index would be always zero hence valid phy index starts from one.
|
|
1199
|
+
* @param page uint8_t Desired radio channel page.
|
|
1200
|
+
* @param channel uint8_t Desired radio channel.
|
|
1201
|
+
* @param power int8_t Desired radio output power, in dBm.
|
|
1202
|
+
* @param bitmask Network configuration bitmask.
|
|
1203
|
+
* @returns An SLStatus value indicating success or the reason for failure.
|
|
1204
|
+
*/
|
|
1205
|
+
ezspMultiPhyStart(phyIndex: number, page: number, channel: number, power: number, bitmask: EmberMultiPhyNwkConfig): Promise<SLStatus>;
|
|
1206
|
+
/**
|
|
1207
|
+
* This causes to bring down the radio interface other than native.
|
|
1208
|
+
* @param phyIndex uint8_t Index of phy interface. The native phy index would be always zero hence valid phy index starts from one.
|
|
1209
|
+
* @returns An SLStatus value indicating success or the reason for failure.
|
|
1210
|
+
*/
|
|
1211
|
+
ezspMultiPhyStop(phyIndex: number): Promise<SLStatus>;
|
|
1212
|
+
/**
|
|
1213
|
+
* Sets the radio output power for desired phy interface at which a node is
|
|
1214
|
+
* operating. Ember radios have discrete power settings. For a list of available
|
|
1215
|
+
* power settings, see the technical specification for the RF communication
|
|
1216
|
+
* module in your Developer Kit. Note: Care should be taken when using this api
|
|
1217
|
+
* on a running network, as it will directly impact the established link
|
|
1218
|
+
* qualities neighboring nodes have with the node on which it is called. This
|
|
1219
|
+
* can lead to disruption of existing routes and erratic network behavior.
|
|
1220
|
+
* @param phyIndex uint8_t Index of phy interface. The native phy index would be always zero hence valid phy index starts from one.
|
|
1221
|
+
* @param power int8_t Desired radio output power, in dBm.
|
|
1222
|
+
* @returns An SLStatus value indicating the success or failure of the command.
|
|
1223
|
+
*/
|
|
1224
|
+
ezspMultiPhySetRadioPower(phyIndex: number, power: number): Promise<SLStatus>;
|
|
1225
|
+
/**
|
|
1226
|
+
* Send Link Power Delta Request from a child to its parent
|
|
1227
|
+
* @returns An SLStatus value indicating the success or failure of the command.
|
|
1228
|
+
*/
|
|
1229
|
+
ezspSendLinkPowerDeltaRequest(): Promise<SLStatus>;
|
|
1230
|
+
/**
|
|
1231
|
+
* Sets the channel for desired phy interface to use for sending and receiving
|
|
1232
|
+
* messages. For a list of available radio pages and channels, see the technical
|
|
1233
|
+
* specification for the RF communication module in your Developer Kit. Note:
|
|
1234
|
+
* Care should be taken when using this API, as all devices on a network must
|
|
1235
|
+
* use the same page and channel.
|
|
1236
|
+
* @param phyIndex uint8_t Index of phy interface. The native phy index would be always zero hence valid phy index starts from one.
|
|
1237
|
+
* @param page uint8_t Desired radio channel page.
|
|
1238
|
+
* @param channel uint8_t Desired radio channel.
|
|
1239
|
+
* @returns An SLStatus value indicating the success or failure of the command.
|
|
1240
|
+
*/
|
|
1241
|
+
ezspMultiPhySetRadioChannel(phyIndex: number, page: number, channel: number): Promise<SLStatus>;
|
|
1242
|
+
/**
|
|
1243
|
+
* Obtains the current duty cycle state.
|
|
1244
|
+
* @returns An SLStatus value indicating the success or failure of the command.
|
|
1245
|
+
* @returns EmberDutyCycleState * The current duty cycle state in effect.
|
|
1246
|
+
*/
|
|
1247
|
+
ezspGetDutyCycleState(): Promise<[SLStatus, returnedState: EmberDutyCycleState]>;
|
|
1248
|
+
/**
|
|
1249
|
+
* Set the current duty cycle limits configuration. The Default limits set by
|
|
1250
|
+
* stack if this call is not made.
|
|
1251
|
+
* @param limits EmberDutyCycleLimits * The duty cycle limits configuration to utilize.
|
|
1252
|
+
* @returns
|
|
1253
|
+
* - SLStatus.OK if the duty cycle limit configurations set successfully,
|
|
1254
|
+
* - SLStatus.INVALID_PARAMETER if set illegal value such as setting only one of the limits to default
|
|
1255
|
+
* or violates constraints Susp > Crit > Limi,
|
|
1256
|
+
* - SLStatus.INVALID_STATE if device is operating on 2.4Ghz
|
|
1257
|
+
*/
|
|
1258
|
+
ezspSetDutyCycleLimitsInStack(limits: EmberDutyCycleLimits): Promise<SLStatus>;
|
|
1259
|
+
/**
|
|
1260
|
+
* Obtains the current duty cycle limits that were previously set by a call to emberSetDutyCycleLimitsInStack(),
|
|
1261
|
+
* or the defaults set by the stack if no set call was made.
|
|
1262
|
+
* @returns An SLStatus value indicating the success or failure of the command.
|
|
1263
|
+
* @returns EmberDutyCycleLimits * Return current duty cycle limits if returnedLimits is not NULL
|
|
1264
|
+
*/
|
|
1265
|
+
ezspGetDutyCycleLimits(): Promise<[SLStatus, returnedLimits: EmberDutyCycleLimits]>;
|
|
1266
|
+
/**
|
|
1267
|
+
* Returns the duty cycle of the stack's connected children that are being
|
|
1268
|
+
* monitored, up to maxDevices. It indicates the amount of overall duty cycle
|
|
1269
|
+
* they have consumed (up to the suspend limit). The first entry is always the
|
|
1270
|
+
* local stack's nodeId, and thus the total aggregate duty cycle for the device.
|
|
1271
|
+
* The passed pointer arrayOfDeviceDutyCycles MUST have space for maxDevices.
|
|
1272
|
+
* @param maxDevices uint8_t Number of devices to retrieve consumed duty cycle.
|
|
1273
|
+
* @returns
|
|
1274
|
+
* - SLStatus.OK if the duty cycles were read successfully,
|
|
1275
|
+
* - SLStatus.INVALID_PARAMETER maxDevices is greater than SL_ZIGBEE_MAX_END_DEVICE_CHILDREN + 1.
|
|
1276
|
+
* @returns uint8_t * Consumed duty cycles up to maxDevices. When the number of children that are being monitored is less than maxDevices,
|
|
1277
|
+
* the NodeId element in the EmberPerDeviceDutyCycle will be 0xFFFF.
|
|
1278
|
+
*/
|
|
1279
|
+
ezspGetCurrentDutyCycle(maxDevices: number): Promise<[SLStatus, arrayOfDeviceDutyCycles: number[]]>;
|
|
1280
|
+
/**
|
|
1281
|
+
* Callback
|
|
1282
|
+
* Callback fires when the duty cycle state has changed
|
|
1283
|
+
* @param channelPage uint8_t The channel page whose duty cycle state has changed.
|
|
1284
|
+
* @param channel uint8_t The channel number whose duty cycle state has changed.
|
|
1285
|
+
* @param state The current duty cycle state.
|
|
1286
|
+
* @param totalDevices uint8_t The total number of connected end devices that are being monitored for duty cycle.
|
|
1287
|
+
* @param arrayOfDeviceDutyCycles EmberPerDeviceDutyCycle * Consumed duty cycles of end devices that are being monitored.
|
|
1288
|
+
* The first entry always be the local stack's nodeId, and thus the total aggregate duty cycle for the device.
|
|
1289
|
+
*/
|
|
1290
|
+
ezspDutyCycleHandler(channelPage: number, channel: number, state: EmberDutyCycleState, totalDevices: number, arrayOfDeviceDutyCycles: EmberPerDeviceDutyCycle[]): void;
|
|
1291
|
+
/**
|
|
1292
|
+
* Configure the number of beacons to store when issuing active scans for networks.
|
|
1293
|
+
* @param numBeacons uint8_t The number of beacons to cache when scanning.
|
|
1294
|
+
* @returns
|
|
1295
|
+
* - SLStatus.INVALID_PARAMETER if numBeacons is greater than SL_ZIGBEE_MAX_BEACONS_TO_STORE
|
|
1296
|
+
* - SLStatus.OK
|
|
1297
|
+
*/
|
|
1298
|
+
ezspSetNumBeaconToStore(numBeacons: number): Promise<SLStatus>;
|
|
1299
|
+
/**
|
|
1300
|
+
* Fetches the specified beacon in the cache. Beacons are stored in cache after issuing an active scan.
|
|
1301
|
+
* @param beaconNumber uint8_t The beacon index to fetch. Valid values range from 0 to ezspGetNumStoredBeacons-1.
|
|
1302
|
+
* @returns An appropriate SLStatus status code.
|
|
1303
|
+
* @returns EmberBeaconData * The beacon to populate upon success.
|
|
1304
|
+
*/
|
|
1305
|
+
ezspGetStoredBeacon(beaconNumber: number): Promise<[SLStatus, beacon: EmberBeaconData]>;
|
|
1306
|
+
/**
|
|
1307
|
+
* Returns the number of cached beacons that have been collected from a scan.
|
|
1308
|
+
* @returns uint8_t The number of cached beacons that have been collected from a scan.
|
|
1309
|
+
*/
|
|
1310
|
+
ezspGetNumStoredBeacons(): Promise<number>;
|
|
1311
|
+
/**
|
|
1312
|
+
* Clears all cached beacons that have been collected from a scan.
|
|
1313
|
+
* @returns An SLStatus value indicating success or the reason for failure. Always `OK` in v13-.
|
|
1314
|
+
*/
|
|
1315
|
+
ezspClearStoredBeacons(): Promise<SLStatus>;
|
|
1316
|
+
/**
|
|
1317
|
+
* This call sets the radio channel in the stack and propagates the information
|
|
1318
|
+
* to the hardware.
|
|
1319
|
+
* @param radioChannel uint8_t The radio channel to be set.
|
|
1320
|
+
* @returns An SLStatus value indicating success or the reason for failure.
|
|
1321
|
+
*/
|
|
1322
|
+
ezspSetLogicalAndRadioChannel(radioChannel: number): Promise<SLStatus>;
|
|
1323
|
+
/**
|
|
1324
|
+
* Form a new sleepy-to-sleepy network.
|
|
1325
|
+
* If the network is using security, the device must call sli_zigbee_stack_set_initial_security_state() first.
|
|
1326
|
+
* @param parameters Specification of the new network.
|
|
1327
|
+
* @param initiator Whether this device is initiating or joining the network.
|
|
1328
|
+
* @returns An SLStatus value indicating success or a reason for failure.
|
|
1329
|
+
*/
|
|
1330
|
+
ezspSleepyToSleepyNetworkStart(parameters: EmberNetworkParameters, initiator: boolean): Promise<SLStatus>;
|
|
1331
|
+
/**
|
|
1332
|
+
* Send a Zigbee NWK Leave command to the destination.
|
|
1333
|
+
* @param destination Node ID of the device being told to leave.
|
|
1334
|
+
* @param flags Bitmask indicating additional considerations for the leave request.
|
|
1335
|
+
* @returns Status indicating success or a reason for failure. Call is invalid if destination is on network or is the local node.
|
|
1336
|
+
*/
|
|
1337
|
+
ezspSendZigbeeLeave(destination: PanId, flags: Zdo.LeaveRequestFlags): Promise<SLStatus>;
|
|
1338
|
+
/**
|
|
1339
|
+
* Indicate the state of permit joining in MAC.
|
|
1340
|
+
* @returns Whether the current network permits joining.
|
|
1341
|
+
*/
|
|
1342
|
+
ezspGetPermitJoining(): Promise<boolean>;
|
|
1343
|
+
/**
|
|
1344
|
+
* Get the 8-byte extended PAN ID of this node.
|
|
1345
|
+
* @returns Extended PAN ID of this node. Valid only if it is currently on a network.
|
|
1346
|
+
*/
|
|
1347
|
+
ezspGetExtendedPanId(): Promise<ExtendedPanId>;
|
|
1348
|
+
/**
|
|
1349
|
+
* Get the current network.
|
|
1350
|
+
* @returns Return the current network index.
|
|
1351
|
+
*/
|
|
1352
|
+
ezspGetCurrentNetwork(): Promise<number>;
|
|
1353
|
+
/**
|
|
1354
|
+
* Set initial outgoing link cost for neighbor.
|
|
1355
|
+
* @param cost The new default cost. Valid values are 0, 1, 3, 5, and 7.
|
|
1356
|
+
* @returns Whether or not initial cost was successfully set.
|
|
1357
|
+
*/
|
|
1358
|
+
ezspSetInitialNeighborOutgoingCost(cost: number): Promise<SLStatus>;
|
|
1359
|
+
/**
|
|
1360
|
+
* Get initial outgoing link cost for neighbor.
|
|
1361
|
+
* @returns The default cost associated with new neighbor's outgoing links.
|
|
1362
|
+
*/
|
|
1363
|
+
ezspGetInitialNeighborOutgoingCost(): Promise<number>;
|
|
1364
|
+
/**
|
|
1365
|
+
* Indicate whether a rejoining neighbor should have its incoming frame counter reset.
|
|
1366
|
+
* @param reset
|
|
1367
|
+
*/
|
|
1368
|
+
ezspResetRejoiningNeighborsFrameCounter(reset: boolean): Promise<void>;
|
|
1369
|
+
/**
|
|
1370
|
+
* Check whether a rejoining neighbor will have its incoming frame counter reset based on the currently set policy.
|
|
1371
|
+
* @returns Whether or not a rejoining neighbor's incoming FC gets reset (true or false).
|
|
1372
|
+
*/
|
|
1373
|
+
ezspIsResetRejoiningNeighborsFrameCounterEnabled(): Promise<boolean>;
|
|
1374
|
+
/**
|
|
1375
|
+
* Deletes all binding table entries.
|
|
1376
|
+
* @returns An SLStatus value indicating success or the reason for failure.
|
|
1377
|
+
*/
|
|
1378
|
+
ezspClearBindingTable(): Promise<SLStatus>;
|
|
1379
|
+
/**
|
|
1380
|
+
* Sets an entry in the binding table.
|
|
1381
|
+
* @param index uint8_t The index of a binding table entry.
|
|
1382
|
+
* @param value EmberBindingTableEntry * The contents of the binding entry.
|
|
1383
|
+
* @returns An SLStatus value indicating success or the reason for failure.
|
|
1384
|
+
*/
|
|
1385
|
+
ezspSetBinding(index: number, value: EmberBindingTableEntry): Promise<SLStatus>;
|
|
1386
|
+
/**
|
|
1387
|
+
* Gets an entry from the binding table.
|
|
1388
|
+
* @param index uint8_t The index of a binding table entry.
|
|
1389
|
+
* @returns An SLStatus value indicating success or the reason for failure.
|
|
1390
|
+
* @returns EmberBindingTableEntry * The contents of the binding entry.
|
|
1391
|
+
*/
|
|
1392
|
+
ezspGetBinding(index: number): Promise<[SLStatus, value: EmberBindingTableEntry]>;
|
|
1393
|
+
/**
|
|
1394
|
+
* Deletes a binding table entry.
|
|
1395
|
+
* @param index uint8_t The index of a binding table entry.
|
|
1396
|
+
* @returns An SLStatus value indicating success or the reason for failure.
|
|
1397
|
+
*/
|
|
1398
|
+
ezspDeleteBinding(index: number): Promise<SLStatus>;
|
|
1399
|
+
/**
|
|
1400
|
+
* Indicates whether any messages are currently being sent using this binding
|
|
1401
|
+
* table entry. Note that this command does not indicate whether a binding is
|
|
1402
|
+
* clear. To determine whether a binding is clear, check whether the type field
|
|
1403
|
+
* of the EmberBindingTableEntry has the value EMBER_UNUSED_BINDING.
|
|
1404
|
+
* @param index uint8_t The index of a binding table entry.
|
|
1405
|
+
* @returns True if the binding table entry is active, false otherwise.
|
|
1406
|
+
*/
|
|
1407
|
+
ezspBindingIsActive(index: number): Promise<boolean>;
|
|
1408
|
+
/**
|
|
1409
|
+
* Returns the node ID for the binding's destination, if the ID is known. If a
|
|
1410
|
+
* message is sent using the binding and the destination's ID is not known, the
|
|
1411
|
+
* stack will discover the ID by broadcasting a ZDO address request. The
|
|
1412
|
+
* application can avoid the need for this discovery by using
|
|
1413
|
+
* setBindingRemoteNodeId when it knows the correct ID via some other means. The
|
|
1414
|
+
* destination's node ID is forgotten when the binding is changed, when the
|
|
1415
|
+
* local node reboots or, much more rarely, when the destination node changes
|
|
1416
|
+
* its ID in response to an ID conflict.
|
|
1417
|
+
* @param index uint8_t The index of a binding table entry.
|
|
1418
|
+
* @returns The short ID of the destination node or EMBER_NULL_NODE_ID if no destination is known.
|
|
1419
|
+
*/
|
|
1420
|
+
ezspGetBindingRemoteNodeId(index: number): Promise<NodeId>;
|
|
1421
|
+
/**
|
|
1422
|
+
* Set the node ID for the binding's destination. See getBindingRemoteNodeId for
|
|
1423
|
+
* a description.
|
|
1424
|
+
* @param index uint8_t The index of a binding table entry.
|
|
1425
|
+
* @param The short ID of the destination node.
|
|
1426
|
+
*/
|
|
1427
|
+
ezspSetBindingRemoteNodeId(index: number, nodeId: NodeId): Promise<void>;
|
|
1428
|
+
/**
|
|
1429
|
+
* Callback
|
|
1430
|
+
* The NCP used the external binding modification policy to decide how to handle
|
|
1431
|
+
* a remote set binding request. The Host cannot change the current decision,
|
|
1432
|
+
* but it can change the policy for future decisions using the setPolicy
|
|
1433
|
+
* command.
|
|
1434
|
+
* @param entry EmberBindingTableEntry * The requested binding.
|
|
1435
|
+
* @param index uint8_t The index at which the binding was added.
|
|
1436
|
+
* @param policyDecision SLStatus.OK if the binding was added to the table and any other status if not.
|
|
1437
|
+
*/
|
|
1438
|
+
ezspRemoteSetBindingHandler(entry: EmberBindingTableEntry, index: number, policyDecision: SLStatus): void;
|
|
1439
|
+
/**
|
|
1440
|
+
* Callback
|
|
1441
|
+
* The NCP used the external binding modification policy to decide how to handle
|
|
1442
|
+
* a remote delete binding request. The Host cannot change the current decision,
|
|
1443
|
+
* but it can change the policy for future decisions using the setPolicy
|
|
1444
|
+
* command.
|
|
1445
|
+
* @param index uint8_t The index of the binding whose deletion was requested.
|
|
1446
|
+
* @param policyDecision SLStatus.OK if the binding was removed from the table and any other status if not.
|
|
1447
|
+
*/
|
|
1448
|
+
ezspRemoteDeleteBindingHandler(index: number, policyDecision: SLStatus): void;
|
|
1449
|
+
/**
|
|
1450
|
+
* Returns the maximum size of the payload. The size depends on the security level in use.
|
|
1451
|
+
* @returns uint8_t The maximum APS payload length.
|
|
1452
|
+
*/
|
|
1453
|
+
ezspMaximumPayloadLength(): Promise<number>;
|
|
1454
|
+
/**
|
|
1455
|
+
* Sends a unicast message as per the Zigbee specification.
|
|
1456
|
+
* The message will arrive at its destination only if there is a known route to the destination node.
|
|
1457
|
+
* Setting the ENABLE_ROUTE_DISCOVERY option will cause a route to be discovered if none is known.
|
|
1458
|
+
* Setting the FORCE_ROUTE_DISCOVERY option will force route discovery.
|
|
1459
|
+
* Routes to end-device children of the local node are always known.
|
|
1460
|
+
* Setting the APS_RETRY option will cause the message to be retransmitted until either a matching acknowledgement is received
|
|
1461
|
+
* or three transmissions have been made.
|
|
1462
|
+
* Note: Using the FORCE_ROUTE_DISCOVERY option will cause the first transmission to be consumed by a route request as part of discovery,
|
|
1463
|
+
* so the application payload of this packet will not reach its destination on the first attempt. If you want the packet to reach its destination,
|
|
1464
|
+
* the APS_RETRY option must be set so that another attempt is made to transmit the message with its application payload
|
|
1465
|
+
* after the route has been constructed.
|
|
1466
|
+
* Note: When sending fragmented messages, the stack will only assign a new APS sequence number for the first fragment of the message
|
|
1467
|
+
* (i.e., SL_ZIGBEE_APS_OPTION_FRAGMENT is set and the low-order byte of the groupId field in the APS frame is zero).
|
|
1468
|
+
* For all subsequent fragments of the same message, the application must set the sequence number field in the APS frame
|
|
1469
|
+
* to the sequence number assigned by the stack to the first fragment.
|
|
1470
|
+
* @param type Specifies the outgoing message type.
|
|
1471
|
+
* Must be one of EMBER_OUTGOING_DIRECT, EMBER_OUTGOING_VIA_ADDRESS_TABLE, or EMBER_OUTGOING_VIA_BINDING.
|
|
1472
|
+
* @param indexOrDestination Depending on the type of addressing used, this is either the NodeId of the destination,
|
|
1473
|
+
* an index into the address table, or an index into the binding table.
|
|
1474
|
+
* @param apsFrame EmberApsFrame * The APS frame which is to be added to the message.
|
|
1475
|
+
* @param messageTag uint8_t (v14+: uint16_t) A value chosen by the Host.
|
|
1476
|
+
* This value is used in the ezspMessageSentHandler response to refer to this message.
|
|
1477
|
+
* @param messageContents uint8_t * Content of the message.
|
|
1478
|
+
* @returns An SLStatus value indicating success or the reason for failure.
|
|
1479
|
+
* @returns uint8_t * The sequence number that will be used when this message is transmitted.
|
|
1480
|
+
*/
|
|
1481
|
+
ezspSendUnicast(type: EmberOutgoingMessageType, indexOrDestination: NodeId, apsFrame: EmberApsFrame, messageTag: number, messageContents: Buffer): Promise<[SLStatus, apsSequence: number]>;
|
|
1482
|
+
/**
|
|
1483
|
+
* Sends a broadcast message as per the Zigbee specification.
|
|
1484
|
+
* @param alias uint16_t (unused in v13-) The aliased source from which we send the broadcast.
|
|
1485
|
+
* This must be SL_ZIGBEE_NULL_NODE_ID if we do not need an aliased source
|
|
1486
|
+
* @param destination The destination to which to send the broadcast. This must be one of the three Zigbee broadcast addresses.
|
|
1487
|
+
* @param nwkSequence uint8_t (unused in v13-) The alias nwk sequence number. This won't be used if there is no aliased source.
|
|
1488
|
+
* @param apsFrame EmberApsFrame * The APS frame for the message.
|
|
1489
|
+
* @param radius uint8_t The message will be delivered to all nodes within radius hops of the sender.
|
|
1490
|
+
* A radius of zero is converted to EMBER_MAX_HOPS.
|
|
1491
|
+
* @param messageTag uint8_t (v14+: uint16_t) A value chosen by the Host.
|
|
1492
|
+
* This value is used in the ezspMessageSentHandler response to refer to this message.
|
|
1493
|
+
* @param messageContents uint8_t * The broadcast message.
|
|
1494
|
+
* @returns An SLStatus value indicating success or the reason for failure.
|
|
1495
|
+
* @returns uint8_t * The sequence number that will be used when this message is transmitted.
|
|
1496
|
+
*/
|
|
1497
|
+
ezspSendBroadcast(alias: NodeId, destination: NodeId, nwkSequence: number, apsFrame: EmberApsFrame, radius: number, messageTag: number, messageContents: Buffer): Promise<[SLStatus, apsSequence: number]>;
|
|
1498
|
+
/**
|
|
1499
|
+
* Sends proxied broadcast message for another node in conjunction with sl_zigbee_proxy_broadcast
|
|
1500
|
+
* where a long source is also specified in the NWK frame control.
|
|
1501
|
+
* @param euiSource The long source from which to send the broadcast
|
|
1502
|
+
* @returns An SLStatus value indicating success or the reason for failure.
|
|
1503
|
+
*/
|
|
1504
|
+
ezspProxyNextBroadcastFromLong(euiSource: Eui64): Promise<SLStatus>;
|
|
1505
|
+
/**
|
|
1506
|
+
* Sends a multicast message to all endpoints that share a specific multicast ID and are within a specified number of hops of the sender.
|
|
1507
|
+
* @param apsFrame EmberApsFrame * The APS frame for the message. The multicast will be sent to the groupId in this frame.
|
|
1508
|
+
* @param hops uint8_t The message will be delivered to all nodes within this number of hops of the sender.
|
|
1509
|
+
* A value of zero is converted to EMBER_MAX_HOPS.
|
|
1510
|
+
* @param broadcastAddr uint16_t (unused in v13-) The number of hops that the message will be forwarded by devices
|
|
1511
|
+
* that are not members of the group.
|
|
1512
|
+
* A value of 7 or greater is treated as infinite.
|
|
1513
|
+
* @param alias uint16_t (unused in v13-) The alias source address. This must be SL_ZIGBEE_NULL_NODE_ID if we do not need an aliased source
|
|
1514
|
+
* @param nwkSequence uint8_t (unused in v13-) The alias sequence number. This won't be used if there is no aliased source.
|
|
1515
|
+
* @param messageTag uint8_t (v14+: uint16_t) A value chosen by the Host.
|
|
1516
|
+
* This value is used in the ezspMessageSentHandler response to refer to this message.
|
|
1517
|
+
* @param messageContents uint8_t * The multicast message.
|
|
1518
|
+
* @returns An SLStatus value. For any result other than SLStatus.OK, the message will not be sent.
|
|
1519
|
+
* - SLStatus.OK - The message has been submitted for transmission.
|
|
1520
|
+
* - SLStatus.INVALID_INDEX - The bindingTableIndex refers to a non-multicast binding.
|
|
1521
|
+
* - SLStatus.NETWORK_DOWN - The node is not part of a network.
|
|
1522
|
+
* - SLStatus.MESSAGE_TOO_LONG - The message is too large to fit in a MAC layer frame.
|
|
1523
|
+
* - SLStatus.ALLOCATION_FAILED - The free packet buffer pool is empty.
|
|
1524
|
+
* - SLStatus.BUSY - Insufficient resources available in Network or MAC layers to send message.
|
|
1525
|
+
* @returns uint8_t * The sequence number that will be used when this message is transmitted.
|
|
1526
|
+
*/
|
|
1527
|
+
ezspSendMulticast(apsFrame: EmberApsFrame, hops: number, broadcastAddr: number, alias: NodeId, nwkSequence: number, messageTag: number, messageContents: Buffer): Promise<[SLStatus, apsSequence: number]>;
|
|
1528
|
+
/**
|
|
1529
|
+
* Sends a reply to a received unicast message. The incomingMessageHandler
|
|
1530
|
+
* callback for the unicast being replied to supplies the values for all the
|
|
1531
|
+
* parameters except the reply itself.
|
|
1532
|
+
* @param sender Value supplied by incoming unicast.
|
|
1533
|
+
* @param apsFrame EmberApsFrame * Value supplied by incoming unicast.
|
|
1534
|
+
* @param uint8_t The length of the messageContents parameter in bytes.
|
|
1535
|
+
* @param uint8_t * The reply message.
|
|
1536
|
+
* @returns
|
|
1537
|
+
* - SLStatus.INVALID_STATE - The SL_ZIGBEE_EZSP_UNICAST_REPLIES_POLICY is set to SL_ZIGBEE_EZSP_HOST_WILL_NOT_SUPPLY_REPLY.
|
|
1538
|
+
* This means the NCP will automatically send an empty reply. The Host must change
|
|
1539
|
+
* the policy to SL_ZIGBEE_EZSP_HOST_WILL_SUPPLY_REPLY before it can supply the reply.
|
|
1540
|
+
* There is one exception to this rule: In the case of responses to message
|
|
1541
|
+
* fragments, the host must call sendReply when a message fragment is received.
|
|
1542
|
+
* In this case, the policy set on the NCP does not matter. The NCP expects a
|
|
1543
|
+
* sendReply call from the Host for message fragments regardless of the current
|
|
1544
|
+
* policy settings.
|
|
1545
|
+
* - SLStatus.ALLOCATION_FAILED - Not enough memory was available to send the reply.
|
|
1546
|
+
* - SLStatus.BUSY - Either no route or insufficient resources available.
|
|
1547
|
+
* - SLStatus.OK - The reply was successfully queued for transmission.
|
|
1548
|
+
*/
|
|
1549
|
+
ezspSendReply(sender: NodeId, apsFrame: EmberApsFrame, messageContents: Buffer): Promise<SLStatus>;
|
|
1550
|
+
/**
|
|
1551
|
+
* Callback
|
|
1552
|
+
* A callback indicating the stack has completed sending a message.
|
|
1553
|
+
* @param status
|
|
1554
|
+
* - SL_STATUS_OK if an ACK was received from the destination
|
|
1555
|
+
* - SL_STATUS_ZIGBEE_DELIVERY_FAILED if no ACK was received.
|
|
1556
|
+
* @param type The type of message sent.
|
|
1557
|
+
* @param indexOrDestination uint16_t The destination to which the message was sent, for direct unicasts,
|
|
1558
|
+
* or the address table or binding index for other unicasts. The value is unspecified for multicasts and broadcasts.
|
|
1559
|
+
* @param apsFrame EmberApsFrame * The APS frame for the message.
|
|
1560
|
+
* @param messageTag uint8_t The value supplied by the Host in the ezspSendUnicast, ezspSendBroadcast or ezspSendMulticast command.
|
|
1561
|
+
* @param messageContents uint8_t * The unicast message supplied by the Host. The message contents are only included here if the decision
|
|
1562
|
+
* for the messageContentsInCallback policy is messageTagAndContentsInCallback.
|
|
1563
|
+
*/
|
|
1564
|
+
ezspMessageSentHandler(status: SLStatus, type: EmberOutgoingMessageType, indexOrDestination: number, apsFrame: EmberApsFrame, messageTag: number, messageContents?: Buffer): void;
|
|
1565
|
+
/**
|
|
1566
|
+
* Sends a route request packet that creates routes from every node in the
|
|
1567
|
+
* network back to this node. This function should be called by an application
|
|
1568
|
+
* that wishes to communicate with many nodes, for example, a gateway, central
|
|
1569
|
+
* monitor, or controller. A device using this function was referred to as an
|
|
1570
|
+
* 'aggregator' in EmberZNet 2.x and earlier, and is referred to as a
|
|
1571
|
+
* 'concentrator' in the Zigbee specification and EmberZNet 3. This function
|
|
1572
|
+
* enables large scale networks, because the other devices do not have to
|
|
1573
|
+
* individually perform bandwidth-intensive route discoveries. Instead, when a
|
|
1574
|
+
* remote node sends an APS unicast to a concentrator, its network layer
|
|
1575
|
+
* automatically delivers a special route record packet first, which lists the
|
|
1576
|
+
* network ids of all the intermediate relays. The concentrator can then use
|
|
1577
|
+
* source routing to send outbound APS unicasts. (A source routed message is one
|
|
1578
|
+
* in which the entire route is listed in the network layer header.) This allows
|
|
1579
|
+
* the concentrator to communicate with thousands of devices without requiring
|
|
1580
|
+
* large route tables on neighboring nodes. This function is only available in
|
|
1581
|
+
* Zigbee Pro (stack profile 2), and cannot be called on end devices. Any router
|
|
1582
|
+
* can be a concentrator (not just the coordinator), and there can be multiple
|
|
1583
|
+
* concentrators on a network. Note that a concentrator does not automatically
|
|
1584
|
+
* obtain routes to all network nodes after calling this function. Remote
|
|
1585
|
+
* applications must first initiate an inbound APS unicast. Many-to-one routes
|
|
1586
|
+
* are not repaired automatically. Instead, the concentrator application must
|
|
1587
|
+
* call this function to rediscover the routes as necessary, for example, upon
|
|
1588
|
+
* failure of a retried APS message. The reason for this is that there is no
|
|
1589
|
+
* scalable one-size-fits-all route repair strategy. A common and recommended
|
|
1590
|
+
* strategy is for the concentrator application to refresh the routes by calling
|
|
1591
|
+
* this function periodically.
|
|
1592
|
+
* @param concentratorType uint16_t Must be either EMBER_HIGH_RAM_CONCENTRATOR or EMBER_LOW_RAM_CONCENTRATOR.
|
|
1593
|
+
* The former is used when the caller has enough memory to store source routes for the whole network.
|
|
1594
|
+
* In that case, remote nodes stop sending route records once the concentrator has successfully received one.
|
|
1595
|
+
* The latter is used when the concentrator has insufficient RAM to store all outbound source routes.
|
|
1596
|
+
* In that case, route records are sent to the concentrator prior to every inbound APS unicast.
|
|
1597
|
+
* @param radius uint8_t The maximum number of hops the route request will be relayed. A radius of zero is converted to EMBER_MAX_HOPS
|
|
1598
|
+
* @returns
|
|
1599
|
+
* - SLStatus.OK if the route request was successfully submitted to the transmit queue,
|
|
1600
|
+
* - SLStatus.FAIL otherwise.
|
|
1601
|
+
*/
|
|
1602
|
+
ezspSendManyToOneRouteRequest(concentratorType: number, radius: number): Promise<SLStatus>;
|
|
1603
|
+
/**
|
|
1604
|
+
* Periodically request any pending data from our parent. Setting interval to 0
|
|
1605
|
+
* or units to EMBER_EVENT_INACTIVE will generate a single poll.
|
|
1606
|
+
* @param interval uint16_t The time between polls. Note that the timer clock is free running and is not synchronized with this command.
|
|
1607
|
+
* This means that the time will be between interval and (interval - 1). The maximum interval is 32767.
|
|
1608
|
+
* @param units The units for interval.
|
|
1609
|
+
* @param failureLimit uint8_t The number of poll failures that will be tolerated before a pollCompleteHandler callback is generated.
|
|
1610
|
+
* A value of zero will result in a callback for every poll. Any status value apart from EMBER_SUCCESS
|
|
1611
|
+
* and EMBER_MAC_NO_DATA is counted as a failure.
|
|
1612
|
+
* @returns The result of sending the first poll.
|
|
1613
|
+
*/
|
|
1614
|
+
ezspPollForData(interval: number, units: EmberEventUnits, failureLimit: number): Promise<SLStatus>;
|
|
1615
|
+
/**
|
|
1616
|
+
* Callback
|
|
1617
|
+
* Indicates the result of a data poll to the parent of the local node.
|
|
1618
|
+
* @param status An SLStatus value:
|
|
1619
|
+
* - SLStatus.OK - Data was received in response to the poll.
|
|
1620
|
+
* - SLStatus.MAC_NO_DATA - No data was pending.
|
|
1621
|
+
* - SLStatus.ZIGBEE_DELIVERY_FAILED - The poll message could not be sent.
|
|
1622
|
+
* - SLStatus.MAC_NO_ACK_RECEIVED - The poll message was sent but not acknowledged by the parent.
|
|
1623
|
+
*/
|
|
1624
|
+
ezspPollCompleteHandler(status: SLStatus): void;
|
|
1625
|
+
/**
|
|
1626
|
+
* Set a flag to indicate that a message is pending for a child.
|
|
1627
|
+
* The next time that the child polls, it will be informed that it has a pending message.
|
|
1628
|
+
* The message is sent from emberPollHandler, which is called when the child requests data.
|
|
1629
|
+
* @param childId The ID of the child that just polled for data.
|
|
1630
|
+
* @returns
|
|
1631
|
+
* - SLStatus.OK - The next time that the child polls, it will be informed that it has pending data.
|
|
1632
|
+
* - SLStatus.NOT_JOINED - The child identified by childId is not our child.
|
|
1633
|
+
*/
|
|
1634
|
+
ezspSetMessageFlag(childId: NodeId): Promise<SLStatus>;
|
|
1635
|
+
/**
|
|
1636
|
+
* Clear a flag to indicate that there are no more messages for a child.
|
|
1637
|
+
* The next time the child polls, it will be informed that it does not have any pending messages.
|
|
1638
|
+
* @param childId The ID of the child that no longer has pending messages.
|
|
1639
|
+
* @returns
|
|
1640
|
+
* - SLStatus.OK - The next time that the child polls, it will be informed that it does not have any pending messages.
|
|
1641
|
+
* - SLStatus.NOT_JOINED - The child identified by childId is not our child.
|
|
1642
|
+
*/
|
|
1643
|
+
ezspClearMessageFlag(childId: NodeId): Promise<SLStatus>;
|
|
1644
|
+
/**
|
|
1645
|
+
* Callback
|
|
1646
|
+
* Indicates that the local node received a data poll from a child.
|
|
1647
|
+
* @param childId The node ID of the child that is requesting data.
|
|
1648
|
+
* @param transmitExpected True if transmit is expected, false otherwise.
|
|
1649
|
+
*/
|
|
1650
|
+
ezspPollHandler(childId: NodeId, transmitExpected: boolean): void;
|
|
1651
|
+
/**
|
|
1652
|
+
* Add a child to the child/neighbor table only on SoC, allowing direct manipulation of these tables by the application.
|
|
1653
|
+
* This can affect the network functionality, and needs to be used wisely.
|
|
1654
|
+
* If used appropriately, the application can maintain more than the maximum of children provided by the stack.
|
|
1655
|
+
* @param shortId The preferred short ID of the node.
|
|
1656
|
+
* @param longId The long ID of the node.
|
|
1657
|
+
* @param nodeType The nodetype e.g., SL_ZIGBEE_ROUTER defining, if this would be added to the child table or neighbor table.
|
|
1658
|
+
* @returns
|
|
1659
|
+
* - SLStatus.OK - This node has been successfully added.
|
|
1660
|
+
* - SLStatus.FAIL - The child was not added to the child/neighbor table.
|
|
1661
|
+
*/
|
|
1662
|
+
ezspAddChild(shortId: NodeId, longId: Eui64, nodeType: EmberNodeType): Promise<SLStatus>;
|
|
1663
|
+
/**
|
|
1664
|
+
* Remove a node from child/neighbor table only on SoC, allowing direct manipulation of these tables by the application.
|
|
1665
|
+
* This can affect the network functionality, and needs to be used wisely.
|
|
1666
|
+
* @param childEui64 The long ID of the node.
|
|
1667
|
+
* @returns
|
|
1668
|
+
* - SLStatus.OK - This node has been successfully removed.
|
|
1669
|
+
* - SLStatus.FAIL - The node was not found in either of the child or neighbor tables.
|
|
1670
|
+
*/
|
|
1671
|
+
ezspRemoveChild(childEui64: Eui64): Promise<SLStatus>;
|
|
1672
|
+
/**
|
|
1673
|
+
* Remove a neighbor from neighbor table only on SoC, allowing direct manipulation of neighbor table by the application.
|
|
1674
|
+
* This can affect the network functionality, and needs to be used wisely.
|
|
1675
|
+
* @param shortId The short ID of the neighbor.
|
|
1676
|
+
* @param longId The long ID of the neighbor.
|
|
1677
|
+
*/
|
|
1678
|
+
ezspRemoveNeighbor(shortId: NodeId, longId: Eui64): Promise<void>;
|
|
1679
|
+
/**
|
|
1680
|
+
* Callback
|
|
1681
|
+
* A callback indicating a message has been received.
|
|
1682
|
+
* @param type The type of the incoming message. One of the following: EMBER_INCOMING_UNICAST, EMBER_INCOMING_UNICAST_REPLY,
|
|
1683
|
+
* EMBER_INCOMING_MULTICAST, EMBER_INCOMING_MULTICAST_LOOPBACK, EMBER_INCOMING_BROADCAST, EMBER_INCOMING_BROADCAST_LOOPBACK
|
|
1684
|
+
* @param apsFrame EmberApsFrame * The APS frame from the incoming message.
|
|
1685
|
+
* @param packetInfo Miscellanous message information.
|
|
1686
|
+
* @param messageContents uint8_t * The incoming message.
|
|
1687
|
+
*/
|
|
1688
|
+
ezspIncomingMessageHandler(type: EmberIncomingMessageType, apsFrame: EmberApsFrame, packetInfo: EmberRxPacketInfo, messageContents: Buffer): void;
|
|
1689
|
+
/**
|
|
1690
|
+
* Sets source route discovery(MTORR) mode to on, off, reschedule
|
|
1691
|
+
* @param mode uint8_t Source route discovery mode: off:0, on:1, reschedule:2
|
|
1692
|
+
* @returns uint32_t Remaining time(ms) until next MTORR broadcast if the mode is on, MAX_INT32U_VALUE if the mode is off
|
|
1693
|
+
*/
|
|
1694
|
+
ezspSetSourceRouteDiscoveryMode(mode: EmberSourceRouteDiscoveryMode): Promise<number>;
|
|
1695
|
+
/**
|
|
1696
|
+
* Callback
|
|
1697
|
+
* A callback indicating that a many-to-one route to the concentrator with the given short and long id is available for use.
|
|
1698
|
+
* @param NodeId The short id of the concentrator.
|
|
1699
|
+
* @param longId The EUI64 of the concentrator.
|
|
1700
|
+
* @param cost uint8_t The path cost to the concentrator. The cost may decrease as additional route request packets
|
|
1701
|
+
* for this discovery arrive, but the callback is made only once.
|
|
1702
|
+
*/
|
|
1703
|
+
ezspIncomingManyToOneRouteRequestHandler(source: NodeId, longId: Eui64, cost: number): void;
|
|
1704
|
+
/**
|
|
1705
|
+
* Callback
|
|
1706
|
+
* A callback invoked when a route error message is received.
|
|
1707
|
+
* The error indicates that a problem routing to or from the target node was encountered.
|
|
1708
|
+
*
|
|
1709
|
+
* A status of ::EMBER_SOURCE_ROUTE_FAILURE indicates that a source-routed unicast sent from this node encountered a broken link.
|
|
1710
|
+
* Note that this case occurs only if this node is a concentrator using many-to-one routing for inbound messages and source-routing for
|
|
1711
|
+
* outbound messages. The node prior to the broken link generated the route error message and returned it to us along the many-to-one route.
|
|
1712
|
+
*
|
|
1713
|
+
* A status of ::EMBER_MANY_TO_ONE_ROUTE_FAILURE also occurs only if the local device is a concentrator, and indicates that a unicast sent
|
|
1714
|
+
* to the local device along a many-to-one route encountered a broken link. The node prior to the broken link generated the route error
|
|
1715
|
+
* message and forwarded it to the local device via a randomly chosen neighbor, taking advantage of the many-to-one nature of the route.
|
|
1716
|
+
*
|
|
1717
|
+
* A status of ::EMBER_MAC_INDIRECT_TIMEOUT indicates that a message sent to the target end device could not be delivered by the parent
|
|
1718
|
+
* because the indirect transaction timer expired. Upon receipt of the route error, the stack sets the extended timeout for the target node
|
|
1719
|
+
* in the address table, if present. It then calls this handler to indicate receipt of the error.
|
|
1720
|
+
*
|
|
1721
|
+
* Note that if the original unicast data message is sent using the ::EMBER_APS_OPTION_RETRY option, a new route error message is generated
|
|
1722
|
+
* for each failed retry. Therefore, it is not unusual to receive three route error messages in succession for a single failed retried APS
|
|
1723
|
+
* unicast. On the other hand, it is also not guaranteed that any route error messages will be delivered successfully at all.
|
|
1724
|
+
* The only sure way to detect a route failure is to use retried APS messages and to check the status of the ::emberMessageSentHandler().
|
|
1725
|
+
*
|
|
1726
|
+
* @param status ::EMBER_SOURCE_ROUTE_FAILURE, ::EMBER_MANY_TO_ONE_ROUTE_FAILURE, ::EMBER_MAC_INDIRECT_TIMEOUT
|
|
1727
|
+
* @param target The short id of the remote node.
|
|
1728
|
+
*/
|
|
1729
|
+
ezspIncomingRouteErrorHandler(status: SLStatus, target: NodeId): void;
|
|
1730
|
+
/**
|
|
1731
|
+
* Callback
|
|
1732
|
+
* A callback invoked when a network status/route error message is received.
|
|
1733
|
+
* The error indicates that there was a problem sending/receiving messages from the target node.
|
|
1734
|
+
*
|
|
1735
|
+
* Note: Network analyzer may flag this message as "route error" which is the old name for the "network status" command.
|
|
1736
|
+
*
|
|
1737
|
+
* This handler is a superset of ezspIncomingRouteErrorHandler. The old API was only invoking the handler for a couple of the possible
|
|
1738
|
+
* error codes and these were being translated into EmberStatus.
|
|
1739
|
+
*
|
|
1740
|
+
* @param errorCode uint8_t One byte over-the-air error code from network status message
|
|
1741
|
+
* @param target The short ID of the remote node
|
|
1742
|
+
*/
|
|
1743
|
+
ezspIncomingNetworkStatusHandler(errorCode: EmberStackError, target: NodeId): void;
|
|
1744
|
+
/**
|
|
1745
|
+
* Callback
|
|
1746
|
+
* Reports the arrival of a route record command frame.
|
|
1747
|
+
* @param NodeId The source of the route record.
|
|
1748
|
+
* @param EUI64 The EUI64 of the source.
|
|
1749
|
+
* @param lastHopLqi uint8_t The link quality from the node that last relayed the route record.
|
|
1750
|
+
* @param lastHopRssi int8_t The energy level (in units of dBm) observed during the reception.
|
|
1751
|
+
* @param uint8_t The number of relays in relayList.
|
|
1752
|
+
* @param relayList uint8_t * The route record. Each relay in the list is an uint16_t node ID.
|
|
1753
|
+
* The list is passed as uint8_t * to avoid alignment problems.
|
|
1754
|
+
*/
|
|
1755
|
+
ezspIncomingRouteRecordHandler(source: NodeId, sourceEui: Eui64, lastHopLqi: number, lastHopRssi: number, relayCount: number, relayList: number[]): void;
|
|
1756
|
+
/**
|
|
1757
|
+
* Send the network key to a destination.
|
|
1758
|
+
* @param targetShort The destination node of the key.
|
|
1759
|
+
* @param targetLong The long address of the destination node.
|
|
1760
|
+
* @param parentShortId The parent node of the destination node.
|
|
1761
|
+
* @returns SLStatus.OK if send was successful
|
|
1762
|
+
*/
|
|
1763
|
+
ezspUnicastCurrentNetworkKey(targetShort: NodeId, targetLong: Eui64, parentShortId: NodeId): Promise<SLStatus>;
|
|
1764
|
+
/**
|
|
1765
|
+
* Indicates whether any messages are currently being sent using this address
|
|
1766
|
+
* table entry. Note that this function does not indicate whether the address
|
|
1767
|
+
* table entry is unused. To determine whether an address table entry is unused,
|
|
1768
|
+
* check the remote node ID. The remote node ID will have the value
|
|
1769
|
+
* EMBER_TABLE_ENTRY_UNUSED_NODE_ID when the address table entry is not in use.
|
|
1770
|
+
* @param uint8_tThe index of an address table entry.
|
|
1771
|
+
* @returns True if the address table entry is active, false otherwise.
|
|
1772
|
+
*/
|
|
1773
|
+
ezspAddressTableEntryIsActive(addressTableIndex: number): Promise<boolean>;
|
|
1774
|
+
/**
|
|
1775
|
+
* Sets the EUI64 and short ID of an address table entry.
|
|
1776
|
+
* Usually the application will not need to set the short ID in the address table.
|
|
1777
|
+
* Once the remote EUI64 is set the stack is capable of figuring out the short ID on its own.
|
|
1778
|
+
* However, in cases where the application does set the short ID, the application must set the remote EUI64 prior to setting the short ID.
|
|
1779
|
+
* This function will also check other address table entries, the child table and the neighbor table to see
|
|
1780
|
+
* if the node ID for the given EUI64 is already known.
|
|
1781
|
+
* If known then this function will set node ID. If not known it will set the node ID to SL_ZIGBEE_UNKNOWN_NODE_ID.
|
|
1782
|
+
* @param addressTableIndex
|
|
1783
|
+
* @param eui64
|
|
1784
|
+
* @param id
|
|
1785
|
+
* @returns
|
|
1786
|
+
* - SLStatus.OK if the information was successfully set,
|
|
1787
|
+
* - SLStatus.ZIGBEE_ADDRESS_TABLE_ENTRY_IS_ACTIVE otherwise.
|
|
1788
|
+
*/
|
|
1789
|
+
ezspSetAddressTableInfo(addressTableIndex: number, eui64: Eui64, id: NodeId): Promise<SLStatus>;
|
|
1790
|
+
/**
|
|
1791
|
+
* Gets the EUI64 and short ID of an address table entry.
|
|
1792
|
+
* @param addressTableIndex
|
|
1793
|
+
* @returns An SLStatus value indicating success or the reason for failure.
|
|
1794
|
+
* @returns One of the following:
|
|
1795
|
+
* - The short ID corresponding to the remote node whose EUI64 is stored in the address table at the given index.
|
|
1796
|
+
* - SL_ZIGBEE_UNKNOWN_NODE_ID:
|
|
1797
|
+
* Indicates that the EUI64 stored in the address table at the given index is valid but the short ID is currently unknown.
|
|
1798
|
+
* - SL_ZIGBEE_DISCOVERY_ACTIVE_NODE_ID:
|
|
1799
|
+
* Indicates that the EUI64 stored in the address table at the given location is valid and network address discovery is underway.
|
|
1800
|
+
* - SL_ZIGBEE_TABLE_ENTRY_UNUSED_NODE_ID:
|
|
1801
|
+
* Indicates that the entry stored in the address table at the given index is not in use.
|
|
1802
|
+
* @returns The EUI64 of the address table entry is copied to this location.
|
|
1803
|
+
*/
|
|
1804
|
+
ezspGetAddressTableInfo(addressTableIndex: number): Promise<[SLStatus, nodeId: NodeId, eui64: Eui64]>;
|
|
1805
|
+
/**
|
|
1806
|
+
* Tells the stack whether or not the normal interval between retransmissions of a retried unicast message should
|
|
1807
|
+
* be increased by EMBER_INDIRECT_TRANSMISSION_TIMEOUT.
|
|
1808
|
+
* The interval needs to be increased when sending to a sleepy node so that the message is not retransmitted until the destination
|
|
1809
|
+
* has had time to wake up and poll its parent.
|
|
1810
|
+
* The stack will automatically extend the timeout:
|
|
1811
|
+
* - For our own sleepy children.
|
|
1812
|
+
* - When an address response is received from a parent on behalf of its child.
|
|
1813
|
+
* - When an indirect transaction expiry route error is received.
|
|
1814
|
+
* - When an end device announcement is received from a sleepy node.
|
|
1815
|
+
* @param remoteEui64 The address of the node for which the timeout is to be set.
|
|
1816
|
+
* @param extendedTimeout true if the retry interval should be increased by EMBER_INDIRECT_TRANSMISSION_TIMEOUT.
|
|
1817
|
+
* false if the normal retry interval should be used.
|
|
1818
|
+
* @returns An SLStatus value indicating success or the reason for failure. Always `OK` in v13-.
|
|
1819
|
+
*/
|
|
1820
|
+
ezspSetExtendedTimeout(remoteEui64: Eui64, extendedTimeout: boolean): Promise<SLStatus>;
|
|
1821
|
+
/**
|
|
1822
|
+
* Indicates whether or not the stack will extend the normal interval between
|
|
1823
|
+
* retransmissions of a retried unicast message by
|
|
1824
|
+
* EMBER_INDIRECT_TRANSMISSION_TIMEOUT.
|
|
1825
|
+
* @param remoteEui64 The address of the node for which the timeout is to be returned.
|
|
1826
|
+
* @returns
|
|
1827
|
+
* - SLStatus.OK if the retry interval will be increased by SL_ZIGBEE_INDIRECT_TRANSMISSION_TIMEOUT
|
|
1828
|
+
* - SLStatus.FAIL if the normal retry interval will be used.
|
|
1829
|
+
*/
|
|
1830
|
+
ezspGetExtendedTimeout(remoteEui64: Eui64): Promise<SLStatus>;
|
|
1831
|
+
/**
|
|
1832
|
+
* Replaces the EUI64, short ID and extended timeout setting of an address table
|
|
1833
|
+
* entry. The previous EUI64, short ID and extended timeout setting are
|
|
1834
|
+
* returned.
|
|
1835
|
+
* @param addressTableIndex uint8_t The index of the address table entry that will be modified.
|
|
1836
|
+
* @param newEui64 The EUI64 to be written to the address table entry.
|
|
1837
|
+
* @param newId One of the following: The short ID corresponding to the new EUI64.
|
|
1838
|
+
* SL_ZIGBEE_UNKNOWN_NODE_ID if the new EUI64 is valid but the short ID is unknown and should be discovered by the stack.
|
|
1839
|
+
* SL_ZIGBEE_TABLE_ENTRY_UNUSED_NODE_ID if the address table entry is now unused.
|
|
1840
|
+
* @param newExtendedTimeout true if the retry interval should be increased by SL_ZIGBEE_INDIRECT_TRANSMISSION_TIMEOUT.
|
|
1841
|
+
* false if the normal retry interval should be used.
|
|
1842
|
+
* @returns
|
|
1843
|
+
* - SLStatus.OK if the EUI64, short ID and extended timeout setting were successfully modified,
|
|
1844
|
+
* - SLStatus.ZIGBEE_ADDRESS_TABLE_ENTRY_IS_ACTIVE otherwise.
|
|
1845
|
+
* @returns oldEui64 The EUI64 of the address table entry before it was modified.
|
|
1846
|
+
* @returns oldId NodeId * One of the following: The short ID corresponding to the EUI64 before it was modified.
|
|
1847
|
+
* SL_ZIGBEE_UNKNOWN_NODE_ID if the short ID was unknown. SL_ZIGBEE_DISCOVERY_ACTIVE_NODE_ID if discovery of the short ID was underway.
|
|
1848
|
+
* SL_ZIGBEE_TABLE_ENTRY_UNUSED_NODE_ID if the address table entry was unused.
|
|
1849
|
+
* @returns oldExtendedTimeouttrue bool * if the retry interval was being increased by SL_ZIGBEE_INDIRECT_TRANSMISSION_TIMEOUT.
|
|
1850
|
+
* false if the normal retry interval was being used.
|
|
1851
|
+
*/
|
|
1852
|
+
ezspReplaceAddressTableEntry(addressTableIndex: number, newEui64: Eui64, newId: NodeId, newExtendedTimeout: boolean): Promise<[SLStatus, oldEui64: Eui64, oldId: NodeId, oldExtendedTimeout: boolean]>;
|
|
1853
|
+
/**
|
|
1854
|
+
* Returns the node ID that corresponds to the specified EUI64. The node ID is
|
|
1855
|
+
* found by searching through all stack tables for the specified EUI64.
|
|
1856
|
+
* @param eui64 The EUI64 of the node to look up.
|
|
1857
|
+
* @returns The short ID of the node or SL_ZIGBEE_NULL_NODE_ID if the short ID is not known.
|
|
1858
|
+
*/
|
|
1859
|
+
ezspLookupNodeIdByEui64(eui64: Eui64): Promise<NodeId>;
|
|
1860
|
+
/**
|
|
1861
|
+
* Returns the EUI64 that corresponds to the specified node ID. The EUI64 is
|
|
1862
|
+
* found by searching through all stack tables for the specified node ID.
|
|
1863
|
+
* @param nodeId The short ID of the node to look up.
|
|
1864
|
+
* @returns
|
|
1865
|
+
* - SLStatus.OK if the EUI64 was found,
|
|
1866
|
+
* - SLStatus.FAIL if the EUI64 is not known.
|
|
1867
|
+
* @returns eui64 The EUI64 of the node.
|
|
1868
|
+
*/
|
|
1869
|
+
ezspLookupEui64ByNodeId(nodeId: NodeId): Promise<[SLStatus, eui64: Eui64]>;
|
|
1870
|
+
/**
|
|
1871
|
+
* Gets an entry from the multicast table.
|
|
1872
|
+
* @param uint8_t The index of a multicast table entry.
|
|
1873
|
+
* @returns An SLStatus value indicating success or the reason for failure.
|
|
1874
|
+
* @returns EmberMulticastTableEntry * The contents of the multicast entry.
|
|
1875
|
+
*/
|
|
1876
|
+
ezspGetMulticastTableEntry(index: number): Promise<[SLStatus, value: EmberMulticastTableEntry]>;
|
|
1877
|
+
/**
|
|
1878
|
+
* Sets an entry in the multicast table.
|
|
1879
|
+
* @param index uint8_t The index of a multicast table entry
|
|
1880
|
+
* @param EmberMulticastTableEntry * The contents of the multicast entry.
|
|
1881
|
+
* @returns An SLStatus value indicating success or the reason for failure.
|
|
1882
|
+
*/
|
|
1883
|
+
ezspSetMulticastTableEntry(index: number, value: EmberMulticastTableEntry): Promise<SLStatus>;
|
|
1884
|
+
/**
|
|
1885
|
+
* Callback
|
|
1886
|
+
* A callback invoked by the EmberZNet stack when an id conflict is discovered,
|
|
1887
|
+
* that is, two different nodes in the network were found to be using the same
|
|
1888
|
+
* short id. The stack automatically removes the conflicting short id from its
|
|
1889
|
+
* internal tables (address, binding, route, neighbor, and child tables). The
|
|
1890
|
+
* application should discontinue any other use of the id.
|
|
1891
|
+
* @param id The short id for which a conflict was detected
|
|
1892
|
+
*/
|
|
1893
|
+
ezspIdConflictHandler(id: NodeId): void;
|
|
1894
|
+
/**
|
|
1895
|
+
* Write the current node Id, PAN ID, or Node type to the tokens
|
|
1896
|
+
* @param erase Erase the node type or not
|
|
1897
|
+
* @returns An SLStatus value indicating success or the reason for failure.
|
|
1898
|
+
*/
|
|
1899
|
+
ezspWriteNodeData(erase: boolean): Promise<SLStatus>;
|
|
1900
|
+
/**
|
|
1901
|
+
* Transmits the given message without modification. The MAC header is assumed
|
|
1902
|
+
* to be configured in the message at the time this function is called.
|
|
1903
|
+
* @param messageContents uint8_t * The raw message.
|
|
1904
|
+
* @param priority uint8_t transmit priority.
|
|
1905
|
+
* @param useCca Should we enable CCA or not.
|
|
1906
|
+
* @returns An SLStatus value indicating success or the reason for failure.
|
|
1907
|
+
*/
|
|
1908
|
+
ezspSendRawMessage(messageContents: Buffer, priority: EmberTransmitPriority, useCca: boolean): Promise<SLStatus>;
|
|
1909
|
+
/**
|
|
1910
|
+
* Callback
|
|
1911
|
+
* A callback invoked by the EmberZNet stack when a MAC passthrough message is
|
|
1912
|
+
* received.
|
|
1913
|
+
* @param messageType The type of MAC passthrough message received.
|
|
1914
|
+
* @param packetInfo Information about the incoming packet.
|
|
1915
|
+
* @param messageContents uint8_t * The raw message that was received.
|
|
1916
|
+
*/
|
|
1917
|
+
ezspMacPassthroughMessageHandler(messageType: EmberMacPassthroughType, packetInfo: EmberRxPacketInfo, messageContents: Buffer): void;
|
|
1918
|
+
/**
|
|
1919
|
+
* Callback
|
|
1920
|
+
* A callback invoked by the EmberZNet stack when a raw MAC message that has
|
|
1921
|
+
* matched one of the application's configured MAC filters.
|
|
1922
|
+
* @param filterValueMatch uint16_t The value of the filter that was matched.
|
|
1923
|
+
* - < v18: uint8_t The index of the filter that was matched.
|
|
1924
|
+
* @param legacyPassthroughType The type of MAC passthrough message received.
|
|
1925
|
+
* @param packetInfo Information about the incoming packet.
|
|
1926
|
+
* @param messageContents uint8_t * The raw message that was received.
|
|
1927
|
+
*/
|
|
1928
|
+
ezspMacFilterMatchMessageHandler(filterValueMatch: number, legacyPassthroughType: EmberMacPassthroughType, packetInfo: EmberRxPacketInfo, messageContents: Buffer): void;
|
|
1929
|
+
/**
|
|
1930
|
+
* Callback
|
|
1931
|
+
* A callback invoked by the EmberZNet stack when the MAC has finished
|
|
1932
|
+
* transmitting a raw message.
|
|
1933
|
+
* @param messageContents (v14+)
|
|
1934
|
+
* @param status
|
|
1935
|
+
* - SLStatus.OK if the transmission was successful,
|
|
1936
|
+
* - SLStatus.ZIGBEE_DELIVERY_FAILED if not
|
|
1937
|
+
*/
|
|
1938
|
+
ezspRawTransmitCompleteHandler(messageContents: Buffer, status: SLStatus): void;
|
|
1939
|
+
/**
|
|
1940
|
+
* This function is useful to sleepy end devices.
|
|
1941
|
+
* This function will set the retry interval (in milliseconds) for mac data poll.
|
|
1942
|
+
* This interval is the time in milliseconds the device waits before retrying a data poll when a MAC level
|
|
1943
|
+
* data poll fails for any reason.
|
|
1944
|
+
* @param waitBeforeRetryIntervalMs uint32_t Time in milliseconds the device waits before retrying
|
|
1945
|
+
* a data poll when a MAC level data poll fails for any reason.
|
|
1946
|
+
*/
|
|
1947
|
+
ezspSetMacPollFailureWaitTime(waitBeforeRetryIntervalMs: number): Promise<void>;
|
|
1948
|
+
/**
|
|
1949
|
+
* Returns the maximum number of no-ack retries that will be attempted
|
|
1950
|
+
* @returns Max MAC retries
|
|
1951
|
+
*/
|
|
1952
|
+
ezspGetMaxMacRetries(): Promise<number>;
|
|
1953
|
+
/**
|
|
1954
|
+
* Sets the priority masks and related variables for choosing the best beacon.
|
|
1955
|
+
* @param param EmberBeaconClassificationParams * The beacon prioritization related variable
|
|
1956
|
+
* @returns The attempt to set the parameters returns SLStatus.OK
|
|
1957
|
+
*/
|
|
1958
|
+
ezspSetBeaconClassificationParams(param: EmberBeaconClassificationParams): Promise<SLStatus>;
|
|
1959
|
+
/**
|
|
1960
|
+
* Gets the priority masks and related variables for choosing the best beacon.
|
|
1961
|
+
* @returns The attempt to get the parameters returns SLStatus.OK
|
|
1962
|
+
* @returns EmberBeaconClassificationParams * Gets the beacon prioritization related variable
|
|
1963
|
+
*/
|
|
1964
|
+
ezspGetBeaconClassificationParams(): Promise<[SLStatus, param: EmberBeaconClassificationParams]>;
|
|
1965
|
+
/**
|
|
1966
|
+
* Indicate whether there are pending messages in the APS retry queue.
|
|
1967
|
+
* @returns True if there is a pending message for this network in the APS retry queue, false if not.
|
|
1968
|
+
*/
|
|
1969
|
+
ezspPendingAckedMessages(): Promise<boolean>;
|
|
1970
|
+
/**
|
|
1971
|
+
* Reschedule sending link status message, with first one being sent immediately.
|
|
1972
|
+
* @returns
|
|
1973
|
+
*/
|
|
1974
|
+
ezspRescheduleLinkStatusMsg(): Promise<SLStatus>;
|
|
1975
|
+
/**
|
|
1976
|
+
* Set the network update ID to the desired value. Must be called before joining or forming the network.
|
|
1977
|
+
* @param nwkUpdateId uint8_t Desired value of the network update ID.
|
|
1978
|
+
* @param setWhenOnNetwork Set to true in case change should also apply when on network.
|
|
1979
|
+
* @returns Status of set operation for the network update ID.
|
|
1980
|
+
*/
|
|
1981
|
+
ezspSetNwkUpdateId(nwkUpdateId: number, setWhenOnNetwork: boolean): Promise<SLStatus>;
|
|
1982
|
+
/**
|
|
1983
|
+
* Sets the security state that will be used by the device when it forms or
|
|
1984
|
+
* joins the network. This call should not be used when restoring saved network
|
|
1985
|
+
* state via networkInit as this will result in a loss of security data and will
|
|
1986
|
+
* cause communication problems when the device re-enters the network.
|
|
1987
|
+
* @param state EmberInitialSecurityState * The security configuration to be set.
|
|
1988
|
+
* @returns The success or failure code of the operation.
|
|
1989
|
+
*/
|
|
1990
|
+
ezspSetInitialSecurityState(state: EmberInitialSecurityState): Promise<SLStatus>;
|
|
1991
|
+
/**
|
|
1992
|
+
* Gets the current security state that is being used by a device that is joined
|
|
1993
|
+
* in the network.
|
|
1994
|
+
* @returns The success or failure code of the operation.
|
|
1995
|
+
* @returns EmberCurrentSecurityState * The security configuration in use by the stack.
|
|
1996
|
+
*/
|
|
1997
|
+
ezspGetCurrentSecurityState(): Promise<[SLStatus, state: EmberCurrentSecurityState]>;
|
|
1998
|
+
/**
|
|
1999
|
+
* Exports a key from security manager based on passed context.
|
|
2000
|
+
* @param context sl_zb_sec_man_context_t * Metadata to identify the requested key.
|
|
2001
|
+
* @returns sl_zb_sec_man_key_t * Data to store the exported key in.
|
|
2002
|
+
* @returns SLStatus * The success or failure code of the operation.
|
|
2003
|
+
*/
|
|
2004
|
+
ezspExportKey(context: SecManContext): Promise<[SLStatus, key: SecManKey]>;
|
|
2005
|
+
/**
|
|
2006
|
+
* Imports a key into security manager based on passed context.
|
|
2007
|
+
* @param context sl_zb_sec_man_context_t * Metadata to identify where the imported key should be stored.
|
|
2008
|
+
* @param key sl_zb_sec_man_key_t * The key to be imported.
|
|
2009
|
+
* @returns The success or failure code of the operation.
|
|
2010
|
+
*/
|
|
2011
|
+
ezspImportKey(context: SecManContext, key: SecManKey): Promise<SLStatus>;
|
|
2012
|
+
/**
|
|
2013
|
+
* Callback
|
|
2014
|
+
* A callback to inform the application that the Network Key has been updated
|
|
2015
|
+
* and the node has been switched over to use the new key. The actual key being
|
|
2016
|
+
* used is not passed up, but the sequence number is.
|
|
2017
|
+
* @param sequenceNumber uint8_t The sequence number of the new network key.
|
|
2018
|
+
*/
|
|
2019
|
+
ezspSwitchNetworkKeyHandler(sequenceNumber: number): void;
|
|
2020
|
+
/**
|
|
2021
|
+
* This function searches through the Key Table and tries to find the entry that
|
|
2022
|
+
* matches the passed search criteria.
|
|
2023
|
+
* @param address The address to search for. Alternatively, all zeros may be passed in to search for the first empty entry.
|
|
2024
|
+
* @param linkKey This indicates whether to search for an entry that contains a link key or a master key.
|
|
2025
|
+
* true means to search for an entry with a Link Key.
|
|
2026
|
+
* @returns uint8_t This indicates the index of the entry that matches the search criteria.
|
|
2027
|
+
* A value of 0xFF is returned if not matching entry is found.
|
|
2028
|
+
*/
|
|
2029
|
+
ezspFindKeyTableEntry(address: Eui64, linkKey: boolean): Promise<number>;
|
|
2030
|
+
/**
|
|
2031
|
+
* This function sends an APS TransportKey command containing the current trust
|
|
2032
|
+
* center link key. The node to which the command is sent is specified via the
|
|
2033
|
+
* short and long address arguments.
|
|
2034
|
+
* @param destinationNodeId The short address of the node to which this command will be sent
|
|
2035
|
+
* @param destinationEui64 The long address of the node to which this command will be sent
|
|
2036
|
+
* @returns An SLStatus value indicating success of failure of the operation
|
|
2037
|
+
*/
|
|
2038
|
+
ezspSendTrustCenterLinkKey(destinationNodeId: NodeId, destinationEui64: Eui64): Promise<SLStatus>;
|
|
2039
|
+
/**
|
|
2040
|
+
* This function erases the data in the key table entry at the specified index.
|
|
2041
|
+
* If the index is invalid, false is returned.
|
|
2042
|
+
* @param index uint8_t This indicates the index of entry to erase.
|
|
2043
|
+
* @returns The success or failure of the operation.
|
|
2044
|
+
*/
|
|
2045
|
+
ezspEraseKeyTableEntry(index: number): Promise<SLStatus>;
|
|
2046
|
+
/**
|
|
2047
|
+
* This function clears the key table of the current network.
|
|
2048
|
+
* @returns The success or failure of the operation.
|
|
2049
|
+
*/
|
|
2050
|
+
ezspClearKeyTable(): Promise<SLStatus>;
|
|
2051
|
+
/**
|
|
2052
|
+
* A function to request a Link Key from the Trust Center with another device on
|
|
2053
|
+
* the Network (which could be the Trust Center). A Link Key with the Trust
|
|
2054
|
+
* Center is possible but the requesting device cannot be the Trust Center. Link
|
|
2055
|
+
* Keys are optional in Zigbee Standard Security and thus the stack cannot know
|
|
2056
|
+
* whether the other device supports them. If EMBER_REQUEST_KEY_TIMEOUT is
|
|
2057
|
+
* non-zero on the Trust Center and the partner device is not the Trust Center,
|
|
2058
|
+
* both devices must request keys with their partner device within the time
|
|
2059
|
+
* period. The Trust Center only supports one outstanding key request at a time
|
|
2060
|
+
* and therefore will ignore other requests. If the timeout is zero then the
|
|
2061
|
+
* Trust Center will immediately respond and not wait for the second request.
|
|
2062
|
+
* The Trust Center will always immediately respond to requests for a Link Key
|
|
2063
|
+
* with it. Sleepy devices should poll at a higher rate until a response is
|
|
2064
|
+
* received or the request times out. The success or failure of the request is
|
|
2065
|
+
* returned via ezspZigbeeKeyEstablishmentHandler(...)
|
|
2066
|
+
* @param partner This is the IEEE address of the partner device that will share the link key.
|
|
2067
|
+
* @returns The success or failure of sending the request.
|
|
2068
|
+
* This is not the final result of the attempt. ezspZigbeeKeyEstablishmentHandler(...) will return that.
|
|
2069
|
+
*/
|
|
2070
|
+
ezspRequestLinkKey(partner: Eui64): Promise<SLStatus>;
|
|
2071
|
+
/**
|
|
2072
|
+
* Requests a new link key from the Trust Center. This function starts by
|
|
2073
|
+
* sending a Node Descriptor request to the Trust Center to verify its R21+
|
|
2074
|
+
* stack version compliance. A Request Key message will then be sent, followed
|
|
2075
|
+
* by a Verify Key Confirm message.
|
|
2076
|
+
* @param maxAttempts uint8_t The maximum number of attempts a node should make when sending the Node Descriptor,
|
|
2077
|
+
* Request Key, and Verify Key Confirm messages. The number of attempts resets for each message type sent
|
|
2078
|
+
* (e.g., if maxAttempts is 3, up to 3 Node Descriptors are sent, up to 3 Request Keys, and up to 3 Verify Key Confirm messages are sent).
|
|
2079
|
+
* @returns The success or failure of sending the request.
|
|
2080
|
+
* If the Node Descriptor is successfully transmitted, ezspZigbeeKeyEstablishmentHandler(...)
|
|
2081
|
+
* will be called at a later time with a final status result.
|
|
2082
|
+
*/
|
|
2083
|
+
ezspUpdateTcLinkKey(maxAttempts: number): Promise<SLStatus>;
|
|
2084
|
+
/**
|
|
2085
|
+
* Callback
|
|
2086
|
+
* This is a callback that indicates the success or failure of an attempt to establish a key with a partner device.
|
|
2087
|
+
* @param partner This is the IEEE address of the partner that the device successfully established a key with.
|
|
2088
|
+
* This value is all zeros on a failure.
|
|
2089
|
+
* @param status This is the status indicating what was established or why the key establishment failed.
|
|
2090
|
+
*/
|
|
2091
|
+
ezspZigbeeKeyEstablishmentHandler(partner: Eui64, status: EmberKeyStatus): void;
|
|
2092
|
+
/**
|
|
2093
|
+
* Clear all of the transient link keys from RAM.
|
|
2094
|
+
*/
|
|
2095
|
+
ezspClearTransientLinkKeys(): Promise<void>;
|
|
2096
|
+
/**
|
|
2097
|
+
* Retrieve information about the current and alternate network key, excluding their contents.
|
|
2098
|
+
* @returns Success or failure of retrieving network key info.
|
|
2099
|
+
* @returns sl_zb_sec_man_network_key_info_t * Information about current and alternate network keys.
|
|
2100
|
+
*/
|
|
2101
|
+
ezspGetNetworkKeyInfo(): Promise<[SLStatus, networkKeyInfo: SecManNetworkKeyInfo]>;
|
|
2102
|
+
/**
|
|
2103
|
+
* Retrieve metadata about an APS link key. Does not retrieve contents.
|
|
2104
|
+
* @param context sl_zb_sec_man_context_t * Context used to input information about key.
|
|
2105
|
+
* @returns Status of metadata retrieval operation.
|
|
2106
|
+
* @returns sl_zb_sec_man_aps_key_metadata_t * Metadata about the referenced key.
|
|
2107
|
+
*/
|
|
2108
|
+
ezspGetApsKeyInfo(context: SecManContext): Promise<[status: SLStatus, keyData: SecManAPSKeyMetadata]>;
|
|
2109
|
+
/**
|
|
2110
|
+
* Import an application link key into the key table.
|
|
2111
|
+
* @param index uint8_t Index where this key is to be imported to.
|
|
2112
|
+
* @param address EUI64 this key is associated with.
|
|
2113
|
+
* @param plaintextKey sl_zb_sec_man_key_t * The key data to be imported.
|
|
2114
|
+
* @returns Status of key import operation.
|
|
2115
|
+
*/
|
|
2116
|
+
ezspImportLinkKey(index: number, address: Eui64, plaintextKey: SecManKey): Promise<SLStatus>;
|
|
2117
|
+
/**
|
|
2118
|
+
* Export the link key at given index from the key table.
|
|
2119
|
+
* @param uint8_t Index of key to export.
|
|
2120
|
+
* @returns Status of key export operation.
|
|
2121
|
+
* @returns sl_zigbee_sec_man_context_t * Context referencing the exported key. Contains information like the EUI64 address it is associated with.
|
|
2122
|
+
* @returns sl_zb_sec_man_key_t * The exported key.
|
|
2123
|
+
* @returns sl_zb_sec_man_aps_key_metadata_t * Metadata about the key.
|
|
2124
|
+
*/
|
|
2125
|
+
ezspExportLinkKeyByIndex(index: number): Promise<[SLStatus, context: SecManContext, plaintextKey: SecManKey, keyData: SecManAPSKeyMetadata]>;
|
|
2126
|
+
/**
|
|
2127
|
+
* Export the link key associated with the given EUI from the key table.
|
|
2128
|
+
* @param eui EUI64 associated with the key to export.
|
|
2129
|
+
* @returns Status of key export operation.
|
|
2130
|
+
* @returns sl_zb_sec_man_key_t * The exported key.
|
|
2131
|
+
* @returns sl_zigbee_sec_man_context_t * Context referencing the exported key. Contains information like the EUI64 address it is associated with.
|
|
2132
|
+
* @returns sl_zb_sec_man_aps_key_metadata_t * Metadata about the key.
|
|
2133
|
+
*/
|
|
2134
|
+
ezspExportLinkKeyByEui(eui: Eui64): Promise<[SLStatus, context: SecManContext, plaintextKey: SecManKey, keyData: SecManAPSKeyMetadata]>;
|
|
2135
|
+
/**
|
|
2136
|
+
* Check whether a key context can be used to load a valid key.
|
|
2137
|
+
* @param context sl_zb_sec_man_context_t * Context struct to check the validity of.
|
|
2138
|
+
* @returns Validity of the checked context.
|
|
2139
|
+
*/
|
|
2140
|
+
ezspCheckKeyContext(context: SecManContext): Promise<SLStatus>;
|
|
2141
|
+
/**
|
|
2142
|
+
* Import a transient link key.
|
|
2143
|
+
* @param eui64 EUI64 associated with this transient key.
|
|
2144
|
+
* @param plaintextKey sl_zb_sec_man_key_t * The key to import.
|
|
2145
|
+
* @param flags sl_zigbee_sec_man_flags_t (unused in v14+) Flags associated with this transient key.
|
|
2146
|
+
* @returns Status of key import operation.
|
|
2147
|
+
*/
|
|
2148
|
+
ezspImportTransientKey(eui64: Eui64, plaintextKey: SecManKey, flags?: SecManFlag): Promise<SLStatus>;
|
|
2149
|
+
/**
|
|
2150
|
+
* Export a transient link key from a given table index.
|
|
2151
|
+
* @param uint8_t Index to export from.
|
|
2152
|
+
* @returns Status of key export operation.
|
|
2153
|
+
* @returns sl_zb_sec_man_context_t * Context struct for export operation.
|
|
2154
|
+
* @returns sl_zb_sec_man_key_t * The exported key.
|
|
2155
|
+
* @returns sl_zb_sec_man_aps_key_metadata_t * Metadata about the key.
|
|
2156
|
+
*/
|
|
2157
|
+
ezspExportTransientKeyByIndex(index: number): Promise<[SLStatus, context: SecManContext, plaintextKey: SecManKey, key_data: SecManAPSKeyMetadata]>;
|
|
2158
|
+
/**
|
|
2159
|
+
* Export a transient link key associated with a given EUI64
|
|
2160
|
+
* @param eui Index to export from.
|
|
2161
|
+
* @returns Status of key export operation.
|
|
2162
|
+
* @returns sl_zb_sec_man_context_t * Context struct for export operation.
|
|
2163
|
+
* @returns sl_zb_sec_man_key_t * The exported key.
|
|
2164
|
+
* @returns sl_zb_sec_man_aps_key_metadata_t * Metadata about the key.
|
|
2165
|
+
*/
|
|
2166
|
+
ezspExportTransientKeyByEui(eui: Eui64): Promise<[SLStatus, context: SecManContext, plaintextKey: SecManKey, key_data: SecManAPSKeyMetadata]>;
|
|
2167
|
+
/**
|
|
2168
|
+
* Set the incoming TC link key frame counter to desired value.
|
|
2169
|
+
* @param frameCounter Value to set the frame counter to.
|
|
2170
|
+
*/
|
|
2171
|
+
ezspSetIncomingTcLinkKeyFrameCounter(frameCounter: number): Promise<void>;
|
|
2172
|
+
/**
|
|
2173
|
+
* Encrypt/decrypt a message in-place using APS.
|
|
2174
|
+
* @param encrypt Encrypt (true) or decrypt (false) the message.
|
|
2175
|
+
* @param lengthCombinedArg uint8_t Length of the array containing message, needs to be long enough to include the auxiliary header and MIC.
|
|
2176
|
+
* @param message uint8_t * The message to be en/de-crypted.
|
|
2177
|
+
* @param apsHeaderEndIndex uint8_t Index just past the APS frame.
|
|
2178
|
+
* @param remoteEui64 IEEE address of the device this message is associated with.
|
|
2179
|
+
* @returns Status of the encryption/decryption call.
|
|
2180
|
+
*/
|
|
2181
|
+
ezspApsCryptMessage(encrypt: boolean, lengthCombinedArg: number, message: Buffer, apsHeaderEndIndex: number, remoteEui64: Eui64): Promise<[SLStatus, cryptedMessage: Buffer]>;
|
|
2182
|
+
/**
|
|
2183
|
+
* Callback
|
|
2184
|
+
* The NCP used the trust center behavior policy to decide whether to allow a
|
|
2185
|
+
* new node to join the network. The Host cannot change the current decision,
|
|
2186
|
+
* but it can change the policy for future decisions using the setPolicy
|
|
2187
|
+
* command.
|
|
2188
|
+
* @param newNodeId The Node Id of the node whose status changed
|
|
2189
|
+
* @param newNodeEui64 The EUI64 of the node whose status changed.
|
|
2190
|
+
* @param status The status of the node: Secure Join/Rejoin, Unsecure Join/Rejoin, Device left.
|
|
2191
|
+
* @param policyDecision An EmberJoinDecision reflecting the decision made.
|
|
2192
|
+
* @param parentOfNewNodeId The parent of the node whose status has changed.
|
|
2193
|
+
*/
|
|
2194
|
+
ezspTrustCenterJoinHandler(newNodeId: NodeId, newNodeEui64: Eui64, status: EmberDeviceUpdate, policyDecision: EmberJoinDecision, parentOfNewNodeId: NodeId): void;
|
|
2195
|
+
/**
|
|
2196
|
+
* This function broadcasts a new encryption key, but does not tell the nodes in
|
|
2197
|
+
* the network to start using it. To tell nodes to switch to the new key, use
|
|
2198
|
+
* ezspBroadcastNetworkKeySwitch(). This is only valid for the Trust
|
|
2199
|
+
* Center/Coordinator. It is up to the application to determine how quickly to
|
|
2200
|
+
* send the Switch Key after sending the alternate encryption key.
|
|
2201
|
+
* @param key EmberKeyData * An optional pointer to a 16-byte encryption key (EMBER_ENCRYPTION_KEY_SIZE).
|
|
2202
|
+
* An all zero key may be passed in, which will cause the stack to randomly generate a new key.
|
|
2203
|
+
* @returns SLStatus value that indicates the success or failure of the command.
|
|
2204
|
+
*/
|
|
2205
|
+
ezspBroadcastNextNetworkKey(key: EmberKeyData): Promise<SLStatus>;
|
|
2206
|
+
/**
|
|
2207
|
+
* This function broadcasts a switch key message to tell all nodes to change to
|
|
2208
|
+
* the sequence number of the previously sent Alternate Encryption Key.
|
|
2209
|
+
* @returns SLStatus value that indicates the success or failure of the command.
|
|
2210
|
+
*/
|
|
2211
|
+
ezspBroadcastNetworkKeySwitch(): Promise<SLStatus>;
|
|
2212
|
+
/**
|
|
2213
|
+
* This routine processes the passed chunk of data and updates the hash context
|
|
2214
|
+
* based on it. If the 'finalize' parameter is not set, then the length of the
|
|
2215
|
+
* data passed in must be a multiple of 16. If the 'finalize' parameter is set
|
|
2216
|
+
* then the length can be any value up 1-16, and the final hash value will be
|
|
2217
|
+
* calculated.
|
|
2218
|
+
* @param context EmberAesMmoHashContext * The hash context to update.
|
|
2219
|
+
* @param finalize This indicates whether the final hash value should be calculated
|
|
2220
|
+
* @param data uint8_t * The data to hash.
|
|
2221
|
+
* @returns The result of the operation
|
|
2222
|
+
* @returns EmberAesMmoHashContext * The updated hash context.
|
|
2223
|
+
*/
|
|
2224
|
+
ezspAesMmoHash(context: EmberAesMmoHashContext, finalize: boolean, data: Buffer): Promise<[SLStatus, returnContext: EmberAesMmoHashContext]>;
|
|
2225
|
+
/**
|
|
2226
|
+
* This command sends an APS remove device using APS encryption to the
|
|
2227
|
+
* destination indicating either to remove itself from the network, or one of
|
|
2228
|
+
* its children.
|
|
2229
|
+
* @param destShort The node ID of the device that will receive the message
|
|
2230
|
+
* @param destLong The long address (EUI64) of the device that will receive the message.
|
|
2231
|
+
* @param targetLong The long address (EUI64) of the device to be removed.
|
|
2232
|
+
* @returns An SLStatus value indicating success, or the reason for failure
|
|
2233
|
+
*/
|
|
2234
|
+
ezspRemoveDevice(destShort: NodeId, destLong: Eui64, targetLong: Eui64): Promise<SLStatus>;
|
|
2235
|
+
/**
|
|
2236
|
+
* This command will send a unicast transport key message with a new NWK key to
|
|
2237
|
+
* the specified device. APS encryption using the device's existing link key
|
|
2238
|
+
* will be used.
|
|
2239
|
+
* @param destShort The node ID of the device that will receive the message
|
|
2240
|
+
* @param destLong The long address (EUI64) of the device that will receive the message.
|
|
2241
|
+
* @param key EmberKeyData * The NWK key to send to the new device.
|
|
2242
|
+
* @returns An SLStatus value indicating success, or the reason for failure
|
|
2243
|
+
*/
|
|
2244
|
+
ezspUnicastNwkKeyUpdate(destShort: NodeId, destLong: Eui64, key: EmberKeyData): Promise<SLStatus>;
|
|
2245
|
+
/**
|
|
2246
|
+
* This call starts the generation of the ECC Ephemeral Public/Private key pair.
|
|
2247
|
+
* When complete it stores the private key. The results are returned via
|
|
2248
|
+
* ezspGenerateCbkeKeysHandler().
|
|
2249
|
+
*/
|
|
2250
|
+
ezspGenerateCbkeKeys(): Promise<SLStatus>;
|
|
2251
|
+
/**
|
|
2252
|
+
* Callback
|
|
2253
|
+
* A callback by the Crypto Engine indicating that a new ephemeral
|
|
2254
|
+
* public/private key pair has been generated. The public/private key pair is
|
|
2255
|
+
* stored on the NCP, but only the associated public key is returned to the
|
|
2256
|
+
* host. The node's associated certificate is also returned.
|
|
2257
|
+
* @param status The result of the CBKE operation.
|
|
2258
|
+
* @param ephemeralPublicKey EmberPublicKeyData * The generated ephemeral public key.
|
|
2259
|
+
*/
|
|
2260
|
+
ezspGenerateCbkeKeysHandler(status: SLStatus, ephemeralPublicKey: EmberPublicKeyData): void;
|
|
2261
|
+
/**
|
|
2262
|
+
* Calculates the SMAC verification keys for both the initiator and responder
|
|
2263
|
+
* roles of CBKE using the passed parameters and the stored public/private key
|
|
2264
|
+
* pair previously generated with ezspGenerateKeysRetrieveCert(). It also stores
|
|
2265
|
+
* the unverified link key data in temporary storage on the NCP until the key
|
|
2266
|
+
* establishment is complete.
|
|
2267
|
+
* @param amInitiator The role of this device in the Key Establishment protocol.
|
|
2268
|
+
* @param partnerCertificate EmberCertificateData * The key establishment partner's implicit certificate.
|
|
2269
|
+
* @param partnerEphemeralPublicKey EmberPublicKeyData * The key establishment partner's ephemeral public key
|
|
2270
|
+
*/
|
|
2271
|
+
ezspCalculateSmacs(amInitiator: boolean, partnerCertificate: EmberCertificateData, partnerEphemeralPublicKey: EmberPublicKeyData): Promise<SLStatus>;
|
|
2272
|
+
/**
|
|
2273
|
+
* Callback
|
|
2274
|
+
* A callback to indicate that the NCP has finished calculating the Secure
|
|
2275
|
+
* Message Authentication Codes (SMAC) for both the initiator and responder. The
|
|
2276
|
+
* associated link key is kept in temporary storage until the host tells the NCP
|
|
2277
|
+
* to store or discard the key via emberClearTemporaryDataMaybeStoreLinkKey().
|
|
2278
|
+
* @param status The Result of the CBKE operation.
|
|
2279
|
+
* @param initiatorSmac EmberSmacData * The calculated value of the initiator's SMAC
|
|
2280
|
+
* @param responderSmac EmberSmacData * The calculated value of the responder's SMAC
|
|
2281
|
+
*/
|
|
2282
|
+
ezspCalculateSmacsHandler(status: SLStatus, initiatorSmac: EmberSmacData, responderSmac: EmberSmacData): void;
|
|
2283
|
+
/**
|
|
2284
|
+
* This call starts the generation of the ECC 283k1 curve Ephemeral
|
|
2285
|
+
* Public/Private key pair. When complete it stores the private key. The results
|
|
2286
|
+
* are returned via ezspGenerateCbkeKeysHandler283k1().
|
|
2287
|
+
*/
|
|
2288
|
+
ezspGenerateCbkeKeys283k1(): Promise<SLStatus>;
|
|
2289
|
+
/**
|
|
2290
|
+
* Callback
|
|
2291
|
+
* A callback by the Crypto Engine indicating that a new 283k1 ephemeral
|
|
2292
|
+
* public/private key pair has been generated. The public/private key pair is
|
|
2293
|
+
* stored on the NCP, but only the associated public key is returned to the
|
|
2294
|
+
* host. The node's associated certificate is also returned.
|
|
2295
|
+
* @param status The result of the CBKE operation.
|
|
2296
|
+
* @param ephemeralPublicKey EmberPublicKey283k1Data * The generated ephemeral public key.
|
|
2297
|
+
*/
|
|
2298
|
+
ezspGenerateCbkeKeysHandler283k1(status: SLStatus, ephemeralPublicKey: EmberPublicKey283k1Data): void;
|
|
2299
|
+
/**
|
|
2300
|
+
* Calculates the SMAC verification keys for both the initiator and responder
|
|
2301
|
+
* roles of CBKE for the 283k1 ECC curve using the passed parameters and the
|
|
2302
|
+
* stored public/private key pair previously generated with
|
|
2303
|
+
* ezspGenerateKeysRetrieveCert283k1(). It also stores the unverified link key
|
|
2304
|
+
* data in temporary storage on the NCP until the key establishment is complete.
|
|
2305
|
+
* @param amInitiator The role of this device in the Key Establishment protocol.
|
|
2306
|
+
* @param partnerCertificate EmberCertificate283k1Data * The key establishment partner's implicit certificate.
|
|
2307
|
+
* @param partnerEphemeralPublicKey EmberPublicKey283k1Data * The key establishment partner's ephemeral public key
|
|
2308
|
+
*/
|
|
2309
|
+
ezspCalculateSmacs283k1(amInitiator: boolean, partnerCertificate: EmberCertificate283k1Data, partnerEphemeralPublicKey: EmberPublicKey283k1Data): Promise<SLStatus>;
|
|
2310
|
+
/**
|
|
2311
|
+
* Callback
|
|
2312
|
+
* A callback to indicate that the NCP has finished calculating the Secure
|
|
2313
|
+
* Message Authentication Codes (SMAC) for both the initiator and responder for
|
|
2314
|
+
* the CBKE 283k1 Library. The associated link key is kept in temporary storage
|
|
2315
|
+
* until the host tells the NCP to store or discard the key via
|
|
2316
|
+
* emberClearTemporaryDataMaybeStoreLinkKey().
|
|
2317
|
+
* @param status The Result of the CBKE operation.
|
|
2318
|
+
* @param initiatorSmac EmberSmacData * The calculated value of the initiator's SMAC
|
|
2319
|
+
* @param responderSmac EmberSmacData * The calculated value of the responder's SMAC
|
|
2320
|
+
*/
|
|
2321
|
+
ezspCalculateSmacsHandler283k1(status: SLStatus, initiatorSmac: EmberSmacData, responderSmac: EmberSmacData): void;
|
|
2322
|
+
/**
|
|
2323
|
+
* Clears the temporary data associated with CBKE and the key establishment,
|
|
2324
|
+
* most notably the ephemeral public/private key pair. If storeLinKey is true it
|
|
2325
|
+
* moves the unverified link key stored in temporary storage into the link key
|
|
2326
|
+
* table. Otherwise it discards the key.
|
|
2327
|
+
* @param storeLinkKey A bool indicating whether to store (true) or discard (false) the unverified link
|
|
2328
|
+
* key derived when ezspCalculateSmacs() was previously called.
|
|
2329
|
+
*/
|
|
2330
|
+
ezspClearTemporaryDataMaybeStoreLinkKey(storeLinkKey: boolean): Promise<SLStatus>;
|
|
2331
|
+
/**
|
|
2332
|
+
* Clears the temporary data associated with CBKE and the key establishment,
|
|
2333
|
+
* most notably the ephemeral public/private key pair. If storeLinKey is true it
|
|
2334
|
+
* moves the unverified link key stored in temporary storage into the link key
|
|
2335
|
+
* table. Otherwise it discards the key.
|
|
2336
|
+
* @param storeLinkKey A bool indicating whether to store (true) or discard (false) the unverified link
|
|
2337
|
+
* key derived when ezspCalculateSmacs() was previously called.
|
|
2338
|
+
*/
|
|
2339
|
+
ezspClearTemporaryDataMaybeStoreLinkKey283k1(storeLinkKey: boolean): Promise<SLStatus>;
|
|
2340
|
+
/**
|
|
2341
|
+
* Retrieves the certificate installed on the NCP.
|
|
2342
|
+
* @returns EmberCertificateData * The locally installed certificate.
|
|
2343
|
+
*/
|
|
2344
|
+
ezspGetCertificate(): Promise<[SLStatus, localCert: EmberCertificateData]>;
|
|
2345
|
+
/**
|
|
2346
|
+
* Retrieves the 283k certificate installed on the NCP.
|
|
2347
|
+
* @returns EmberCertificate283k1Data * The locally installed certificate.
|
|
2348
|
+
*/
|
|
2349
|
+
ezspGetCertificate283k1(): Promise<[SLStatus, localCert: EmberCertificate283k1Data]>;
|
|
2350
|
+
/**
|
|
2351
|
+
* Callback
|
|
2352
|
+
* The handler that returns the results of the signing operation. On success,
|
|
2353
|
+
* the signature will be appended to the original message (including the
|
|
2354
|
+
* signature type indicator that replaced the startIndex field for the signing)
|
|
2355
|
+
* and both are returned via this callback.
|
|
2356
|
+
* @param status The result of the DSA signing operation.
|
|
2357
|
+
* @param messageLength uint8_t The length of the messageContents parameter in bytes.
|
|
2358
|
+
* @param messageContents uint8_t *The message and attached which includes the original message and the appended signature.
|
|
2359
|
+
*/
|
|
2360
|
+
ezspDsaSignHandler(status: SLStatus, messageContents: Buffer): void;
|
|
2361
|
+
/**
|
|
2362
|
+
* Verify that signature of the associated message digest was signed by the
|
|
2363
|
+
* private key of the associated certificate.
|
|
2364
|
+
* @param digest EmberMessageDigest * The AES-MMO message digest of the signed data.
|
|
2365
|
+
* If dsaSign command was used to generate the signature for this data, the final byte (replaced by signature type of 0x01)
|
|
2366
|
+
* in the messageContents array passed to dsaSign is included in the hash context used for the digest calculation.
|
|
2367
|
+
* @param signerCertificate EmberCertificateData * The certificate of the signer. Note that the signer's certificate and the verifier's
|
|
2368
|
+
* certificate must both be issued by the same Certificate Authority, so they should share the same CA Public Key.
|
|
2369
|
+
* @param receivedSig EmberSignatureData * The signature of the signed data.
|
|
2370
|
+
*/
|
|
2371
|
+
ezspDsaVerify(digest: EmberMessageDigest, signerCertificate: EmberCertificateData, receivedSig: EmberSignatureData): Promise<SLStatus>;
|
|
2372
|
+
/**
|
|
2373
|
+
* Callback
|
|
2374
|
+
* This callback is executed by the stack when the DSA verification has
|
|
2375
|
+
* completed and has a result. If the result is EMBER_SUCCESS, the signature is
|
|
2376
|
+
* valid. If the result is EMBER_SIGNATURE_VERIFY_FAILURE then the signature is
|
|
2377
|
+
* invalid. If the result is anything else then the signature verify operation
|
|
2378
|
+
* failed and the validity is unknown.
|
|
2379
|
+
* @param status The result of the DSA verification operation.
|
|
2380
|
+
*/
|
|
2381
|
+
ezspDsaVerifyHandler(status: SLStatus): void;
|
|
2382
|
+
/**
|
|
2383
|
+
* Verify that signature of the associated message digest was signed by the
|
|
2384
|
+
* private key of the associated certificate.
|
|
2385
|
+
* @param digest EmberMessageDigest * The AES-MMO message digest of the signed data.
|
|
2386
|
+
* If dsaSign command was used to generate the signature for this data, the final byte (replaced by signature type of 0x01)
|
|
2387
|
+
* in the messageContents array passed to dsaSign is included in the hash context used for the digest calculation.
|
|
2388
|
+
* @param signerCertificate EmberCertificate283k1Data * The certificate of the signer. Note that the signer's certificate and the verifier's
|
|
2389
|
+
* certificate must both be issued by the same Certificate Authority, so they should share the same CA Public Key.
|
|
2390
|
+
* @param receivedSig EmberSignature283k1Data * The signature of the signed data.
|
|
2391
|
+
*/
|
|
2392
|
+
ezspDsaVerify283k1(digest: EmberMessageDigest, signerCertificate: EmberCertificate283k1Data, receivedSig: EmberSignature283k1Data): Promise<SLStatus>;
|
|
2393
|
+
/**
|
|
2394
|
+
* Sets the device's CA public key, local certificate, and static private key on
|
|
2395
|
+
* the NCP associated with this node.
|
|
2396
|
+
* @param caPublic EmberPublicKeyData * The Certificate Authority's public key.
|
|
2397
|
+
* @param myCert EmberCertificateData * The node's new certificate signed by the CA.
|
|
2398
|
+
* @param myKey EmberPrivateKeyData *The node's new static private key.
|
|
2399
|
+
*/
|
|
2400
|
+
ezspSetPreinstalledCbkeData(caPublic: EmberPublicKeyData, myCert: EmberCertificateData, myKey: EmberPrivateKeyData): Promise<SLStatus>;
|
|
2401
|
+
/**
|
|
2402
|
+
* Sets the device's 283k1 curve CA public key, local certificate, and static
|
|
2403
|
+
* private key on the NCP associated with this node.
|
|
2404
|
+
* @returns Status of operation
|
|
2405
|
+
*/
|
|
2406
|
+
ezspSavePreinstalledCbkeData283k1(): Promise<SLStatus>;
|
|
2407
|
+
/**
|
|
2408
|
+
* Activate use of mfglib test routines and enables the radio receiver to report
|
|
2409
|
+
* packets it receives to the mfgLibRxHandler() callback. These packets will not
|
|
2410
|
+
* be passed up with a CRC failure. All other mfglib functions will return an
|
|
2411
|
+
* error until the mfglibStart() has been called
|
|
2412
|
+
* @param rxCallback true to generate a mfglibRxHandler callback when a packet is received.
|
|
2413
|
+
* @returns An SLStatus value indicating success or the reason for failure.
|
|
2414
|
+
*/
|
|
2415
|
+
mfglibInternalStart(rxCallback: boolean): Promise<SLStatus>;
|
|
2416
|
+
/**
|
|
2417
|
+
* Deactivate use of mfglib test routines; restores the hardware to the state it
|
|
2418
|
+
* was in prior to mfglibStart() and stops receiving packets started by
|
|
2419
|
+
* mfglibStart() at the same time.
|
|
2420
|
+
* @returns An SLStatus value indicating success or the reason for failure.
|
|
2421
|
+
*/
|
|
2422
|
+
mfglibInternalEnd(): Promise<SLStatus>;
|
|
2423
|
+
/**
|
|
2424
|
+
* Starts transmitting an unmodulated tone on the currently set channel and
|
|
2425
|
+
* power level. Upon successful return, the tone will be transmitting. To stop
|
|
2426
|
+
* transmitting tone, application must call mfglibStopTone(), allowing it the
|
|
2427
|
+
* flexibility to determine its own criteria for tone duration (time, event,
|
|
2428
|
+
* etc.)
|
|
2429
|
+
* @returns An SLStatus value indicating success or the reason for failure.
|
|
2430
|
+
*/
|
|
2431
|
+
mfglibInternalStartTone(): Promise<SLStatus>;
|
|
2432
|
+
/**
|
|
2433
|
+
* Stops transmitting tone started by mfglibStartTone().
|
|
2434
|
+
* @returns An SLStatus value indicating success or the reason for failure.
|
|
2435
|
+
*/
|
|
2436
|
+
mfglibInternalStopTone(): Promise<SLStatus>;
|
|
2437
|
+
/**
|
|
2438
|
+
* Starts transmitting a random stream of characters. This is so that the radio
|
|
2439
|
+
* modulation can be measured.
|
|
2440
|
+
* @returns An SLStatus value indicating success or the reason for failure.
|
|
2441
|
+
*/
|
|
2442
|
+
mfglibInternalStartStream(): Promise<SLStatus>;
|
|
2443
|
+
/**
|
|
2444
|
+
* Stops transmitting a random stream of characters started by
|
|
2445
|
+
* mfglibStartStream().
|
|
2446
|
+
* @returns An SLStatus value indicating success or the reason for failure.
|
|
2447
|
+
*/
|
|
2448
|
+
mfglibInternalStopStream(): Promise<SLStatus>;
|
|
2449
|
+
/**
|
|
2450
|
+
* Sends a single packet consisting of the following bytes: packetLength,
|
|
2451
|
+
* packetContents[0], ... , packetContents[packetLength - 3], CRC[0], CRC[1].
|
|
2452
|
+
* The total number of bytes sent is packetLength + 1. The radio replaces the
|
|
2453
|
+
* last two bytes of packetContents[] with the 16-bit CRC for the packet.
|
|
2454
|
+
* @param packetLength uint8_t The length of the packetContents parameter in bytes. Must be greater than 3 and less than 123.
|
|
2455
|
+
* @param packetContents uint8_t * The packet to send. The last two bytes will be replaced with the 16-bit CRC.
|
|
2456
|
+
* @returns An SLStatus value indicating success or the reason for failure.
|
|
2457
|
+
*/
|
|
2458
|
+
mfglibInternalSendPacket(packetContents: Buffer): Promise<SLStatus>;
|
|
2459
|
+
/**
|
|
2460
|
+
* Sets the radio channel. Calibration occurs if this is the first time the
|
|
2461
|
+
* channel has been used.
|
|
2462
|
+
* @param channel uint8_t The channel to switch to. Valid values are 11 - 26.
|
|
2463
|
+
* @returns An SLStatus value indicating success or the reason for failure.
|
|
2464
|
+
*/
|
|
2465
|
+
mfglibInternalSetChannel(channel: number): Promise<SLStatus>;
|
|
2466
|
+
/**
|
|
2467
|
+
* Returns the current radio channel, as previously set via mfglibSetChannel().
|
|
2468
|
+
* @returns uint8_t The current channel.
|
|
2469
|
+
*/
|
|
2470
|
+
mfglibInternalGetChannel(): Promise<number>;
|
|
2471
|
+
/**
|
|
2472
|
+
* First select the transmit power mode, and then include a method for selecting
|
|
2473
|
+
* the radio transmit power. The valid power settings depend upon the specific
|
|
2474
|
+
* radio in use. Ember radios have discrete power settings, and then requested
|
|
2475
|
+
* power is rounded to a valid power setting; the actual power output is
|
|
2476
|
+
* available to the caller via mfglibGetPower().
|
|
2477
|
+
* @param txPowerMode uint16_t Power mode. Refer to txPowerModes in stack/include/ember-types.h for possible values.
|
|
2478
|
+
* @param power int8_t Power in units of dBm. Refer to radio data sheet for valid range.
|
|
2479
|
+
* @returns An SLStatus value indicating success or the reason for failure.
|
|
2480
|
+
*/
|
|
2481
|
+
mfglibInternalSetPower(txPowerMode: EmberTXPowerMode, power: number): Promise<SLStatus>;
|
|
2482
|
+
/**
|
|
2483
|
+
* Returns the current radio power setting, as previously set via mfglibSetPower().
|
|
2484
|
+
* @returns int8_t Power in units of dBm. Refer to radio data sheet for valid range.
|
|
2485
|
+
*/
|
|
2486
|
+
mfglibInternalGetPower(): Promise<number>;
|
|
2487
|
+
/**
|
|
2488
|
+
* Callback
|
|
2489
|
+
* A callback indicating a packet with a valid CRC has been received.
|
|
2490
|
+
* @param linkQuality uint8_t The link quality observed during the reception
|
|
2491
|
+
* @param rssi int8_t The energy level (in units of dBm) observed during the reception.
|
|
2492
|
+
* @param packetContents uint8_t * The received packet (last 2 bytes are not FCS / CRC and may be discarded)
|
|
2493
|
+
* Length will be greater than 3 and less than 123.
|
|
2494
|
+
*/
|
|
2495
|
+
ezspMfglibRxHandler(linkQuality: number, rssi: number, packetContents: Buffer): void;
|
|
2496
|
+
/**
|
|
2497
|
+
* Quits the current application and launches the standalone bootloader (if installed).
|
|
2498
|
+
* The function returns an error if the standalone bootloader is not present.
|
|
2499
|
+
* @param enabled If true, launch the standalone bootloader. If false, do nothing.
|
|
2500
|
+
* @returns An SLStatus value indicating success or the reason for failure.
|
|
2501
|
+
*/
|
|
2502
|
+
ezspLaunchStandaloneBootloader(enabled: boolean): Promise<SLStatus>;
|
|
2503
|
+
/**
|
|
2504
|
+
* Transmits the given bootload message to a neighboring node using a specific
|
|
2505
|
+
* 802.15.4 header that allows the EmberZNet stack as well as the bootloader to
|
|
2506
|
+
* recognize the message, but will not interfere with other Zigbee stacks.
|
|
2507
|
+
* @param broadcast If true, the destination address and pan id are both set to the broadcast address.
|
|
2508
|
+
* @param destEui64 The EUI64 of the target node. Ignored if the broadcast field is set to true.
|
|
2509
|
+
* @param messageLength uint8_t The length of the messageContents parameter in bytes.
|
|
2510
|
+
* @param messageContents uint8_t * The multicast message.
|
|
2511
|
+
* @returns An SLStatus value indicating success or the reason for failure.
|
|
2512
|
+
*/
|
|
2513
|
+
ezspSendBootloadMessage(broadcast: boolean, destEui64: Eui64, messageContents: Buffer): Promise<SLStatus>;
|
|
2514
|
+
/**
|
|
2515
|
+
* Detects if the standalone bootloader is installed, and if so returns the
|
|
2516
|
+
* installed version. If not return 0xffff. A returned version of 0x1234 would
|
|
2517
|
+
* indicate version 1.2 build 34. Also return the node's version of PLAT, MICRO
|
|
2518
|
+
* and PHY.
|
|
2519
|
+
* @returns uint16_t BOOTLOADER_INVALID_VERSION if the standalone bootloader is not present,
|
|
2520
|
+
* or the version of the installed standalone bootloader.
|
|
2521
|
+
* @returns uint8_t * The value of PLAT on the node
|
|
2522
|
+
* @returns uint8_t * The value of MICRO on the node
|
|
2523
|
+
* @returns uint8_t * The value of PHY on the node
|
|
2524
|
+
*/
|
|
2525
|
+
ezspGetStandaloneBootloaderVersionPlatMicroPhy(): Promise<[
|
|
2526
|
+
bootloaderVersion: number,
|
|
2527
|
+
nodePlat: number,
|
|
2528
|
+
nodeMicro: number,
|
|
2529
|
+
nodePhy: number
|
|
2530
|
+
]>;
|
|
2531
|
+
/**
|
|
2532
|
+
* Callback
|
|
2533
|
+
* A callback invoked by the EmberZNet stack when a bootload message is
|
|
2534
|
+
* received.
|
|
2535
|
+
* @param longId The EUI64 of the sending node.
|
|
2536
|
+
* @param packetInfo Information about the incoming packet.
|
|
2537
|
+
* @param messageContents uint8_t *The bootload message that was sent.
|
|
2538
|
+
*/
|
|
2539
|
+
ezspIncomingBootloadMessageHandler(longId: Eui64, packetInfo: EmberRxPacketInfo, messageContents: Buffer): void;
|
|
2540
|
+
/**
|
|
2541
|
+
* Callback
|
|
2542
|
+
* A callback invoked by the EmberZNet stack when the MAC has finished
|
|
2543
|
+
* transmitting a bootload message.
|
|
2544
|
+
* @param status An EmberStatus value of SLStatus.OK if an ACK was received from the destination
|
|
2545
|
+
* or SLStatus.ZIGBEE_DELIVERY_FAILED if no ACK was received.
|
|
2546
|
+
* @param messageLength uint8_t The length of the messageContents parameter in bytes.
|
|
2547
|
+
* @param messageContents uint8_t * The message that was sent.
|
|
2548
|
+
*/
|
|
2549
|
+
ezspBootloadTransmitCompleteHandler(status: SLStatus, messageContents: Buffer): void;
|
|
2550
|
+
/**
|
|
2551
|
+
* Perform AES encryption on plaintext using key.
|
|
2552
|
+
* @param uint8_t * 16 bytes of plaintext.
|
|
2553
|
+
* @param uint8_t * The 16-byte encryption key to use.
|
|
2554
|
+
* @returns uint8_t * 16 bytes of ciphertext.
|
|
2555
|
+
*/
|
|
2556
|
+
ezspAesEncrypt(plaintext: number[], key: number[]): Promise<number[]>;
|
|
2557
|
+
/**
|
|
2558
|
+
* Callback
|
|
2559
|
+
* A callback to be implemented on the Golden Node to process acknowledgements.
|
|
2560
|
+
* If you supply a custom version of this handler, you must define SL_ZIGBEE_APPLICATION_HAS_INCOMING_MFG_TEST_MESSAGE_HANDLER
|
|
2561
|
+
* in your application's CONFIGURATION_HEADER
|
|
2562
|
+
* @param messageType uint8_t The type of the incoming message. Currently, the only possibility is MFG_TEST_TYPE_ACK.
|
|
2563
|
+
* @param data uint8_t * A pointer to the data received in the current message.
|
|
2564
|
+
*/
|
|
2565
|
+
ezspIncomingMfgTestMessageHandler(messageType: number, messageContents: Buffer): void;
|
|
2566
|
+
/**
|
|
2567
|
+
* A function used on the Golden Node to switch between normal network operation (for testing) and manufacturing configuration.
|
|
2568
|
+
* Like emberSleep(), it may not be possible to execute this command due to pending network activity.
|
|
2569
|
+
* For the transition from normal network operation to manufacturing configuration, it is customary to loop,
|
|
2570
|
+
* calling this function alternately with emberTick() until the mode change succeeds.
|
|
2571
|
+
* @param beginConfiguration Determines the new mode of operation.
|
|
2572
|
+
* true causes the node to enter manufacturing configuration.
|
|
2573
|
+
* false causes the node to return to normal network operation.
|
|
2574
|
+
* @returns An SLStatus value indicating success or failure of the command.
|
|
2575
|
+
*/
|
|
2576
|
+
ezspMfgTestSetPacketMode(beginConfiguration: boolean): Promise<SLStatus>;
|
|
2577
|
+
/**
|
|
2578
|
+
* A function used during manufacturing configuration on the Golden Node to send the DUT a reboot command.
|
|
2579
|
+
* The usual practice is to execute this command at the end of manufacturing configuration,
|
|
2580
|
+
* to place the DUT into normal network operation for testing.
|
|
2581
|
+
* This function executes only during manufacturing configuration mode and returns an error otherwise.
|
|
2582
|
+
* If successful, the DUT acknowledges the reboot command within 20 milliseconds and then reboots.
|
|
2583
|
+
* @returns An SLStatus value indicating success or failure of the command.
|
|
2584
|
+
*/
|
|
2585
|
+
ezspMfgTestSendRebootCommand(): Promise<SLStatus>;
|
|
2586
|
+
/**
|
|
2587
|
+
* A function used during manufacturing configuration on the Golden Node to set the DUT's 8-byte EUI ID.
|
|
2588
|
+
* This function executes only during manufacturing configuration mode and returns an error otherwise.
|
|
2589
|
+
* If successful, the DUT acknowledges the new EUI ID within 150 milliseconds.
|
|
2590
|
+
* @param newId The 8-byte EUID for the DUT.
|
|
2591
|
+
* @returns An SLStatus value indicating success or failure of the command.
|
|
2592
|
+
*/
|
|
2593
|
+
ezspMfgTestSendEui64(newId: Eui64): Promise<SLStatus>;
|
|
2594
|
+
/**
|
|
2595
|
+
* A function used during manufacturing configuration on the Golden Node to set the DUT's 16-byte configuration string.
|
|
2596
|
+
* This function executes only during manufacturing configuration mode and will return an error otherwise.
|
|
2597
|
+
* If successful, the DUT will acknowledge the new string within 150 milliseconds.
|
|
2598
|
+
* @param newString The 16-byte manufacturing string.
|
|
2599
|
+
* @returns An SLStatus value indicating success or failure of the command.
|
|
2600
|
+
*/
|
|
2601
|
+
ezspMfgTestSendManufacturingString(newString: number[]): Promise<SLStatus>;
|
|
2602
|
+
/**
|
|
2603
|
+
* A function used during manufacturing configuration on the Golden Node to set the DUT's radio parameters.
|
|
2604
|
+
* This function executes only during manufacturing configuration mode and returns an error otherwise.
|
|
2605
|
+
* If successful, the DUT acknowledges the new parameters within 25 milliseconds.
|
|
2606
|
+
* @param supportedBands Sets the radio band for the DUT. See ember-common.h for possible values.
|
|
2607
|
+
* @param crystalOffset Sets the CC1020 crystal offset. This parameter has no effect on the EM2420, and it may safely be set to 0 for this RFIC.
|
|
2608
|
+
* @returns An SLStatus value indicating success or failure of the command.
|
|
2609
|
+
*/
|
|
2610
|
+
ezspMfgTestSendRadioParameters(supportedBands: number, crystalOffset: number): Promise<SLStatus>;
|
|
2611
|
+
/**
|
|
2612
|
+
* A function used in each of the manufacturing configuration API calls.
|
|
2613
|
+
* Most implementations will not need to call this function directly. See mfg-test.c for more detail.
|
|
2614
|
+
* This function executes only during manufacturing configuration mode and returns an error otherwise.
|
|
2615
|
+
* @param command A pointer to the outgoing command string.
|
|
2616
|
+
* @returns An SLStatus value indicating success or failure of the command.
|
|
2617
|
+
*/
|
|
2618
|
+
ezspMfgTestSendCommand(command: number): Promise<SLStatus>;
|
|
2619
|
+
/**
|
|
2620
|
+
* A consolidation of ZLL network operations with similar signatures;
|
|
2621
|
+
* specifically, forming and joining networks or touch-linking.
|
|
2622
|
+
* @param networkInfo EmberZllNetwork * Information about the network.
|
|
2623
|
+
* @param op Operation indicator.
|
|
2624
|
+
* @param radioTxPower int8_t Radio transmission power.
|
|
2625
|
+
* @returns An SLStatus value indicating success or the reason for failure.
|
|
2626
|
+
*/
|
|
2627
|
+
ezspZllNetworkOps(networkInfo: EmberZllNetwork, op: EzspZllNetworkOperation, radioTxPower: number): Promise<SLStatus>;
|
|
2628
|
+
/**
|
|
2629
|
+
* This call will cause the device to setup the security information used in its
|
|
2630
|
+
* network. It must be called prior to forming, starting, or joining a network.
|
|
2631
|
+
* @param networkKey EmberKeyData * ZLL Network key.
|
|
2632
|
+
* @param securityState EmberZllInitialSecurityState * Initial security state of the network.
|
|
2633
|
+
* @returns An SLStatus value indicating success or the reason for failure.
|
|
2634
|
+
*/
|
|
2635
|
+
ezspZllSetInitialSecurityState(networkKey: EmberKeyData, securityState: EmberZllInitialSecurityState): Promise<SLStatus>;
|
|
2636
|
+
/**
|
|
2637
|
+
* This call will update ZLL security token information. Unlike
|
|
2638
|
+
* emberZllSetInitialSecurityState, this can be called while a network is
|
|
2639
|
+
* already established.
|
|
2640
|
+
* @param securityState EmberZllInitialSecurityState * Security state of the network.
|
|
2641
|
+
* @returns An SLStatus value indicating success or the reason for failure.
|
|
2642
|
+
*/
|
|
2643
|
+
ezspZllSetSecurityStateWithoutKey(securityState: EmberZllInitialSecurityState): Promise<SLStatus>;
|
|
2644
|
+
/**
|
|
2645
|
+
* This call will initiate a ZLL network scan on all the specified channels.
|
|
2646
|
+
* @param channelMask uint32_t The range of channels to scan.
|
|
2647
|
+
* @param radioPowerForScan int8_t The radio output power used for the scan requests.
|
|
2648
|
+
* @param nodeType The node type of the local device.
|
|
2649
|
+
* @returns An SLStatus value indicating success or the reason for failure.
|
|
2650
|
+
*/
|
|
2651
|
+
ezspZllStartScan(channelMask: number, radioPowerForScan: number, nodeType: EmberNodeType): Promise<SLStatus>;
|
|
2652
|
+
/**
|
|
2653
|
+
* This call will change the mode of the radio so that the receiver is on for a
|
|
2654
|
+
* specified amount of time when the device is idle.
|
|
2655
|
+
* @param durationMs uint32_t The duration in milliseconds to leave the radio on.
|
|
2656
|
+
* @returns An SLStatus value indicating success or the reason for failure.
|
|
2657
|
+
*/
|
|
2658
|
+
ezspZllSetRxOnWhenIdle(durationMs: number): Promise<SLStatus>;
|
|
2659
|
+
/**
|
|
2660
|
+
* Callback
|
|
2661
|
+
* This call is fired when a ZLL network scan finds a ZLL network.
|
|
2662
|
+
* @param networkInfo EmberZllNetwork * Information about the network.
|
|
2663
|
+
* @param isDeviceInfoNull Used to interpret deviceInfo field.
|
|
2664
|
+
* @param deviceInfo EmberZllDeviceInfoRecord * Device specific information.
|
|
2665
|
+
* @param packetInfo Information about the incoming packet received from this network.
|
|
2666
|
+
*/
|
|
2667
|
+
ezspZllNetworkFoundHandler(networkInfo: EmberZllNetwork, isDeviceInfoNull: boolean, deviceInfo: EmberZllDeviceInfoRecord, packetInfo: EmberRxPacketInfo): void;
|
|
2668
|
+
/**
|
|
2669
|
+
* Callback
|
|
2670
|
+
* This call is fired when a ZLL network scan is complete.
|
|
2671
|
+
* @param status Status of the operation.
|
|
2672
|
+
*/
|
|
2673
|
+
ezspZllScanCompleteHandler(status: SLStatus): void;
|
|
2674
|
+
/**
|
|
2675
|
+
* Callback
|
|
2676
|
+
* This call is fired when network and group addresses are assigned to a remote
|
|
2677
|
+
* mode in a network start or network join request.
|
|
2678
|
+
* @param addressInfo EmberZllAddressAssignment * Address assignment information.
|
|
2679
|
+
* @param packetInfo Information about the incoming packet received from this network.
|
|
2680
|
+
*/
|
|
2681
|
+
ezspZllAddressAssignmentHandler(addressInfo: EmberZllAddressAssignment, packetInfo: EmberRxPacketInfo): void;
|
|
2682
|
+
/**
|
|
2683
|
+
* Callback
|
|
2684
|
+
* This call is fired when the device is a target of a touch link.
|
|
2685
|
+
* @param networkInfo EmberZllNetwork * Information about the network.
|
|
2686
|
+
*/
|
|
2687
|
+
ezspZllTouchLinkTargetHandler(networkInfo: EmberZllNetwork): void;
|
|
2688
|
+
/**
|
|
2689
|
+
* Get the ZLL tokens.
|
|
2690
|
+
* @returns EmberTokTypeStackZllData * Data token return value.
|
|
2691
|
+
* @returns EmberTokTypeStackZllSecurity * Security token return value.
|
|
2692
|
+
*/
|
|
2693
|
+
ezspZllGetTokens(): Promise<[data: EmberTokTypeStackZllData, security: EmberTokTypeStackZllSecurity]>;
|
|
2694
|
+
/**
|
|
2695
|
+
* Set the ZLL data token.
|
|
2696
|
+
* @param data EmberTokTypeStackZllData * Data token to be set.
|
|
2697
|
+
*/
|
|
2698
|
+
ezspZllSetDataToken(data: EmberTokTypeStackZllData): Promise<void>;
|
|
2699
|
+
/**
|
|
2700
|
+
* Set the ZLL data token bitmask to reflect the ZLL network state.
|
|
2701
|
+
*/
|
|
2702
|
+
ezspZllSetNonZllNetwork(): Promise<void>;
|
|
2703
|
+
/**
|
|
2704
|
+
* Is this a ZLL network?
|
|
2705
|
+
* @returns ZLL network?
|
|
2706
|
+
*/
|
|
2707
|
+
ezspIsZllNetwork(): Promise<boolean>;
|
|
2708
|
+
/**
|
|
2709
|
+
* This call sets the radio's default idle power mode.
|
|
2710
|
+
* @param mode The power mode to be set.
|
|
2711
|
+
*/
|
|
2712
|
+
ezspZllSetRadioIdleMode(mode: number): Promise<void>;
|
|
2713
|
+
/**
|
|
2714
|
+
* This call gets the radio's default idle power mode.
|
|
2715
|
+
* @returns uint8_t The current power mode.
|
|
2716
|
+
*/
|
|
2717
|
+
ezspZllGetRadioIdleMode(): Promise<number>;
|
|
2718
|
+
/**
|
|
2719
|
+
* This call sets the default node type for a factory new ZLL device.
|
|
2720
|
+
* @param nodeType The node type to be set.
|
|
2721
|
+
*/
|
|
2722
|
+
ezspSetZllNodeType(nodeType: EmberNodeType): Promise<void>;
|
|
2723
|
+
/**
|
|
2724
|
+
* This call sets additional capability bits in the ZLL state.
|
|
2725
|
+
* @param uint16_t A mask with the bits to be set or cleared.
|
|
2726
|
+
*/
|
|
2727
|
+
ezspSetZllAdditionalState(state: number): Promise<void>;
|
|
2728
|
+
/**
|
|
2729
|
+
* Is there a ZLL (Touchlink) operation in progress?
|
|
2730
|
+
* @returns ZLL operation in progress? false on error
|
|
2731
|
+
*/
|
|
2732
|
+
ezspZllOperationInProgress(): Promise<boolean>;
|
|
2733
|
+
/**
|
|
2734
|
+
* Is the ZLL radio on when idle mode is active?
|
|
2735
|
+
* @returns ZLL radio on when idle mode is active? false on error
|
|
2736
|
+
*/
|
|
2737
|
+
ezspZllRxOnWhenIdleGetActive(): Promise<boolean>;
|
|
2738
|
+
/**
|
|
2739
|
+
* Informs the ZLL API that application scanning is complete
|
|
2740
|
+
*/
|
|
2741
|
+
ezspZllScanningComplete(): Promise<void>;
|
|
2742
|
+
/**
|
|
2743
|
+
* Get the primary ZLL (touchlink) channel mask.
|
|
2744
|
+
* @returns uint32_t The primary ZLL channel mask
|
|
2745
|
+
*/
|
|
2746
|
+
ezspGetZllPrimaryChannelMask(): Promise<number>;
|
|
2747
|
+
/**
|
|
2748
|
+
* Get the secondary ZLL (touchlink) channel mask.
|
|
2749
|
+
* @returns uint32_t The secondary ZLL channel mask
|
|
2750
|
+
*/
|
|
2751
|
+
ezspGetZllSecondaryChannelMask(): Promise<number>;
|
|
2752
|
+
/**
|
|
2753
|
+
* Set the primary ZLL (touchlink) channel mask
|
|
2754
|
+
* @param uint32_t The primary ZLL channel mask
|
|
2755
|
+
*/
|
|
2756
|
+
ezspSetZllPrimaryChannelMask(zllPrimaryChannelMask: number): Promise<void>;
|
|
2757
|
+
/**
|
|
2758
|
+
* Set the secondary ZLL (touchlink) channel mask.
|
|
2759
|
+
* @param uint32_t The secondary ZLL channel mask
|
|
2760
|
+
*/
|
|
2761
|
+
ezspSetZllSecondaryChannelMask(zllSecondaryChannelMask: number): Promise<void>;
|
|
2762
|
+
/**
|
|
2763
|
+
* Clear ZLL stack tokens.
|
|
2764
|
+
*/
|
|
2765
|
+
ezspZllClearTokens(): Promise<void>;
|
|
2766
|
+
/**
|
|
2767
|
+
* Update the GP Proxy table based on a GP pairing.
|
|
2768
|
+
* @param options uint32_t The options field of the GP Pairing command.
|
|
2769
|
+
* @param addr EmberGpAddress * The target GPD.
|
|
2770
|
+
* @param commMode uint8_t The communication mode of the GP Sink.
|
|
2771
|
+
* @param sinkNetworkAddress uint16_t The network address of the GP Sink.
|
|
2772
|
+
* @param sinkGroupId uint16_t The group ID of the GP Sink.
|
|
2773
|
+
* @param assignedAlias uint16_t The alias assigned to the GPD.
|
|
2774
|
+
* @param sinkIeeeAddress uint8_t * The IEEE address of the GP Sink.
|
|
2775
|
+
* @param gpdKey EmberKeyData * The key to use for the target GPD.
|
|
2776
|
+
* @param gpdSecurityFrameCounter uint32_t The GPD security frame counter.
|
|
2777
|
+
* @param forwardingRadius uint8_t The forwarding radius.
|
|
2778
|
+
* @returns Whether a GP Pairing has been created or not.
|
|
2779
|
+
*/
|
|
2780
|
+
ezspGpProxyTableProcessGpPairing(options: number, addr: EmberGpAddress, commMode: number, sinkNetworkAddress: number, sinkGroupId: number, assignedAlias: number, sinkIeeeAddress: Eui64, gpdKey: EmberKeyData, gpdSecurityFrameCounter: number, forwardingRadius: number): Promise<boolean>;
|
|
2781
|
+
/**
|
|
2782
|
+
* Adds/removes an entry from the GP Tx Queue.
|
|
2783
|
+
* @param action The action to perform on the GP TX queue (true to add, false to remove).
|
|
2784
|
+
* @param useCca Whether to use ClearChannelAssessment when transmitting the GPDF.
|
|
2785
|
+
* @param addr EmberGpAddress * The Address of the destination GPD.
|
|
2786
|
+
* @param gpdCommandId uint8_t The GPD command ID to send.
|
|
2787
|
+
* @param gpdAsdu uint8_t * The GP command payload.
|
|
2788
|
+
* @param gpepHandle uint8_t The handle to refer to the GPDF.
|
|
2789
|
+
* @param gpTxQueueEntryLifetimeMs uint16_t How long to keep the GPDF in the TX Queue.
|
|
2790
|
+
* @returns An SLStatus value indicating success or the reason for failure.
|
|
2791
|
+
*/
|
|
2792
|
+
ezspDGpSend(action: boolean, useCca: boolean, addr: EmberGpAddress, gpdCommandId: number, gpdAsdu: Buffer, gpepHandle: number, gpTxQueueEntryLifetimeMs: number): Promise<SLStatus>;
|
|
2793
|
+
/**
|
|
2794
|
+
* Callback
|
|
2795
|
+
* A callback to the GP endpoint to indicate the result of the GPDF
|
|
2796
|
+
* transmission.
|
|
2797
|
+
* @param status An SLStatus value indicating success or the reason for failure.
|
|
2798
|
+
* @param gpepHandle uint8_t The handle of the GPDF.
|
|
2799
|
+
*/
|
|
2800
|
+
ezspDGpSentHandler(status: SLStatus, gpepHandle: number): void;
|
|
2801
|
+
/**
|
|
2802
|
+
* Callback
|
|
2803
|
+
* A callback invoked by the Zigbee GP stack when a GPDF is received.
|
|
2804
|
+
* @param status The status of the GPDF receive.
|
|
2805
|
+
* @param gpdLink uint8_t The gpdLink value of the received GPDF.
|
|
2806
|
+
* @param sequenceNumber uint8_t The GPDF sequence number.
|
|
2807
|
+
* @param addr EmberGpAddress *The address of the source GPD.
|
|
2808
|
+
* @param gpdfSecurityLevel The security level of the received GPDF.
|
|
2809
|
+
* @param gpdfSecurityKeyType The securityKeyType used to decrypt/authenticate the incoming GPDF.
|
|
2810
|
+
* @param autoCommissioning Whether the incoming GPDF had the auto-commissioning bit set.
|
|
2811
|
+
* @param bidirectionalInfo uint8_t Bidirectional information represented in bitfields,
|
|
2812
|
+
* where bit0 holds the rxAfterTx of incoming gpdf and bit1 holds if tx queue is available for outgoing gpdf.
|
|
2813
|
+
* @param gpdSecurityFrameCounter uint32_t The security frame counter of the incoming GPDF.
|
|
2814
|
+
* @param gpdCommandId uint8_t The gpdCommandId of the incoming GPDF.
|
|
2815
|
+
* @param mic uint32_t The received MIC of the GPDF.
|
|
2816
|
+
* @param proxyTableIndex uint8_tThe proxy table index of the corresponding proxy table entry to the incoming GPDF.
|
|
2817
|
+
* @param gpdCommandPayload uint8_t * The GPD command payload.
|
|
2818
|
+
* @param packetInfo Rx packet information.
|
|
2819
|
+
*/
|
|
2820
|
+
ezspGpepIncomingMessageHandler(status: EmberGPStatus, gpdLink: number, sequenceNumber: number, addr: EmberGpAddress, gpdfSecurityLevel: EmberGpSecurityLevel, gpdfSecurityKeyType: EmberGpKeyType, autoCommissioning: boolean, bidirectionalInfo: number, gpdSecurityFrameCounter: number, gpdCommandId: number, mic: number, proxyTableIndex: number, gpdCommandPayload: Buffer, packetInfo: EmberRxPacketInfo): void;
|
|
2821
|
+
/**
|
|
2822
|
+
* Retrieves the proxy table entry stored at the passed index.
|
|
2823
|
+
* @param proxyIndex uint8_t The index of the requested proxy table entry.
|
|
2824
|
+
* @returns An SLStatus value indicating success or the reason for failure.
|
|
2825
|
+
* @returns EmberGpProxyTableEntry * An EmberGpProxyTableEntry struct containing a copy of the requested proxy entry.
|
|
2826
|
+
*/
|
|
2827
|
+
ezspGpProxyTableGetEntry(proxyIndex: number): Promise<[SLStatus, entry: EmberGpProxyTableEntry]>;
|
|
2828
|
+
/**
|
|
2829
|
+
* Finds the index of the passed address in the gp table.
|
|
2830
|
+
* @param addr EmberGpAddress * The address to search for
|
|
2831
|
+
* @returns uint8_t The index, or 0xFF for not found
|
|
2832
|
+
*/
|
|
2833
|
+
ezspGpProxyTableLookup(addr: EmberGpAddress): Promise<number>;
|
|
2834
|
+
/**
|
|
2835
|
+
* Removes the proxy table entry stored at the passed index.
|
|
2836
|
+
* @param proxyIndex The index of the requested proxy table entry.
|
|
2837
|
+
*/
|
|
2838
|
+
ezspGpProxyTableRemoveEntry(proxyIndex: number): Promise<void>;
|
|
2839
|
+
/**
|
|
2840
|
+
* Clear the entire proxy table
|
|
2841
|
+
*/
|
|
2842
|
+
ezspGpClearProxyTable(): Promise<void>;
|
|
2843
|
+
/**
|
|
2844
|
+
* Retrieves the sink table entry stored at the passed index.
|
|
2845
|
+
* @param sinkIndex uint8_t The index of the requested sink table entry.
|
|
2846
|
+
* @returns An SLStatus value indicating success or the reason for failure.
|
|
2847
|
+
* @returns EmberGpSinkTableEntry * An EmberGpSinkTableEntry struct containing a copy of the requested sink entry.
|
|
2848
|
+
*/
|
|
2849
|
+
ezspGpSinkTableGetEntry(sinkIndex: number): Promise<[SLStatus, entry: EmberGpSinkTableEntry]>;
|
|
2850
|
+
/**
|
|
2851
|
+
* Finds the index of the passed address in the gp table.
|
|
2852
|
+
* @param addr EmberGpAddress *The address to search for.
|
|
2853
|
+
* @returns uint8_t The index, or 0xFF for not found
|
|
2854
|
+
*/
|
|
2855
|
+
ezspGpSinkTableLookup(addr: EmberGpAddress): Promise<number>;
|
|
2856
|
+
/**
|
|
2857
|
+
* Retrieves the sink table entry stored at the passed index.
|
|
2858
|
+
* @param sinkIndex uint8_t The index of the requested sink table entry.
|
|
2859
|
+
* @param entry EmberGpSinkTableEntry * An EmberGpSinkTableEntry struct containing a copy of the sink entry to be updated.
|
|
2860
|
+
* @returns An SLStatus value indicating success or the reason for failure.
|
|
2861
|
+
*/
|
|
2862
|
+
ezspGpSinkTableSetEntry(sinkIndex: number, entry: EmberGpSinkTableEntry): Promise<SLStatus>;
|
|
2863
|
+
/**
|
|
2864
|
+
* Removes the sink table entry stored at the passed index.
|
|
2865
|
+
* @param uint8_t The index of the requested sink table entry.
|
|
2866
|
+
*/
|
|
2867
|
+
ezspGpSinkTableRemoveEntry(sinkIndex: number): Promise<void>;
|
|
2868
|
+
/**
|
|
2869
|
+
* Finds or allocates a sink entry
|
|
2870
|
+
* @param addr EmberGpAddress * An EmberGpAddress struct containing a copy of the gpd address to be found.
|
|
2871
|
+
* @returns uint8_t An index of found or allocated sink or 0xFF if failed.
|
|
2872
|
+
*/
|
|
2873
|
+
ezspGpSinkTableFindOrAllocateEntry(addr: EmberGpAddress): Promise<number>;
|
|
2874
|
+
/**
|
|
2875
|
+
* Clear the entire sink table
|
|
2876
|
+
*/
|
|
2877
|
+
ezspGpSinkTableClearAll(): Promise<void>;
|
|
2878
|
+
/**
|
|
2879
|
+
* Iniitializes Sink Table
|
|
2880
|
+
*/
|
|
2881
|
+
ezspGpSinkTableInit(): Promise<void>;
|
|
2882
|
+
/**
|
|
2883
|
+
* Sets security framecounter in the sink table
|
|
2884
|
+
* @param index uint8_t Index to the Sink table
|
|
2885
|
+
* @param sfc uint32_t Security Frame Counter
|
|
2886
|
+
*/
|
|
2887
|
+
ezspGpSinkTableSetSecurityFrameCounter(index: number, sfc: number): Promise<void>;
|
|
2888
|
+
/**
|
|
2889
|
+
* Puts the GPS in commissioning mode.
|
|
2890
|
+
* @param uint8_t commissioning options
|
|
2891
|
+
* @param uint16_t gpm address for security.
|
|
2892
|
+
* @param uint16_t gpm address for pairing.
|
|
2893
|
+
* @param uint8_t sink endpoint.
|
|
2894
|
+
* @returns An SLStatus value indicating success or the reason for failure.
|
|
2895
|
+
*/
|
|
2896
|
+
ezspGpSinkCommission(options: number, gpmAddrForSecurity: number, gpmAddrForPairing: number, sinkEndpoint: number): Promise<SLStatus>;
|
|
2897
|
+
/**
|
|
2898
|
+
* Clears all entries within the translation table.
|
|
2899
|
+
*/
|
|
2900
|
+
ezspGpTranslationTableClear(): Promise<void>;
|
|
2901
|
+
/**
|
|
2902
|
+
* Return number of active entries in sink table.
|
|
2903
|
+
* @returns uint8_t Number of active entries in sink table. 0 if error.
|
|
2904
|
+
*/
|
|
2905
|
+
ezspGpSinkTableGetNumberOfActiveEntries(): Promise<number>;
|
|
2906
|
+
/**
|
|
2907
|
+
* Gets the total number of tokens.
|
|
2908
|
+
* @returns uint32_t Total number of tokens.
|
|
2909
|
+
* - < v18: uint8_t
|
|
2910
|
+
*/
|
|
2911
|
+
ezspGetTokenCount(): Promise<number>;
|
|
2912
|
+
/**
|
|
2913
|
+
* Gets the token information for a single token at provided index
|
|
2914
|
+
* @param index uint8_t Index of the token in the token table for which information is needed.
|
|
2915
|
+
* @returns An SLStatus value indicating success or the reason for failure.
|
|
2916
|
+
* @returns EmberTokenInfo * Token information.
|
|
2917
|
+
*/
|
|
2918
|
+
ezspGetTokenInfo(index: number): Promise<[SLStatus, tokenInfo: EmberTokenInfo]>;
|
|
2919
|
+
/**
|
|
2920
|
+
* Gets the token data for a single token with provided key
|
|
2921
|
+
* @param token uint32_t Key of the token in the token table for which data is needed.
|
|
2922
|
+
* @param index uint32_t Index in case of the indexed token.
|
|
2923
|
+
* @returns An SLStatus value indicating success or the reason for failure.
|
|
2924
|
+
* @returns EmberTokenData * Token Data
|
|
2925
|
+
*/
|
|
2926
|
+
ezspGetTokenData(token: number, index: number): Promise<[SLStatus, tokenData: EmberTokenData]>;
|
|
2927
|
+
/**
|
|
2928
|
+
* Sets the token data for a single token with provided key
|
|
2929
|
+
* @param token uint32_t Key of the token in the token table for which data is to be set.
|
|
2930
|
+
* @param index uint32_t Index in case of the indexed token.
|
|
2931
|
+
* @param EmberTokenData * Token Data
|
|
2932
|
+
* @returns An SLStatus value indicating success or the reason for failure.
|
|
2933
|
+
*/
|
|
2934
|
+
ezspSetTokenData(token: number, index: number, tokenData: EmberTokenData): Promise<SLStatus>;
|
|
2935
|
+
/**
|
|
2936
|
+
* Reset the node by calling halReboot.
|
|
2937
|
+
*/
|
|
2938
|
+
ezspResetNode(): Promise<void>;
|
|
2939
|
+
/**
|
|
2940
|
+
* Run GP security test vectors.
|
|
2941
|
+
* @returns An SLStatus value indicating success or the reason for failure.
|
|
2942
|
+
*/
|
|
2943
|
+
ezspGpSecurityTestVectors(): Promise<SLStatus>;
|
|
2944
|
+
/**
|
|
2945
|
+
* Factory reset all configured zigbee tokens
|
|
2946
|
+
* @param excludeOutgoingFC Exclude network and APS outgoing frame counter tokens.
|
|
2947
|
+
* @param excludeBootCounter Exclude stack boot counter token.
|
|
2948
|
+
*/
|
|
2949
|
+
ezspTokenFactoryReset(excludeOutgoingFC: boolean, excludeBootCounter: boolean): Promise<void>;
|
|
2950
|
+
}
|
|
2951
|
+
//# sourceMappingURL=ezsp.d.ts.map
|