ZUNO_ADD_CHANNEL()

This function instructs Z-Uno to add one more channel during dynamic configuration. It's an deprecated macro. Use zunoAddChannel instead for Z-Uno2. This function can be called many times to add more channels. Channels are numbered from 1 to 32. Make sure to execute ZUNO_START_CONFIG before the first call of ZUNO_ADD_CHANNEL(). Z-Uno supports up to 32 channels. But you can lower this limit to save sketch memory using ZUNO_DYNAMIC_CHANNELS(). ZUNO_ADD_CHANNEL(type, sensor_type, size_precision_parameters) type channel type (defined in ZUNO_Definitions.h):
  1. ZUNO_SWITCH_BINARY_CHANNEL_NUMBER
  2. ZUNO_SWITCH_MULTILEVEL_CHANNEL_NUMBER
  3. ZUNO_SENSOR_BINARY_CHANNEL_NUMBER
  4. ZUNO_SENSOR_MULTILEVEL_CHANNEL_NUMBER
  5. ZUNO_METER_CHANNEL_NUMBER
  6. ZUNO_DOORLOCK_CHANNEL_NUMBER (not supported yet, for future use)
  7. ZUNO_FLOWSTOP_CHANNEL_NUMBER
  8. ZUNO_SIREN_CHANNEL_NUMBER
  9. ZUNO_BLINDS_CHANNEL_NUMBER
  10. ZUNO_THERMOSTAT_CHANNEL_NUMBER
  11. ZUNO_SWITCH_COLOR_CHANNEL_NUMBER
  12. ZUNO_END_OF_SUPPORTED_CC_NUM
sensor_type Sensor type. Applicable only for ZUNO_SENSOR_BINARY_CHANNEL_NUMBER, ZUNO_SENSOR_MULTILEVEL_CHANNEL_NUMBER and ZUNO_METER_CHANNEL_NUMBER. size_precision_parameters One byte defining value size and value precision. Applicable only for ZUNO_SENSOR_BINARY_CHANNEL_NUMBER, ZUNO_SENSOR_MULTILEVEL_CHANNEL_NUMBER and ZUNO_METER_CHANNEL_NUMBER. Check ZUNO_Definitions.h for more details.
Do not forget to enable all channel types you will use in your sketch with ZUNO_ENABLE(WITH_CC_...); ZUNO_DYNAMIC_CHANNELS(channelMaxNumber) channelMaxNumber Maximal number of dynamic channels that your sketch can add using ZUNO_ADD_CHANNEL(). In range of 1-32. Examples can be found in the description of ZUNO_START_CONFIG.