ZB WRITE CONFIGURATION

This command is supported in the library (module.c) with the private method zbWriteConfiguration. However, this is conveniently wrapped by easier to use functions, including
 * moduleResult_t setStartupOptions(uint8_t option)
 * moduleResult_t setZigbeeDeviceType(uint8_t deviceType)
 * moduleResult_t setCallbacks(uint8_t cb)
 * moduleResult_t setSecurityMode(uint8_t securityMode)
 * moduleResult_t setSecurityKey(uint8_t* key)
 * moduleResult_t setPollRate(uint16_t pollRate)
 * moduleResult_t setPanId(uint16_t panId)
 * moduleResult_t setChannelMask(uint32_t channelMask)

Startup Options
This command configures the Module to erase any previous configuration information. There are two bit field options for this, which may be used concurrently (see comments on setStartupOptions for more information)
 * STARTOPT_CLEAR_CONFIG – If this option is set, the Module will overwrite all the configuration parameters (except this one) with the “default” values that it is programmed with. This is used to erase the existing configuration and bring the Module into a known state.
 * STARTOPT_CLEAR_STATE – If this option is set, the Module will clear its previous network state (which would exist if the device had been operating on a network prior to the reset). If you want the device to join the same network as before then do not set this bit. However, it is usually recommended for devices to join any network on startup, in case the coordinator was switched or reset.

Zigbee Device Type
This command configures the Module to be either a Coordinator, Router, or End Device. While it does require a restart, this can be done at any time in your application if needed. For example, the Network Explorer allows you to change device types "on the fly".

Callbacks
This just configures how the API works. Normally set it to be true.

Set Security Mode
This configures whether security is used or not, and whether the key is preconfigured on each device or sent by the coordinator. See Zigbee Security for more information.

Set Security Key
This loads the sixteen byte security key into the Module. The same key must be used by all devices on the same network if security is used.

Set Poll Rate
Whereas a Zigbee Router is listening all the time for any incoming messages, a Zigbee End Device stays in a low power sleep state with its radio off. It periodically wakes up and polls its associated parent to check to see if there is any data destined for the End Device. The Poll Rate parameter sets how often the Zigbee End Device polls its parent. This parameter has no effect on Zigbee Coordinators or Routers. If this parameter is set to zero then the End Device will not poll its parent. This is useful for measuring Module Current Consumption.

Set PAN ID
Each Zigbee Network has a Personal Area Network Identifier (PANID). This identifies this network and is usually automatically assigned by the Zigbee Coordinator but sometimes may be manually set on each device using this method.

Set Channel Mask
There are fifteen Channels in the 2.4GHz spectrum. This command uses a channel mask to specify which channels the device will look for networks on.