forked from SmartThingsCommunity/st-device-sdk-c
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'internal/develop_rel_1_1_18' into develop
* internal/develop_rel_1_1_18: (27 commits) Update core version to 1.1.18 easysetup: fix debug log security: software: fixed build error regarding rsa port: os: use unsigned char data type to clear eventgroup add 'extern C' to capability helper file update capability helper for capabilities in devWS Change publishing events way in a asynchronous manner Retry MQTT connect when critical rejects happen instead of clean. iot_api: iot_wifi_ctrl_reqeust: Change its usage by sync-operation fo… (#509) cmake: add iot_dump_log.c into library source [TC BUILD ERROR FIX] Match MACRO with latest header [Bug fix] Release MQTT chunk memory by chunk onwer. test: iot_main: Update Unit TC easysetup: update boilerplate include: bsp: fix doxygen test: add TC for st_mqtt_create failure case mqtt: use iot_os_free instead of free to add logging logdump id for tcp to change easysetup internal logging option to CONFIG_STDK_IOT_CORE_EASYSETUP_LOG_SUPPORT_NO_USE_LOGFILE to change log mode for logdump ...
- Loading branch information
Showing
112 changed files
with
4,960 additions
and
624 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
/* *************************************************************************** | ||
* | ||
* Copyright 2019-2020 Samsung Electronics All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, | ||
* either express or implied. See the License for the specific | ||
* language governing permissions and limitations under the License. | ||
* | ||
****************************************************************************/ | ||
|
||
#ifndef _IOT_CAPS_HELPER_ACTIVITY_LIGHTING_MODE_ | ||
#define _IOT_CAPS_HELPER_ACTIVITY_LIGHTING_MODE_ | ||
|
||
#include "iot_caps_helper.h" | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
enum { | ||
CAP_ENUM_ACTIVITYLIGHTINGMODE_LIGHTINGMODE_VALUE_READING, | ||
CAP_ENUM_ACTIVITYLIGHTINGMODE_LIGHTINGMODE_VALUE_WRITING, | ||
CAP_ENUM_ACTIVITYLIGHTINGMODE_LIGHTINGMODE_VALUE_COMPUTER, | ||
CAP_ENUM_ACTIVITYLIGHTINGMODE_LIGHTINGMODE_VALUE_NIGHT, | ||
CAP_ENUM_ACTIVITYLIGHTINGMODE_LIGHTINGMODE_VALUE_SLEEPPREPARATION, | ||
CAP_ENUM_ACTIVITYLIGHTINGMODE_LIGHTINGMODE_VALUE_DAY, | ||
CAP_ENUM_ACTIVITYLIGHTINGMODE_LIGHTINGMODE_VALUE_COZY, | ||
CAP_ENUM_ACTIVITYLIGHTINGMODE_LIGHTINGMODE_VALUE_SOFT, | ||
CAP_ENUM_ACTIVITYLIGHTINGMODE_LIGHTINGMODE_VALUE_MAX | ||
}; | ||
|
||
const static struct iot_caps_activityLightingMode { | ||
const char *id; | ||
const struct activityLightingMode_attr_lightingMode { | ||
const char *name; | ||
const unsigned char property; | ||
const unsigned char value_type; | ||
const char *values[CAP_ENUM_ACTIVITYLIGHTINGMODE_LIGHTINGMODE_VALUE_MAX]; | ||
} attr_lightingMode; | ||
const struct activityLightingMode_cmd_setLightingMode { const char* name; } cmd_setLightingMode; | ||
} caps_helper_activityLightingMode = { | ||
.id = "activityLightingMode", | ||
.attr_lightingMode = { | ||
.name = "lightingMode", | ||
.property = ATTR_SET_VALUE_REQUIRED, | ||
.value_type = VALUE_TYPE_STRING, | ||
.values = {"reading", "writing", "computer", "night", "sleepPreparation", "day", "cozy", "soft"}, | ||
}, | ||
.cmd_setLightingMode = { .name = "setLightingMode" }, // arguments: lightingMode(string) | ||
}; | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif /* _IOT_CAPS_HERLPER_ACTIVITY_LIGHTING_MODE_ */ |
Oops, something went wrong.