Filter results by

Older Versions

Older API versions are available as a download. To view, extract the file and open the index.html file in a web browser.

artik_zigbee_device_level_control_switch Struct Reference

Structure for device level control switch, to storage the local endpoint information and functions can be invoked. More...

#include <zigbee/artik_zigbee.h>

Data Fields

artik_error(* identify_request )(artik_zigbee_endpoint_handle handle, const artik_zigbee_endpoint *endpoint, int duration)
 Send command "Identify". More...
 
artik_error(* identify_get_remaining_time )(artik_zigbee_endpoint_handle handle, const artik_zigbee_endpoint *endpoint, int *time)
 Send command "Identify Query", to get remote identify time. More...
 
artik_error(* onoff_command )(artik_zigbee_endpoint_handle handle, const artik_zigbee_endpoint *endpoint, artik_zigbee_onoff_status target_status)
 Send command to control remote on/off. More...
 
artik_error(* level_control_request )(artik_zigbee_endpoint_handle handle, const artik_zigbee_endpoint *endpoint, const artik_zigbee_level_control_command *command)
 Send commands about level control, to control remote level. More...
 
artik_error(* ezmode_commissioning_initiator_start )(artik_zigbee_endpoint_handle handle)
 Start ezmode commissioning on some endpoint as initiator refer to [Home Automation Public Application Profile] chapter 8 [Home Automation Commissioning] it includes following step: network steering, finding-and-binding this API will do everything inside automatically. More...
 
artik_error(* ezmode_commissioning_initiator_stop )(artik_zigbee_endpoint_handle handle)
 Stop ezmode commissioning on some endpoint as initiator refer to [Home Automation Public Application Profile] chapter 8 [Home Automation Commissioning] it stop commissioning procedure. More...
 

Detailed Description

Definition at line 747 of file artik_zigbee.h.

Field Documentation

artik_error(* artik_zigbee_device_level_control_switch::ezmode_commissioning_initiator_start) (artik_zigbee_endpoint_handle handle)
Parameters
[in]handleThe handle of endpoint that start do ezmode commissioning
Returns
Result of operation, S_OK on success, error code otherwise. The result will be delivered through callback function. Callback function is called for notifying the result. -Response type : ARTIK_ZIGBEE_RESPONSE_COMMISSIONING_STATUS -Response payload : pointer of enum zigbee_commissioning_state, which including: COMMISSIONING_NETWORK_STEERING_FORM COMMISSIONING_NETWORK_STEERING_SUCCESS COMMISSIONING_INITIATOR_SUCCESS COMMISSIONING_INITIATOR_FAILED COMMISSIONING_ERROR COMMISSIONING_ERR_IN_PROGRESS
Examples:
zigbee_test/artik_zigbee_test.c.

Definition at line 823 of file artik_zigbee.h.

artik_error(* artik_zigbee_device_level_control_switch::ezmode_commissioning_initiator_stop) (artik_zigbee_endpoint_handle handle)
Parameters
[in]handleThe handle of endpoint that stop do ezmode commissioning
Returns
Result of operation, S_OK on success, error code otherwise. The result will be delivered through callback function. Callback function is called for notifying the result. -Response type : ARTIK_ZIGBEE_RESPONSE_COMMISSIONING_STATUS -Response payload : pointer of enum zigbee_commissioning_state, which including: COMMISSIONING_INITIATOR_STOP COMMISSIONING_INITIATOR_FAILED COMMISSIONING_ERROR COMMISSIONING_ERR_IN_PROGRESS
Examples:
zigbee_test/artik_zigbee_test.c.

Definition at line 847 of file artik_zigbee.h.

artik_error(* artik_zigbee_device_level_control_switch::identify_get_remaining_time) (artik_zigbee_endpoint_handle handle, const artik_zigbee_endpoint *endpoint, int *time)
Parameters
[in]handleThe handle of each endpoint instance.
[in]endpointRemote endpoint instance pointer.
[out]timeRemaining seconds of identifying.
Returns
Result of operation, S_OK on success, error code otherwise.
Examples:
zigbee_test/artik_zigbee_test.c.

Definition at line 768 of file artik_zigbee.h.

artik_error(* artik_zigbee_device_level_control_switch::identify_request) (artik_zigbee_endpoint_handle handle, const artik_zigbee_endpoint *endpoint, int duration)
Parameters
[in]handleThe handle of each endpoint instance.
[in]endpointRemote endpoint instance pointer.
[in]durationIdentify duration in seconds.
Returns
Result of operation, S_OK on success, error code otherwise.

Definition at line 757 of file artik_zigbee.h.

artik_error(* artik_zigbee_device_level_control_switch::level_control_request) (artik_zigbee_endpoint_handle handle, const artik_zigbee_endpoint *endpoint, const artik_zigbee_level_control_command *command)
Parameters
[in]handleThe handle of each endpoint instance.
[in]endpointRemote endpoint instance pointer.
[in]commandLevel control command, please refer to "struct zigbee_level_control_command".
Returns
Result of operation, S_OK on success, error code otherwise.

Definition at line 795 of file artik_zigbee.h.

artik_error(* artik_zigbee_device_level_control_switch::onoff_command) (artik_zigbee_endpoint_handle handle, const artik_zigbee_endpoint *endpoint, artik_zigbee_onoff_status target_status)
Parameters
[in]handleThe handle of each endpoint instance.
[in]endpointRemote endpoint instance pointer.
[in]target_statusOn/off command, please refer to "enum zigbee_onoff_status".
Returns
Result of operation, S_OK on success, error code otherwise.
Examples:
zigbee_test/artik_zigbee_test.c.

Definition at line 782 of file artik_zigbee.h.


The documentation for this struct was generated from the following file:
Last updated on: