Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

zstack-constants

zigbeer170MIT0.2.0

Exports TI Z-Stack Constants of AF, SYS, ZDO, MAC, UTIL, SAPI, and DBG layers.

cc-znp, znp, ti, zstack, z-stack, zigbee

readme

zstack-constants

Exports TI Z-Stack Constants of AF, SYS, ZDO, MAC, UTIL, SAPI, and DBG layers.

Travis branch npm npm


Documentation

Please visit the Wiki.

Overview

zstack-constants exports all constants used in TI's zigbee z-stack.

Installation

$ npm install zstack-constants --save

Usage

Here is an example. See Usage on the Wiki for details.

// Access constants in adcResolution and gpioOperation namespaces under SYS layer
console.log(ZSC.SYS.adcResolution.BIT_10);  // 1
console.log(ZSC.SYS.gpioOperation.TOGGLE);  // 4

License

Licensed under MIT.