Tizen IoT Extension SDK 1.0
1.0.1
|
The Master API provides functions to connect to SmartThings Cloud. More...
Defines | |
#define | SMARTTHINGS_SSID_LEN_MAX 32 |
Definition for the max length of SSID for access point. 1. | |
#define | SMARTTHINGS_CLOUD_INFO_LEN_MAX 128 |
Definition for the max length of cloud information. 1. | |
Typedefs | |
typedef struct smartthings_s * | smartthings_h |
The SmartThings handle. 1. | |
typedef struct smartthings_ap_info_s * | smartthings_ap_info_h |
The access point information handle. 1. | |
typedef struct smartthings_device_prov_info_s * | smartthings_device_prov_info_h |
The device provisioning information handle. 1. | |
typedef struct smartthings_cloud_info_s * | smartthings_cloud_info_h |
The cloud information handle for cloud sign-up. 1. | |
typedef struct smartthings_ap_list_s * | smartthings_ap_list_h |
The access point list handle. 1. | |
typedef void(* | smartthings_connection_status_cb )(smartthings_h handle, smartthings_connection_status_e status, void *user_data) |
Callback for status of connection to SmartThings Thing agent. 1. | |
typedef void(* | smartthings_status_changed_cb )(smartthings_h handle, smartthings_status_e status, void *user_data) |
Callback for SmartThings Thing status. 1. | |
typedef void(* | smartthings_user_confirm_cb )(smartthings_h handle, void *user_data) |
Callback for getting user's input regarding mutual verification. 1. | |
typedef void(* | smartthings_reset_confirm_cb )(smartthings_h handle, void *user_data) |
Callback for getting user's opinion regarding device reset. 1. | |
typedef void(* | smartthings_reset_result_cb )(smartthings_h handle, bool result, void *user_data) |
Callback for result of reset operation. 1. | |
typedef void(* | smartthings_pin_generated_cb )(smartthings_h handle, const char *pin, size_t size, void *user_data) |
Callback for carrying the randomly generated PIN information. 1. | |
typedef void(* | smartthings_pin_display_close_cb )(smartthings_h handle, void *user_data) |
Callback for informing the application to close the PIN display. 1. | |
typedef void(* | smartthings_wifi_ap_provisioning_cb )(smartthings_h handle, smartthings_ap_info_h ap_info_h, void *user_data) |
Callback for informing Wi-Fi AP information to connect. 1. | |
typedef void(* | smartthings_device_provisioning_cb )(smartthings_h handle, smartthings_device_prov_info_h dev_prov_h, void *user_data) |
Callback for informing device provisioning information. 1. | |
typedef void(* | smartthings_scan_ap_cb )(smartthings_h handle, int req_id, void *user_data) |
Callback for informing the scan AP list request. 1. | |
typedef void(* | smartthings_stop_soft_ap_cb )(smartthings_h handle, void *user_data) |
Callback for informing the stop soft AP request. 1. | |
Enumerations | |
enum | smartthings_error_e { SMARTTHINGS_ERROR_NONE = TIZEN_ERROR_NONE, SMARTTHINGS_ERROR_INVALID_PARAMETER = TIZEN_ERROR_INVALID_PARAMETER, SMARTTHINGS_ERROR_OUT_OF_MEMORY = TIZEN_ERROR_OUT_OF_MEMORY, SMARTTHINGS_ERROR_PERMISSION_DENIED = TIZEN_ERROR_PERMISSION_DENIED, SMARTTHINGS_ERROR_NO_DATA = TIZEN_ERROR_NO_DATA, SMARTTHINGS_ERROR_NOT_SUPPORTED = TIZEN_ERROR_NOT_SUPPORTED, SMARTTHINGS_ERROR_OPERATION_FAILED = TIZEN_ERROR_UNKNOWN - 1, SMARTTHINGS_ERROR_SERVICE_UNAVAILABLE = TIZEN_ERROR_UNKNOWN -2 } |
Enumeration for the SmartThings error. 1. More... | |
enum | smartthings_status_e { SMARTTHINGS_STATUS_NOT_READY = -1, SMARTTHINGS_STATUS_INIT = 0, SMARTTHINGS_STATUS_ES_STARTED, SMARTTHINGS_STATUS_ES_DONE, SMARTTHINGS_STATUS_ES_FAILED_ON_OWNERSHIP_TRANSFER, SMARTTHINGS_STATUS_CONNECTING_TO_AP, SMARTTHINGS_STATUS_CONNECTED_TO_AP, SMARTTHINGS_STATUS_CONNECTING_TO_AP_FAILED, SMARTTHINGS_STATUS_REGISTERING_TO_CLOUD, SMARTTHINGS_STATUS_REGISTERED_TO_CLOUD, SMARTTHINGS_STATUS_REGISTERING_FAILED_ON_SIGN_IN, SMARTTHINGS_STATUS_REGISTERING_FAILED_ON_PUB_RES } |
Enumeration for SmartThings status. 1. More... | |
enum | smartthings_connection_status_e { SMARTTHINGS_CONNECTION_STATUS_CONNECTED = 0, SMARTTHINGS_CONNECTION_STATUS_DISCONNECTED, SMARTTHINGS_CONNECTION_STATUS_REJECTED } |
Enumeration for RPC connection status. 1. More... | |
enum | smartthings_wifi_mode_e { SMARTTHINGS_WIFI_MODE_11A = (1 << 0), SMARTTHINGS_WIFI_MODE_11B = (1 << 1), SMARTTHINGS_WIFI_MODE_11G = (1 << 2), SMARTTHINGS_WIFI_MODE_11N = (1 << 3), SMARTTHINGS_WIFI_MODE_11AC = (1 << 4) } |
The Wi-Fi mode. 1. More... | |
enum | smartthings_wifi_freq_e { SMARTTHINGS_WIFI_FREQ_24G = (1 << 0), SMARTTHINGS_WIFI_FREQ_5G = (1 << 1) } |
The Wi-Fi frequency band. 1. More... | |
enum | smartthings_wifi_authtype_e { SMARTTHINGS_WIFI_AUTHTYPE_NONE = 0, SMARTTHINGS_WIFI_AUTHTYPE_WEP, SMARTTHINGS_WIFI_AUTHTYPE_WPA_PSK, SMARTTHINGS_WIFI_AUTHTYPE_WPA2_PSK } |
The Wi-Fi authentication type of access point. 1. More... | |
enum | smartthings_wifi_enctype_e { SMARTTHINGS_WIFI_ENCTYPE_NONE = 0, SMARTTHINGS_WIFI_ENCTYPE_WEP_64, SMARTTHINGS_WIFI_ENCTYPE_WEP_128, SMARTTHINGS_WIFI_ENCTYPE_TKIP, SMARTTHINGS_WIFI_ENCTYPE_AES, SMARTTHINGS_WIFI_ENCTYPE_TKIP_AES } |
The Wi-Fi encryption type of access point. 1. More... | |
Functions | |
int | smartthings_initialize (smartthings_h *handle, smartthings_connection_status_cb connection_status_cb, void *user_data) |
Creates a handle and connects to agent. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master http://tizen.org/privilege/appmanager.launch http://tizen.org/privilege/datasharing. | |
int | smartthings_deinitialize (smartthings_h handle) |
Deinitializes a handle and disconnects from the agent. 1. | |
int | smartthings_start (smartthings_h handle) |
Starts SmartThings Thing operation. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master http://tizen.org/privilege/appmanager.launch http://tizen.org/privilege/datasharing. | |
int | smartthings_stop (smartthings_h handle) |
Stops SmartThings Thing operation. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master http://tizen.org/privilege/appmanager.launch http://tizen.org/privilege/datasharing. | |
int | smartthings_set_status_changed_cb (smartthings_h handle, smartthings_status_changed_cb status_cb, void *user_data) |
Sets thing status changed callback. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master http://tizen.org/privilege/appmanager.launch http://tizen.org/privilege/datasharing. | |
int | smartthings_unset_status_changed_cb (smartthings_h handle) |
Unsets thing status changed callback. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master http://tizen.org/privilege/appmanager.launch http://tizen.org/privilege/datasharing. | |
int | smartthings_set_certificate_file (smartthings_h handle, const char *certificate, const char *private_key) |
Sets test certificate files. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master http://tizen.org/privilege/appmanager.launch http://tizen.org/privilege/datasharing. | |
int | smartthings_set_device_property (smartthings_h handle, const char *dev_name, int wifi_mode, int wifi_freq) |
Sets device property for Easy-setup. 1. | |
int | smartthings_get_device_id (smartthings_h handle, char **device_id) |
Gets a device ID. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master http://tizen.org/privilege/appmanager.launch http://tizen.org/privilege/datasharing. | |
int | smartthings_get_easysetup_status (smartthings_h handle, bool *is_completed) |
Gets a Easy-setup status. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master http://tizen.org/privilege/appmanager.launch http://tizen.org/privilege/datasharing. | |
int | smartthings_start_easysetup (smartthings_h handle) |
Starts Easy-setup mode. | |
int | smartthings_stop_easysetup (smartthings_h handle) |
Stops Easy-setup mode. | |
int | smartthings_set_user_confirm_cb (smartthings_h handle, smartthings_user_confirm_cb confirm_cb, void *user_data) |
Sets callback for getting user confirmation for mutual verification based just work ownership transfer. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master http://tizen.org/privilege/appmanager.launch http://tizen.org/privilege/datasharing. | |
int | smartthings_unset_user_confirm_cb (smartthings_h handle) |
Unsets user confirmation callback. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master http://tizen.org/privilege/appmanager.launch http://tizen.org/privilege/datasharing. | |
int | smartthings_set_reset_confirm_cb (smartthings_h handle, smartthings_reset_confirm_cb confirm_cb, void *user_data) |
Sets reset confirmation callback. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master http://tizen.org/privilege/appmanager.launch http://tizen.org/privilege/datasharing. | |
int | smartthings_unset_reset_confirm_cb (smartthings_h handle) |
Unsets reset confirmation callback. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master http://tizen.org/privilege/appmanager.launch http://tizen.org/privilege/datasharing. | |
int | smartthings_set_reset_result_cb (smartthings_h handle, smartthings_reset_result_cb reset_result_cb, void *user_data) |
Sets reset result callback. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master http://tizen.org/privilege/appmanager.launch http://tizen.org/privilege/datasharing. | |
int | smartthings_unset_reset_result_cb (smartthings_h handle) |
Unsets reset result callback. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master http://tizen.org/privilege/appmanager.launch http://tizen.org/privilege/datasharing. | |
int | smartthings_set_pin_cb (smartthings_h handle, smartthings_pin_generated_cb generated_cb, smartthings_pin_display_close_cb close_cb, void *user_data) |
Sets callback for getting randomly generated PIN for the PIN-based ownership transfer request. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master http://tizen.org/privilege/appmanager.launch http://tizen.org/privilege/datasharing. | |
int | smartthings_unset_pin_cb (smartthings_h handle) |
Unsets PIN callback. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master http://tizen.org/privilege/appmanager.launch http://tizen.org/privilege/datasharing. | |
int | smartthings_set_wifi_ap_provisioning_cb (smartthings_h handle, smartthings_wifi_ap_provisioning_cb wifi_ap_cb, void *user_data) |
Sets callback for getting Wi-Fi AP information during Easy-setup. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master http://tizen.org/privilege/appmanager.launch http://tizen.org/privilege/datasharing. | |
int | smartthings_unset_wifi_ap_provisioning_cb (smartthings_h handle) |
Unsets callback for getting Wi-Fi AP information during Easy-setup. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master http://tizen.org/privilege/appmanager.launch http://tizen.org/privilege/datasharing. | |
int | smartthings_set_device_provisioning_cb (smartthings_h handle, smartthings_device_provisioning_cb dev_prov_cb, void *user_data) |
Sets callback for getting device provisioning information. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master http://tizen.org/privilege/appmanager.launch http://tizen.org/privilege/datasharing. | |
int | smartthings_unset_device_provisioning_cb (smartthings_h handle) |
Unsets callback for getting device provisioning information. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master http://tizen.org/privilege/appmanager.launch http://tizen.org/privilege/datasharing. | |
int | smartthings_set_scan_ap_cb (smartthings_h handle, smartthings_scan_ap_cb scan_ap_cb, void *user_data) |
Sets callback for informing the scan AP list request. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master http://tizen.org/privilege/appmanager.launch http://tizen.org/privilege/datasharing. | |
int | smartthings_unset_scan_ap_cb (smartthings_h handle) |
Unsets callback for informing the scan AP list request. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master http://tizen.org/privilege/appmanager.launch http://tizen.org/privilege/datasharing. | |
int | smartthings_set_stop_soft_ap_cb (smartthings_h handle, smartthings_stop_soft_ap_cb stop_soft_ap_cb, void *user_data) |
Sets callback for informing the stop soft AP request. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master http://tizen.org/privilege/appmanager.launch http://tizen.org/privilege/datasharing. | |
int | smartthings_unset_stop_soft_ap_cb (smartthings_h handle) |
Unsets callback for informing the stop soft AP request. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master http://tizen.org/privilege/appmanager.launch http://tizen.org/privilege/datasharing. | |
int | smartthings_send_user_confirm (smartthings_h handle, bool confirm) |
Sends a user confirmation for MUTUAL VERIFICATION BASED JUST WORK Ownership transfer. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master http://tizen.org/privilege/appmanager.launch http://tizen.org/privilege/datasharing http://tizen.org/privilege/internet. | |
int | smartthings_send_reset_confirm (smartthings_h handle, bool confirm) |
Sends a reset confirmation. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master http://tizen.org/privilege/appmanager.launch http://tizen.org/privilege/datasharing http://tizen.org/privilege/internet. | |
int | smartthings_reset (smartthings_h handle) |
Sends a reset command for resetting the device's Cloud signup and Easy-setup. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master http://tizen.org/privilege/appmanager.launch http://tizen.org/privilege/datasharing http://tizen.org/privilege/internet. | |
int | smartthings_apinfo_get_ssid (smartthings_ap_info_h ap_info_h, char **ssid) |
Gets SSID of access point. 1. | |
int | smartthings_apinfo_get_password (smartthings_ap_info_h ap_info_h, char **pwd) |
Gets password of access point. 1. | |
int | smartthings_apinfo_get_authtype (smartthings_ap_info_h ap_info_h, smartthings_wifi_authtype_e *authtype) |
Gets authentification type of access point. 1. | |
int | smartthings_apinfo_get_enctype (smartthings_ap_info_h ap_info_h, smartthings_wifi_enctype_e *enctype) |
Gets encryption type of access point. 1. | |
int | smartthings_apinfo_get_channel (smartthings_ap_info_h ap_info_h, int *channel) |
Gets channel information of access point. 1. | |
int | smartthings_devinfo_get_language (smartthings_device_prov_info_h dev_prov_h, char **language) |
Gets language of device provisioing information. 1. | |
int | smartthings_devinfo_get_country (smartthings_device_prov_info_h dev_prov_h, char **country) |
Gets country of device provisioing information. 1. | |
int | smartthings_devinfo_get_datetime (smartthings_device_prov_info_h dev_prov_h, char **datetime) |
Gets datetime of device provisioing information. 1. | |
int | smartthings_aplist_create (smartthings_ap_list_h *ap_list_h, unsigned int count) |
Creates a SmartThings AP list handle. 1. | |
int | smartthings_aplist_destroy (smartthings_ap_list_h ap_list_h) |
Destroys a SmartThings AP list handle. 1. | |
int | smartthings_aplist_set_ssid (smartthings_ap_list_h ap_list_h, int idx, const char *ssid) |
Sets SSID at the specific index of AP list handle. 1. | |
int | smartthings_aplist_set_bssid (smartthings_ap_list_h ap_list_h, int idx, const char *bssid) |
Sets BSSID at the specific index of AP list handle. 1. | |
int | smartthings_aplist_set_authtype (smartthings_ap_list_h ap_list_h, int idx, smartthings_wifi_authtype_e authtype) |
Sets authentification type at the specific index of AP list handle. 1. | |
int | smartthings_aplist_set_enctype (smartthings_ap_list_h ap_list_h, int idx, smartthings_wifi_enctype_e enctype) |
Sets encryption type at the specific index of AP list handle. 1. | |
int | smartthings_aplist_set_channel (smartthings_ap_list_h ap_list_h, int idx, int channel) |
Sets frequency channel at the specific index of AP list handle. 1. | |
int | smartthings_aplist_set_signal_level (smartthings_ap_list_h ap_list_h, int idx, int signal_level) |
Sets signal level at the specific index of AP list handle. 1. | |
int | smartthings_aplist_set_max_rate (smartthings_ap_list_h ap_list_h, int idx, int max_rate) |
Sets max speed rate at the specific index of AP list handle. 1. | |
int | smartthings_send_ap_list (smartthings_h handle, smartthings_ap_list_h ap_list_h, int req_id) |
Sends the scanned AP list. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master http://tizen.org/privilege/appmanager.launch http://tizen.org/privilege/datasharing http://tizen.org/privilege/internet. | |
int | smartthings_cloudinfo_create (smartthings_cloud_info_h *cloud_info_h) |
Creates a SmartThings cloud information handle. 1. | |
int | smartthings_cloudinfo_destroy (smartthings_cloud_info_h cloud_info_h) |
Destroys a SmartThings cloud information handle. 1. | |
int | smartthings_cloudinfo_set_region (smartthings_cloud_info_h cloud_info_h, const char *region) |
Sets region of cloud information. 1. | |
int | smartthings_cloudinfo_set_auth_provider (smartthings_cloud_info_h cloud_info_h, const char *auth_provider) |
Sets authentification provider of cloud information. 1. | |
int | smartthings_cloudinfo_set_access_token (smartthings_cloud_info_h cloud_info_h, const char *access_token) |
Sets access token of cloud information. 1. | |
int | smartthings_cloudinfo_set_refresh_token (smartthings_cloud_info_h cloud_info_h, const char *refresh_token) |
Sets refresh token of cloud information. 1. | |
int | smartthings_cloudinfo_set_user_id (smartthings_cloud_info_h cloud_info_h, const char *user_id) |
Sets user ID of cloud information. 1. | |
int | smartthings_cloudinfo_set_client_id (smartthings_cloud_info_h cloud_info_h, const char *client_id) |
Sets client ID of cloud information. 1. | |
int | smartthings_sign_up_cloud (smartthings_h handle, smartthings_cloud_info_h cloud_info_h) |
Requests to sign up to cloud. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master http://tizen.org/privilege/appmanager.launch http://tizen.org/privilege/datasharing http://tizen.org/privilege/internet. | |
int | smartthings_set_preconfigured_pin (smartthings_h handle, const char *pin) |
Sets preconfigured PIN. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master http://tizen.org/privilege/appmanager.launch http://tizen.org/privilege/datasharing. | |
int | smartthings_set_mot_status (smartthings_h handle, bool enable) |
Sets MOT(multiple ownership transfer) status. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master http://tizen.org/privilege/appmanager.launch http://tizen.org/privilege/datasharing. |
The Master API provides functions to connect to SmartThings Cloud.
#include <smartthings.h>
The SmartThings Thing Master API provides the following functionalities:
typedef void(* smartthings_connection_status_cb)(smartthings_h handle, smartthings_connection_status_e status, void *user_data) |
Callback for status of connection to SmartThings Thing agent. 1.
[in] | result | The result of connection operation |
[in] | handle | The SmartThings handle |
[in] | status | The status of connection |
[in] | user_data | The user data passed from the callback registration function |
typedef void(* smartthings_device_provisioning_cb)(smartthings_h handle, smartthings_device_prov_info_h dev_prov_h, void *user_data) |
Callback for informing device provisioning information. 1.
[in] | handle | The SmartThings handle |
[in] | dev_prov_h | The device provisioning information handle |
[in] | user_data | The user data passed from the callback registration function |
typedef void(* smartthings_pin_display_close_cb)(smartthings_h handle, void *user_data) |
Callback for informing the application to close the PIN display. 1.
[in] | handle | The SmartThings handle |
[in] | user_data | The user data passed from the callback registration function |
typedef void(* smartthings_pin_generated_cb)(smartthings_h handle, const char *pin, size_t size, void *user_data) |
Callback for carrying the randomly generated PIN information. 1.
[in] | handle | The SmartThings handle |
[in] | pin | The PIN data in string format |
[in] | size | The PIN length of pin |
[in] | user_data | The user data passed from the callback registration function |
typedef void(* smartthings_reset_confirm_cb)(smartthings_h handle, void *user_data) |
Callback for getting user's opinion regarding device reset. 1.
[in] | handle | The SmartThings handle |
[in] | user_data | The user data passed from the callback registration function |
typedef void(* smartthings_reset_result_cb)(smartthings_h handle, bool result, void *user_data) |
Callback for result of reset operation. 1.
[in] | handle | The SmartThings handle |
[in] | result | The result of reset |
[in] | user_data | The user data passed from the callback registration function |
typedef void(* smartthings_scan_ap_cb)(smartthings_h handle, int req_id, void *user_data) |
Callback for informing the scan AP list request. 1.
[in] | handle | The SmartThings handle |
[in] | req_id | The request ID |
[in] | user_data | The user data passed from the callback registration function |
typedef void(* smartthings_status_changed_cb)(smartthings_h handle, smartthings_status_e status, void *user_data) |
Callback for SmartThings Thing status. 1.
[in] | handle | The SmartThings handle |
[in] | status | The status of SmartThings |
[in] | user_data | The user data passed from the callback registration function |
typedef void(* smartthings_stop_soft_ap_cb)(smartthings_h handle, void *user_data) |
Callback for informing the stop soft AP request. 1.
[in] | handle | The SmartThings handle |
[in] | user_data | The user data passed from the callback registration function |
typedef void(* smartthings_user_confirm_cb)(smartthings_h handle, void *user_data) |
Callback for getting user's input regarding mutual verification. 1.
[in] | handle | The SmartThings handle |
[in] | user_data | The user data passed from the callback registration function |
typedef void(* smartthings_wifi_ap_provisioning_cb)(smartthings_h handle, smartthings_ap_info_h ap_info_h, void *user_data) |
Callback for informing Wi-Fi AP information to connect. 1.
[in] | handle | The SmartThings handle |
[in] | ap_info_h | The AP information handle |
[in] | user_data | The user data passed from the callback registration function |
enum smartthings_error_e |
Enumeration for the SmartThings error. 1.
enum smartthings_status_e |
Enumeration for SmartThings status. 1.
int smartthings_apinfo_get_authtype | ( | smartthings_ap_info_h | ap_info_h, |
smartthings_wifi_authtype_e * | authtype | ||
) |
Gets authentification type of access point. 1.
[in] | ap_info_h | The SmartThings AP information handle |
[out] | authtype | The authentification type |
0
on success, otherwise a negative error value SMARTTHINGS_ERROR_NONE | Successful |
SMARTTHINGS_ERROR_INVALID_PARAMETER | Invalid parameter |
SMARTTHINGS_ERROR_OPERATION_FAILED | Operation failed |
int smartthings_apinfo_get_channel | ( | smartthings_ap_info_h | ap_info_h, |
int * | channel | ||
) |
Gets channel information of access point. 1.
[in] | ap_info_h | The SmartThings AP information handle |
[out] | channel | The frequency channel |
0
on success, otherwise a negative error value SMARTTHINGS_ERROR_NONE | Successful |
SMARTTHINGS_ERROR_INVALID_PARAMETER | Invalid parameter |
SMARTTHINGS_ERROR_OPERATION_FAILED | Operation failed |
int smartthings_apinfo_get_enctype | ( | smartthings_ap_info_h | ap_info_h, |
smartthings_wifi_enctype_e * | enctype | ||
) |
Gets encryption type of access point. 1.
[in] | ap_info_h | The SmartThings AP information handle |
[out] | enctype | The encryption type |
0
on success, otherwise a negative error value SMARTTHINGS_ERROR_NONE | Successful |
SMARTTHINGS_ERROR_INVALID_PARAMETER | Invalid parameter |
SMARTTHINGS_ERROR_OPERATION_FAILED | Operation failed |
int smartthings_apinfo_get_password | ( | smartthings_ap_info_h | ap_info_h, |
char ** | pwd | ||
) |
Gets password of access point. 1.
[in] | ap_info_h | The SmartThings AP information handle |
[out] | pwd | The password |
0
on success, otherwise a negative error value SMARTTHINGS_ERROR_NONE | Successful |
SMARTTHINGS_ERROR_INVALID_PARAMETER | Invalid parameter |
SMARTTHINGS_ERROR_OPERATION_FAILED | Operation failed |
int smartthings_apinfo_get_ssid | ( | smartthings_ap_info_h | ap_info_h, |
char ** | ssid | ||
) |
Gets SSID of access point. 1.
[in] | ap_info_h | The SmartThings AP information handle |
[out] | ssid | The SSID name |
0
on success, otherwise a negative error value SMARTTHINGS_ERROR_NONE | Successful |
SMARTTHINGS_ERROR_INVALID_PARAMETER | Invalid parameter |
SMARTTHINGS_ERROR_OPERATION_FAILED | Operation failed |
int smartthings_aplist_create | ( | smartthings_ap_list_h * | ap_list_h, |
unsigned int | count | ||
) |
Creates a SmartThings AP list handle. 1.
[out] | ap_list_h | The SmartThings AP list handle to be newly created on success |
[in] | count | The count of AP |
0
on success, otherwise a negative error value SMARTTHINGS_ERROR_NONE | Successful |
SMARTTHINGS_ERROR_INVALID_PARAMETER | Invalid parameter |
SMARTTHINGS_ERROR_OUT_OF_MEMORY | Out of memory |
int smartthings_aplist_destroy | ( | smartthings_ap_list_h | ap_list_h | ) |
Destroys a SmartThings AP list handle. 1.
[in] | ap_list_h | The SmartThings AP list handle |
0
on success, otherwise a negative error value SMARTTHINGS_ERROR_NONE | Successful |
SMARTTHINGS_ERROR_INVALID_PARAMETER | Invalid parameter |
int smartthings_aplist_set_authtype | ( | smartthings_ap_list_h | ap_list_h, |
int | idx, | ||
smartthings_wifi_authtype_e | authtype | ||
) |
Sets authentification type at the specific index of AP list handle. 1.
[in] | ap_list_h | The SmartThings AP list handle |
[in] | idx | The index |
[in] | authtype | The authentification type of AP |
0
on success, otherwise a negative error value SMARTTHINGS_ERROR_NONE | Successful |
SMARTTHINGS_ERROR_INVALID_PARAMETER | Invalid parameter |
int smartthings_aplist_set_bssid | ( | smartthings_ap_list_h | ap_list_h, |
int | idx, | ||
const char * | bssid | ||
) |
Sets BSSID at the specific index of AP list handle. 1.
[in] | ap_list_h | The SmartThings AP list handle |
[in] | idx | The index |
[in] | bssid | The BSSID of AP |
0
on success, otherwise a negative error value SMARTTHINGS_ERROR_NONE | Successful |
SMARTTHINGS_ERROR_INVALID_PARAMETER | Invalid parameter |
int smartthings_aplist_set_channel | ( | smartthings_ap_list_h | ap_list_h, |
int | idx, | ||
int | channel | ||
) |
Sets frequency channel at the specific index of AP list handle. 1.
[in] | ap_list_h | The SmartThings AP list handle |
[in] | idx | The index |
[in] | channel | The frequency channel of AP |
0
on success, otherwise a negative error value SMARTTHINGS_ERROR_NONE | Successful |
SMARTTHINGS_ERROR_INVALID_PARAMETER | Invalid parameter |
int smartthings_aplist_set_enctype | ( | smartthings_ap_list_h | ap_list_h, |
int | idx, | ||
smartthings_wifi_enctype_e | enctype | ||
) |
Sets encryption type at the specific index of AP list handle. 1.
[in] | ap_list_h | The SmartThings AP list handle |
[in] | idx | The index |
[in] | enctype | The encryption type of AP |
0
on success, otherwise a negative error value SMARTTHINGS_ERROR_NONE | Successful |
SMARTTHINGS_ERROR_INVALID_PARAMETER | Invalid parameter |
int smartthings_aplist_set_max_rate | ( | smartthings_ap_list_h | ap_list_h, |
int | idx, | ||
int | max_rate | ||
) |
Sets max speed rate at the specific index of AP list handle. 1.
[in] | ap_list_h | The SmartThings AP list handle |
[in] | idx | The index |
[in] | max_rate | The max speed rate of AP |
0
on success, otherwise a negative error value SMARTTHINGS_ERROR_NONE | Successful |
SMARTTHINGS_ERROR_INVALID_PARAMETER | Invalid parameter |
int smartthings_aplist_set_signal_level | ( | smartthings_ap_list_h | ap_list_h, |
int | idx, | ||
int | signal_level | ||
) |
Sets signal level at the specific index of AP list handle. 1.
[in] | ap_list_h | The SmartThings AP list handle |
[in] | idx | The index |
[in] | signal_level | The signal level of AP |
0
on success, otherwise a negative error value SMARTTHINGS_ERROR_NONE | Successful |
SMARTTHINGS_ERROR_INVALID_PARAMETER | Invalid parameter |
int smartthings_aplist_set_ssid | ( | smartthings_ap_list_h | ap_list_h, |
int | idx, | ||
const char * | ssid | ||
) |
Sets SSID at the specific index of AP list handle. 1.
[in] | ap_list_h | The SmartThings AP list handle |
[in] | idx | The index |
[in] | ssid | The SSID of AP |
0
on success, otherwise a negative error value SMARTTHINGS_ERROR_NONE | Successful |
SMARTTHINGS_ERROR_INVALID_PARAMETER | Invalid parameter |
int smartthings_cloudinfo_create | ( | smartthings_cloud_info_h * | cloud_info_h | ) |
Creates a SmartThings cloud information handle. 1.
[out] | cloud_info_h | The SmartThings cloud information handle to be newly created on success |
0
on success, otherwise a negative error value SMARTTHINGS_ERROR_NONE | Successful |
SMARTTHINGS_ERROR_INVALID_PARAMETER | Invalid parameter |
SMARTTHINGS_ERROR_OUT_OF_MEMORY | Out of memory |
int smartthings_cloudinfo_destroy | ( | smartthings_cloud_info_h | cloud_info_h | ) |
Destroys a SmartThings cloud information handle. 1.
[in] | cloud_info_h | The SmartThings cloud information handle |
0
on success, otherwise a negative error value SMARTTHINGS_ERROR_NONE | Successful |
SMARTTHINGS_ERROR_INVALID_PARAMETER | Invalid parameter |
int smartthings_cloudinfo_set_access_token | ( | smartthings_cloud_info_h | cloud_info_h, |
const char * | access_token | ||
) |
Sets access token of cloud information. 1.
[in] | cloud_info_h | The SmartThings cloud information handle |
[in] | access_token | The access token |
0
on success, otherwise a negative error value SMARTTHINGS_ERROR_NONE | Successful |
SMARTTHINGS_ERROR_INVALID_PARAMETER | Invalid parameter |
int smartthings_cloudinfo_set_auth_provider | ( | smartthings_cloud_info_h | cloud_info_h, |
const char * | auth_provider | ||
) |
Sets authentification provider of cloud information. 1.
[in] | cloud_info_h | The SmartThings cloud information handle |
[in] | auth_provider | The authentification provider |
0
on success, otherwise a negative error value SMARTTHINGS_ERROR_NONE | Successful |
SMARTTHINGS_ERROR_INVALID_PARAMETER | Invalid parameter |
int smartthings_cloudinfo_set_client_id | ( | smartthings_cloud_info_h | cloud_info_h, |
const char * | client_id | ||
) |
Sets client ID of cloud information. 1.
[in] | cloud_info_h | The SmartThings cloud information handle |
[in] | client_id | The client ID |
0
on success, otherwise a negative error value SMARTTHINGS_ERROR_NONE | Successful |
SMARTTHINGS_ERROR_INVALID_PARAMETER | Invalid parameter |
int smartthings_cloudinfo_set_refresh_token | ( | smartthings_cloud_info_h | cloud_info_h, |
const char * | refresh_token | ||
) |
Sets refresh token of cloud information. 1.
[in] | cloud_info_h | The SmartThings cloud information handle |
[in] | refresh_token | The refresh token |
0
on success, otherwise a negative error value SMARTTHINGS_ERROR_NONE | Successful |
SMARTTHINGS_ERROR_INVALID_PARAMETER | Invalid parameter |
int smartthings_cloudinfo_set_region | ( | smartthings_cloud_info_h | cloud_info_h, |
const char * | region | ||
) |
Sets region of cloud information. 1.
[in] | cloud_info_h | The SmartThings cloud information handle |
[in] | region | The region name |
0
on success, otherwise a negative error value SMARTTHINGS_ERROR_NONE | Successful |
SMARTTHINGS_ERROR_INVALID_PARAMETER | Invalid parameter |
int smartthings_cloudinfo_set_user_id | ( | smartthings_cloud_info_h | cloud_info_h, |
const char * | user_id | ||
) |
Sets user ID of cloud information. 1.
[in] | cloud_info_h | The SmartThings cloud information handle |
[in] | user_id | The user ID |
0
on success, otherwise a negative error value SMARTTHINGS_ERROR_NONE | Successful |
SMARTTHINGS_ERROR_INVALID_PARAMETER | Invalid parameter |
int smartthings_deinitialize | ( | smartthings_h | handle | ) |
Deinitializes a handle and disconnects from the agent. 1.
[in] | handle | The SmartThings handle |
0
on success, otherwise a negative error value SMARTTHINGS_ERROR_NONE | Successful |
SMARTTHINGS_ERROR_INVALID_PARAMETER | Invalid parameter |
SMARTTHINGS_ERROR_OPERATION_FAILED | Operation failed |
int smartthings_devinfo_get_country | ( | smartthings_device_prov_info_h | dev_prov_h, |
char ** | country | ||
) |
Gets country of device provisioing information. 1.
[in] | dev_prov_h | The SmartThings device provisioning information handle |
[out] | country | The ISO Country Code (ISO 3166-1 Alpha-2) |
0
on success, otherwise a negative error value SMARTTHINGS_ERROR_NONE | Successful |
SMARTTHINGS_ERROR_INVALID_PARAMETER | Invalid parameter |
SMARTTHINGS_ERROR_OPERATION_FAILED | Operation failed |
int smartthings_devinfo_get_datetime | ( | smartthings_device_prov_info_h | dev_prov_h, |
char ** | datetime | ||
) |
Gets datetime of device provisioing information. 1.
[in] | dev_prov_h | The SmartThings device provisioning information handle |
[out] | datetime | The date and time |
0
on success, otherwise a negative error value SMARTTHINGS_ERROR_NONE | Successful |
SMARTTHINGS_ERROR_INVALID_PARAMETER | Invalid parameter |
SMARTTHINGS_ERROR_OPERATION_FAILED | Operation failed |
int smartthings_devinfo_get_language | ( | smartthings_device_prov_info_h | dev_prov_h, |
char ** | language | ||
) |
Gets language of device provisioing information. 1.
[in] | dev_prov_h | The SmartThings device provisioning information handle |
[out] | language | The IETF language tag using ISO 639X |
0
on success, otherwise a negative error value SMARTTHINGS_ERROR_NONE | Successful |
SMARTTHINGS_ERROR_INVALID_PARAMETER | Invalid parameter |
SMARTTHINGS_ERROR_OPERATION_FAILED | Operation failed |
int smartthings_get_device_id | ( | smartthings_h | handle, |
char ** | device_id | ||
) |
Gets a device ID. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master
http://tizen.org/privilege/appmanager.launch
http://tizen.org/privilege/datasharing.
[in] | handle | The SmartThings handle |
[out] | device_id | The device ID |
0
on success, otherwise a negative error value SMARTTHINGS_ERROR_NONE | Successful |
SMARTTHINGS_ERROR_INVALID_PARAMETER | Invalid parameter |
SMARTTHINGS_ERROR_PERMISSION_DENIED | Permission denied |
SMARTTHINGS_ERROR_OPERATION_FAILED | Operation failed |
SMARTTHINGS_ERROR_SERVICE_UNAVAILABLE | Service unavailable |
int smartthings_get_easysetup_status | ( | smartthings_h | handle, |
bool * | is_completed | ||
) |
Gets a Easy-setup status. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master
http://tizen.org/privilege/appmanager.launch
http://tizen.org/privilege/datasharing.
[in] | handle | The SmartThings handle |
[out] | is_completed | The status of Easy-setup whether it is completed or not |
0
on success, otherwise a negative error value SMARTTHINGS_ERROR_NONE | Successful |
SMARTTHINGS_ERROR_INVALID_PARAMETER | Invalid parameter |
SMARTTHINGS_ERROR_PERMISSION_DENIED | Permission denied |
SMARTTHINGS_ERROR_OPERATION_FAILED | Operation failed |
SMARTTHINGS_ERROR_SERVICE_UNAVAILABLE | Service unavailable |
int smartthings_initialize | ( | smartthings_h * | handle, |
smartthings_connection_status_cb | connection_status_cb, | ||
void * | user_data | ||
) |
Creates a handle and connects to agent. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master
http://tizen.org/privilege/appmanager.launch
http://tizen.org/privilege/datasharing.
[out] | handle | The SmartThings handle to be newly created on success |
[in] | connection_status_cb | The RPC connection status callback to register |
[in] | user_data | The user data to be passed to the callback function |
0
on success, otherwise a negative error value SMARTTHINGS_ERROR_NONE | Successful |
SMARTTHINGS_ERROR_INVALID_PARAMETER | Invalid parameter |
SMARTTHINGS_ERROR_OUT_OF_MEMORY | Out of memory |
SMARTTHINGS_ERROR_PERMISSION_DENIED | Permission denied |
SMARTTHINGS_ERROR_OPERATION_FAILED | Operation failed |
SMARTTHINGS_ERROR_NOT_SUPPORTED | Not supported |
SMARTTHINGS_ERROR_SERVICE_UNAVAILABLE | Service unavailable |
int smartthings_reset | ( | smartthings_h | handle | ) |
Sends a reset command for resetting the device's Cloud signup and Easy-setup. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master
http://tizen.org/privilege/appmanager.launch
http://tizen.org/privilege/datasharing
http://tizen.org/privilege/internet.
[in] | handle | The SmartThings handle |
0
on success, otherwise a negative error value SMARTTHINGS_ERROR_NONE | Successful |
SMARTTHINGS_ERROR_INVALID_PARAMETER | Invalid parameter |
SMARTTHINGS_ERROR_PERMISSION_DENIED | Permission denied |
SMARTTHINGS_ERROR_OPERATION_FAILED | Operation failed |
SMARTTHINGS_ERROR_SERVICE_UNAVAILABLE | Service unavailable |
int smartthings_send_ap_list | ( | smartthings_h | handle, |
smartthings_ap_list_h | ap_list_h, | ||
int | req_id | ||
) |
Sends the scanned AP list. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master
http://tizen.org/privilege/appmanager.launch
http://tizen.org/privilege/datasharing
http://tizen.org/privilege/internet.
[in] | handle | The SmartThings handle |
[in] | ap_list_h | The SmartThings AP list handle |
[in] | req_id | The request ID |
0
on success, otherwise a negative error value SMARTTHINGS_ERROR_NONE | Successful |
SMARTTHINGS_ERROR_INVALID_PARAMETER | Invalid parameter |
SMARTTHINGS_ERROR_OUT_OF_MEMORY | Out of memory |
SMARTTHINGS_ERROR_PERMISSION_DENIED | Permission denied |
SMARTTHINGS_ERROR_OPERATION_FAILED | Operation failed |
SMARTTHINGS_ERROR_SERVICE_UNAVAILABLE | Service unavailable |
int smartthings_send_reset_confirm | ( | smartthings_h | handle, |
bool | confirm | ||
) |
Sends a reset confirmation. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master
http://tizen.org/privilege/appmanager.launch
http://tizen.org/privilege/datasharing
http://tizen.org/privilege/internet.
[in] | handle | The SmartThings handle |
[in] | confirm | The reset confirmation |
0
on success, otherwise a negative error value SMARTTHINGS_ERROR_NONE | Successful |
SMARTTHINGS_ERROR_INVALID_PARAMETER | Invalid parameter |
SMARTTHINGS_ERROR_PERMISSION_DENIED | Permission denied |
SMARTTHINGS_ERROR_OPERATION_FAILED | Operation failed |
SMARTTHINGS_ERROR_SERVICE_UNAVAILABLE | Service unavailable |
int smartthings_send_user_confirm | ( | smartthings_h | handle, |
bool | confirm | ||
) |
Sends a user confirmation for MUTUAL VERIFICATION BASED JUST WORK Ownership transfer. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master
http://tizen.org/privilege/appmanager.launch
http://tizen.org/privilege/datasharing
http://tizen.org/privilege/internet.
[in] | handle | The SmartThings handle |
[in] | confirm | The user confirmation for OTM(ownership transfer method) |
0
on success, otherwise a negative error value SMARTTHINGS_ERROR_NONE | Successful |
SMARTTHINGS_ERROR_INVALID_PARAMETER | Invalid parameter |
SMARTTHINGS_ERROR_PERMISSION_DENIED | Permission denied |
SMARTTHINGS_ERROR_OPERATION_FAILED | Operation failed |
SMARTTHINGS_ERROR_SERVICE_UNAVAILABLE | Service unavailable |
int smartthings_set_certificate_file | ( | smartthings_h | handle, |
const char * | certificate, | ||
const char * | private_key | ||
) |
Sets test certificate files. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master
http://tizen.org/privilege/appmanager.launch
http://tizen.org/privilege/datasharing.
[in] | handle | The SmartThings handle |
[in] | certificate | The certificate file |
[in] | private_key | The private key file |
0
on success, otherwise a negative error value SMARTTHINGS_ERROR_NONE | Successful |
SMARTTHINGS_ERROR_INVALID_PARAMETER | Invalid parameter |
SMARTTHINGS_ERROR_PERMISSION_DENIED | Permission denied |
SMARTTHINGS_ERROR_OPERATION_FAILED | Operation failed |
SMARTTHINGS_ERROR_SERVICE_UNAVAILABLE | Service unavailable |
int smartthings_set_device_property | ( | smartthings_h | handle, |
const char * | dev_name, | ||
int | wifi_mode, | ||
int | wifi_freq | ||
) |
Sets device property for Easy-setup. 1.
[in] | handle | The SmartThings handle |
[in] | dev_name | The device name |
[in] | wifi_mode | The supported Wi-Fi mode (bit masked value for smartthings_wifi_mode_e) |
[in] | wifi_freq | The supported Wi-Fi frequency (bit masked value for smartthings_wifi_freq_e) |
0
on success, otherwise a negative error value SMARTTHINGS_ERROR_NONE | Successful |
SMARTTHINGS_ERROR_INVALID_PARAMETER | Invalid parameter |
int smartthings_set_device_provisioning_cb | ( | smartthings_h | handle, |
smartthings_device_provisioning_cb | dev_prov_cb, | ||
void * | user_data | ||
) |
Sets callback for getting device provisioning information. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master
http://tizen.org/privilege/appmanager.launch
http://tizen.org/privilege/datasharing.
[in] | handle | The SmartThings handle |
[in] | dev_prov_cb | The device provisioning callback to register |
[in] | user_data | The user data to be passed to the callback function |
0
on success, otherwise a negative error value SMARTTHINGS_ERROR_NONE | Successful |
SMARTTHINGS_ERROR_INVALID_PARAMETER | Invalid parameter |
SMARTTHINGS_ERROR_PERMISSION_DENIED | Permission denied |
SMARTTHINGS_ERROR_OPERATION_FAILED | Operation failed |
SMARTTHINGS_ERROR_SERVICE_UNAVAILABLE | Service unavailable |
int smartthings_set_mot_status | ( | smartthings_h | handle, |
bool | enable | ||
) |
Sets MOT(multiple ownership transfer) status. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master
http://tizen.org/privilege/appmanager.launch
http://tizen.org/privilege/datasharing.
[in] | handle | The SmartThings handle |
[in] | enable | The MOT(multiple ownership transfer) status |
0
on success, otherwise a negative error value SMARTTHINGS_ERROR_NONE | Successful |
SMARTTHINGS_ERROR_INVALID_PARAMETER | Invalid parameter |
SMARTTHINGS_ERROR_PERMISSION_DENIED | Permission denied |
SMARTTHINGS_ERROR_OPERATION_FAILED | Operation failed |
SMARTTHINGS_ERROR_SERVICE_UNAVAILABLE | Service unavailable |
int smartthings_set_pin_cb | ( | smartthings_h | handle, |
smartthings_pin_generated_cb | generated_cb, | ||
smartthings_pin_display_close_cb | close_cb, | ||
void * | user_data | ||
) |
Sets callback for getting randomly generated PIN for the PIN-based ownership transfer request. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master
http://tizen.org/privilege/appmanager.launch
http://tizen.org/privilege/datasharing.
[in] | handle | The SmartThings handle |
[in] | generated_cb | The PIN generation callback to register |
[in] | close_cb | The PIN display close callback to register |
[in] | user_data | The user data to be passed to the callback function |
0
on success, otherwise a negative error value SMARTTHINGS_ERROR_NONE | Successful |
SMARTTHINGS_ERROR_INVALID_PARAMETER | Invalid parameter |
SMARTTHINGS_ERROR_PERMISSION_DENIED | Permission denied |
SMARTTHINGS_ERROR_OPERATION_FAILED | Operation failed |
SMARTTHINGS_ERROR_SERVICE_UNAVAILABLE | Service unavailable |
int smartthings_set_preconfigured_pin | ( | smartthings_h | handle, |
const char * | pin | ||
) |
Sets preconfigured PIN. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master
http://tizen.org/privilege/appmanager.launch
http://tizen.org/privilege/datasharing.
[in] | handle | The SmartThings handle |
[in] | pin | The PIN code to preconfigure |
0
on success, otherwise a negative error value SMARTTHINGS_ERROR_NONE | Successful |
SMARTTHINGS_ERROR_INVALID_PARAMETER | Invalid parameter |
SMARTTHINGS_ERROR_PERMISSION_DENIED | Permission denied |
SMARTTHINGS_ERROR_OPERATION_FAILED | Operation failed |
SMARTTHINGS_ERROR_SERVICE_UNAVAILABLE | Service unavailable |
int smartthings_set_reset_confirm_cb | ( | smartthings_h | handle, |
smartthings_reset_confirm_cb | confirm_cb, | ||
void * | user_data | ||
) |
Sets reset confirmation callback. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master
http://tizen.org/privilege/appmanager.launch
http://tizen.org/privilege/datasharing.
[in] | handle | The SmartThings handle |
[in] | confirm_cb | The reset confirm callback to register |
[in] | user_data | The user data to be passed to the callback function |
0
on success, otherwise a negative error value SMARTTHINGS_ERROR_NONE | Successful |
SMARTTHINGS_ERROR_INVALID_PARAMETER | Invalid parameter |
SMARTTHINGS_ERROR_PERMISSION_DENIED | Permission denied |
SMARTTHINGS_ERROR_OPERATION_FAILED | Operation failed |
SMARTTHINGS_ERROR_SERVICE_UNAVAILABLE | Service unavailable |
int smartthings_set_reset_result_cb | ( | smartthings_h | handle, |
smartthings_reset_result_cb | reset_result_cb, | ||
void * | user_data | ||
) |
Sets reset result callback. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master
http://tizen.org/privilege/appmanager.launch
http://tizen.org/privilege/datasharing.
[in] | handle | The SmartThings handle |
[in] | reset_result_cb | The reset result callback to register |
[in] | user_data | The user data to be passed to the callback function |
0
on success, otherwise a negative error value SMARTTHINGS_ERROR_NONE | Successful |
SMARTTHINGS_ERROR_INVALID_PARAMETER | Invalid parameter |
SMARTTHINGS_ERROR_PERMISSION_DENIED | Permission denied |
SMARTTHINGS_ERROR_OPERATION_FAILED | Operation failed |
SMARTTHINGS_ERROR_SERVICE_UNAVAILABLE | Service unavailable |
int smartthings_set_scan_ap_cb | ( | smartthings_h | handle, |
smartthings_scan_ap_cb | scan_ap_cb, | ||
void * | user_data | ||
) |
Sets callback for informing the scan AP list request. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master
http://tizen.org/privilege/appmanager.launch
http://tizen.org/privilege/datasharing.
[in] | handle | The SmartThings handle |
[in] | scan_ap_cb | The callback to register |
[in] | user_data | The user data to be passed to the callback function |
0
on success, otherwise a negative error value SMARTTHINGS_ERROR_NONE | Successful |
SMARTTHINGS_ERROR_INVALID_PARAMETER | Invalid parameter |
SMARTTHINGS_ERROR_PERMISSION_DENIED | Permission denied |
SMARTTHINGS_ERROR_OPERATION_FAILED | Operation failed |
SMARTTHINGS_ERROR_SERVICE_UNAVAILABLE | Service unavailable |
int smartthings_set_status_changed_cb | ( | smartthings_h | handle, |
smartthings_status_changed_cb | status_cb, | ||
void * | user_data | ||
) |
Sets thing status changed callback. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master
http://tizen.org/privilege/appmanager.launch
http://tizen.org/privilege/datasharing.
[in] | handle | The SmartThings handle |
[in] | status_cb | The status changed callback to register |
[in] | user_data | The user data to be passed to the callback function |
0
on success, otherwise a negative error value SMARTTHINGS_ERROR_NONE | Successful |
SMARTTHINGS_ERROR_INVALID_PARAMETER | Invalid parameter |
SMARTTHINGS_ERROR_PERMISSION_DENIED | Permission denied |
SMARTTHINGS_ERROR_OPERATION_FAILED | Operation failed |
SMARTTHINGS_ERROR_SERVICE_UNAVAILABLE | Service unavailable |
int smartthings_set_stop_soft_ap_cb | ( | smartthings_h | handle, |
smartthings_stop_soft_ap_cb | stop_soft_ap_cb, | ||
void * | user_data | ||
) |
Sets callback for informing the stop soft AP request. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master
http://tizen.org/privilege/appmanager.launch
http://tizen.org/privilege/datasharing.
[in] | handle | The SmartThings handle |
[in] | stop_soft_ap_cb | The callback to register |
[in] | user_data | The user data to be passed to the callback function |
0
on success, otherwise a negative error value SMARTTHINGS_ERROR_NONE | Successful |
SMARTTHINGS_ERROR_INVALID_PARAMETER | Invalid parameter |
SMARTTHINGS_ERROR_PERMISSION_DENIED | Permission denied |
SMARTTHINGS_ERROR_OPERATION_FAILED | Operation failed |
SMARTTHINGS_ERROR_SERVICE_UNAVAILABLE | Service unavailable |
int smartthings_set_user_confirm_cb | ( | smartthings_h | handle, |
smartthings_user_confirm_cb | confirm_cb, | ||
void * | user_data | ||
) |
Sets callback for getting user confirmation for mutual verification based just work ownership transfer. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master
http://tizen.org/privilege/appmanager.launch
http://tizen.org/privilege/datasharing.
[in] | handle | The SmartThings handle |
[in] | confirm_cb | The user confirm callback to register |
[in] | user_data | The user data to be passed to the callback function |
0
on success, otherwise a negative error value SMARTTHINGS_ERROR_NONE | Successful |
SMARTTHINGS_ERROR_INVALID_PARAMETER | Invalid parameter |
SMARTTHINGS_ERROR_PERMISSION_DENIED | Permission denied |
SMARTTHINGS_ERROR_OPERATION_FAILED | Operation failed |
SMARTTHINGS_ERROR_SERVICE_UNAVAILABLE | Service unavailable |
int smartthings_set_wifi_ap_provisioning_cb | ( | smartthings_h | handle, |
smartthings_wifi_ap_provisioning_cb | wifi_ap_cb, | ||
void * | user_data | ||
) |
Sets callback for getting Wi-Fi AP information during Easy-setup. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master
http://tizen.org/privilege/appmanager.launch
http://tizen.org/privilege/datasharing.
[in] | handle | The SmartThings handle |
[in] | wifi_ap_cb | The Wi-Fi AP callback to register |
[in] | user_data | The user data to be passed to the callback function |
0
on success, otherwise a negative error value SMARTTHINGS_ERROR_NONE | Successful |
SMARTTHINGS_ERROR_INVALID_PARAMETER | Invalid parameter |
SMARTTHINGS_ERROR_PERMISSION_DENIED | Permission denied |
SMARTTHINGS_ERROR_OPERATION_FAILED | Operation failed |
SMARTTHINGS_ERROR_SERVICE_UNAVAILABLE | Service unavailable |
int smartthings_sign_up_cloud | ( | smartthings_h | handle, |
smartthings_cloud_info_h | cloud_info_h | ||
) |
Requests to sign up to cloud. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master
http://tizen.org/privilege/appmanager.launch
http://tizen.org/privilege/datasharing
http://tizen.org/privilege/internet.
[in] | handle | The SmartThings handle |
[in] | cloud_info_h | The handle for cloud signup |
0
on success, otherwise a negative error value SMARTTHINGS_ERROR_NONE | Successful |
SMARTTHINGS_ERROR_INVALID_PARAMETER | Invalid parameter |
SMARTTHINGS_ERROR_PERMISSION_DENIED | Permission denied |
SMARTTHINGS_ERROR_OPERATION_FAILED | Operation failed |
SMARTTHINGS_ERROR_SERVICE_UNAVAILABLE | Service unavailable |
int smartthings_start | ( | smartthings_h | handle | ) |
Starts SmartThings Thing operation. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master
http://tizen.org/privilege/appmanager.launch
http://tizen.org/privilege/datasharing.
[in] | handle | The SmartThings handle |
0
on success, otherwise a negative error value SMARTTHINGS_ERROR_NONE | Successful |
SMARTTHINGS_ERROR_INVALID_PARAMETER | Invalid parameter |
SMARTTHINGS_ERROR_PERMISSION_DENIED | Permission denied |
SMARTTHINGS_ERROR_OPERATION_FAILED | Operation failed |
SMARTTHINGS_ERROR_SERVICE_UNAVAILABLE | Service unavailable |
int smartthings_start_easysetup | ( | smartthings_h | handle | ) |
Starts Easy-setup mode.
This function requests for turning on soft AP to SmartThings Thing agent. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master
http://tizen.org/privilege/appmanager.launch
http://tizen.org/privilege/datasharing
http://tizen.org/privilege/softap
[in] | handle | The SmartThings handle |
0
on success, otherwise a negative error value SMARTTHINGS_ERROR_NONE | Successful |
SMARTTHINGS_ERROR_INVALID_PARAMETER | Invalid parameter |
SMARTTHINGS_ERROR_PERMISSION_DENIED | Permission denied |
SMARTTHINGS_ERROR_OPERATION_FAILED | Operation failed |
SMARTTHINGS_ERROR_SERVICE_UNAVAILABLE | Service unavailable |
int smartthings_stop | ( | smartthings_h | handle | ) |
Stops SmartThings Thing operation. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master
http://tizen.org/privilege/appmanager.launch
http://tizen.org/privilege/datasharing.
[in] | handle | The SmartThings handle |
0
on success, otherwise a negative error value SMARTTHINGS_ERROR_NONE | Successful |
SMARTTHINGS_ERROR_INVALID_PARAMETER | Invalid parameter |
SMARTTHINGS_ERROR_PERMISSION_DENIED | Permission denied |
SMARTTHINGS_ERROR_OPERATION_FAILED | Operation failed |
SMARTTHINGS_ERROR_SERVICE_UNAVAILABLE | Service unavailable |
int smartthings_stop_easysetup | ( | smartthings_h | handle | ) |
Stops Easy-setup mode.
This function requests for turning off soft AP to SmartThings Thing agent. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master
http://tizen.org/privilege/appmanager.launch
http://tizen.org/privilege/datasharing
http://tizen.org/privilege/softap
[in] | handle | The SmartThings handle |
0
on success, otherwise a negative error value SMARTTHINGS_ERROR_NONE | Successful |
SMARTTHINGS_ERROR_INVALID_PARAMETER | Invalid parameter |
SMARTTHINGS_ERROR_PERMISSION_DENIED | Permission denied |
SMARTTHINGS_ERROR_OPERATION_FAILED | Operation failed |
SMARTTHINGS_ERROR_SERVICE_UNAVAILABLE | Service unavailable |
int smartthings_unset_device_provisioning_cb | ( | smartthings_h | handle | ) |
Unsets callback for getting device provisioning information. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master
http://tizen.org/privilege/appmanager.launch
http://tizen.org/privilege/datasharing.
[in] | handle | The SmartThings handle |
0
on success, otherwise a negative error value SMARTTHINGS_ERROR_NONE | Successful |
SMARTTHINGS_ERROR_INVALID_PARAMETER | Invalid parameter |
SMARTTHINGS_ERROR_PERMISSION_DENIED | Permission denied |
SMARTTHINGS_ERROR_OPERATION_FAILED | Operation failed |
SMARTTHINGS_ERROR_SERVICE_UNAVAILABLE | Service unavailable |
int smartthings_unset_pin_cb | ( | smartthings_h | handle | ) |
Unsets PIN callback. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master
http://tizen.org/privilege/appmanager.launch
http://tizen.org/privilege/datasharing.
[in] | handle | The SmartThings handle |
0
on success, otherwise a negative error value SMARTTHINGS_ERROR_NONE | Successful |
SMARTTHINGS_ERROR_INVALID_PARAMETER | Invalid parameter |
SMARTTHINGS_ERROR_PERMISSION_DENIED | Permission denied |
SMARTTHINGS_ERROR_OPERATION_FAILED | Operation failed |
SMARTTHINGS_ERROR_SERVICE_UNAVAILABLE | Service unavailable |
int smartthings_unset_reset_confirm_cb | ( | smartthings_h | handle | ) |
Unsets reset confirmation callback. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master
http://tizen.org/privilege/appmanager.launch
http://tizen.org/privilege/datasharing.
[in] | handle | The SmartThings handle |
0
on success, otherwise a negative error value SMARTTHINGS_ERROR_NONE | Successful |
SMARTTHINGS_ERROR_INVALID_PARAMETER | Invalid parameter |
SMARTTHINGS_ERROR_PERMISSION_DENIED | Permission denied |
SMARTTHINGS_ERROR_OPERATION_FAILED | Operation failed |
SMARTTHINGS_ERROR_SERVICE_UNAVAILABLE | Service unavailable |
int smartthings_unset_reset_result_cb | ( | smartthings_h | handle | ) |
Unsets reset result callback. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master
http://tizen.org/privilege/appmanager.launch
http://tizen.org/privilege/datasharing.
[in] | handle | The SmartThings handle |
0
on success, otherwise a negative error value SMARTTHINGS_ERROR_NONE | Successful |
SMARTTHINGS_ERROR_INVALID_PARAMETER | Invalid parameter |
SMARTTHINGS_ERROR_PERMISSION_DENIED | Permission denied |
SMARTTHINGS_ERROR_OPERATION_FAILED | Operation failed |
SMARTTHINGS_ERROR_SERVICE_UNAVAILABLE | Service unavailable |
int smartthings_unset_scan_ap_cb | ( | smartthings_h | handle | ) |
Unsets callback for informing the scan AP list request. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master
http://tizen.org/privilege/appmanager.launch
http://tizen.org/privilege/datasharing.
[in] | handle | The SmartThings handle |
0
on success, otherwise a negative error value SMARTTHINGS_ERROR_NONE | Successful |
SMARTTHINGS_ERROR_INVALID_PARAMETER | Invalid parameter |
SMARTTHINGS_ERROR_PERMISSION_DENIED | Permission denied |
SMARTTHINGS_ERROR_OPERATION_FAILED | Operation failed |
SMARTTHINGS_ERROR_SERVICE_UNAVAILABLE | Service unavailable |
int smartthings_unset_status_changed_cb | ( | smartthings_h | handle | ) |
Unsets thing status changed callback. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master
http://tizen.org/privilege/appmanager.launch
http://tizen.org/privilege/datasharing.
[in] | handle | The SmartThings handle |
0
on success, otherwise a negative error value SMARTTHINGS_ERROR_NONE | Successful |
SMARTTHINGS_ERROR_INVALID_PARAMETER | Invalid parameter |
SMARTTHINGS_ERROR_PERMISSION_DENIED | Permission denied |
SMARTTHINGS_ERROR_OPERATION_FAILED | Operation failed |
SMARTTHINGS_ERROR_SERVICE_UNAVAILABLE | Service unavailable |
int smartthings_unset_stop_soft_ap_cb | ( | smartthings_h | handle | ) |
Unsets callback for informing the stop soft AP request. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master
http://tizen.org/privilege/appmanager.launch
http://tizen.org/privilege/datasharing.
[in] | handle | The SmartThings handle |
0
on success, otherwise a negative error value SMARTTHINGS_ERROR_NONE | Successful |
SMARTTHINGS_ERROR_INVALID_PARAMETER | Invalid parameter |
SMARTTHINGS_ERROR_PERMISSION_DENIED | Permission denied |
SMARTTHINGS_ERROR_OPERATION_FAILED | Operation failed |
SMARTTHINGS_ERROR_SERVICE_UNAVAILABLE | Service unavailable |
int smartthings_unset_user_confirm_cb | ( | smartthings_h | handle | ) |
Unsets user confirmation callback. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master
http://tizen.org/privilege/appmanager.launch
http://tizen.org/privilege/datasharing.
[in] | handle | The SmartThings handle |
0
on success, otherwise a negative error value SMARTTHINGS_ERROR_NONE | Successful |
SMARTTHINGS_ERROR_INVALID_PARAMETER | Invalid parameter |
SMARTTHINGS_ERROR_PERMISSION_DENIED | Permission denied |
SMARTTHINGS_ERROR_OPERATION_FAILED | Operation failed |
SMARTTHINGS_ERROR_SERVICE_UNAVAILABLE | Service unavailable |
int smartthings_unset_wifi_ap_provisioning_cb | ( | smartthings_h | handle | ) |
Unsets callback for getting Wi-Fi AP information during Easy-setup. 1 http://com.samsung.tizen.smartthings-thing/appdefined/smartthings-thing.master
http://tizen.org/privilege/appmanager.launch
http://tizen.org/privilege/datasharing.
[in] | handle | The SmartThings handle |
0
on success, otherwise a negative error value SMARTTHINGS_ERROR_NONE | Successful |
SMARTTHINGS_ERROR_INVALID_PARAMETER | Invalid parameter |
SMARTTHINGS_ERROR_PERMISSION_DENIED | Permission denied |
SMARTTHINGS_ERROR_OPERATION_FAILED | Operation failed |
SMARTTHINGS_ERROR_SERVICE_UNAVAILABLE | Service unavailable |