You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+35-2
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,11 @@ The Direct Connected Devices SDK builds on the environments of each chipset vend
28
28
Install the toolchain defined in the chipset SDK you use according to the directions below. If no development environment is described for your chipset, it is assumed to only be applicable for 64-bit Ubuntu-based environments.
29
29
30
30
#### For ESP32:
31
-
1. Install [Prerequisites](https://docs.espressif.com/projects/esp-idf/en/release-v4.3/esp32/get-started/index.html#step-1-install-prerequisites) for your build system OS.
31
+
1. Install [Prerequisites](https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/linux-macos-setup.html#step-1-install-prerequisites) for your build system OS.
32
+
33
+
> **_NOTE:_**
34
+
> ESP32 examples are tested under ESP-IDF SDK v5.0.
35
+
32
36
2. Set up the ESP32 toolchain with `setup.py`
33
37
34
38
### Build
@@ -46,9 +50,11 @@ Install the toolchain defined in the chipset SDK you use according to the direct
2. Check the build configuration of a sample device application (`apps` folder). If you want to use specific build options, you can directly modify the each chipset build configuration file (e.g. `sdkconfig.esp32`, `sdkconfig.esp32c3`) at the root directory of a sample device application. On the Espressif chipset, you can additionally use the `menuconfig` option for configuration.
57
+
2. Check the build configuration of a sample device application (`apps` folder). If you want to use specific build options, you can directly modify the each chipset build configuration file (e.g. `sdkconfig.esp32`, `sdkconfig.esp32c3`,`sdkconfig.esp32s3`) at the root directory of a sample device application. On the Espressif chipset, you can additionally use the `menuconfig` option for configuration.
52
58
53
59
> If you want to use the default build configuration, you can skip this step.
54
60
@@ -64,17 +70,23 @@ Install the toolchain defined in the chipset SDK you use according to the direct
For commercialization, refer to the following [link](https://github.com/SmartThingsCommunity/st-device-sdk-c/blob/main/doc/Commercialization_Guide).
155
+
156
+
If you have any issue, or want to commercialize your IoT devices using this SDK, please contact stdk@samsung.com or open new issue.
157
+
125
158
## License
126
159
127
160
This library is licensed under the [Apache License Ver2.0](LICENSE).
# SmartThings SDK for Direct Connected Devices for C - Switch Example
2
+
3
+
## Introduction
4
+
5
+
SmartThings direct-connected device is Wi-Fi enabled device that uses the SmartThings cloud as its primary cloud infrastructure. And this device will use the MQTT protocol for communication.
6
+
7
+
## Getting started
8
+
9
+
For information on detailed workflow, please refer to the [Getting Started](../../../doc/getting_started.md)
10
+
11
+
## Components and Capabilities
12
+
13
+
SmartThings Device is defined using components and capabilities. Capabilities define the features of the device, and capabilities are grouped into components.
14
+
Components and Capabilities are contained in device profile. You can create a device profile in Developer Workspace and associate it with an integration.
15
+
16
+
This example assumes the following component and capabilities are used. :
17
+
18
+
`main` component
19
+
-`healthCheck` capability
20
+
-`switch` capability
21
+
-`switchLevel` capability
22
+
-`colorTemperature` capability
23
+
-`activityLightingMode` capability
24
+
25
+
`monitor` component
26
+
-`dustSensor` capability
27
+
28
+
(`healthCheck` capability is automatically added by Developer Workspace. It doesn't need handler at device side)
29
+
30
+
## SmartThings SDK for Direct Connected Devices - Config
31
+
If you want to use specific SmartThings Device SDK build options, you can directly modify the build configuration file. For this example, SmartThings Device SDK config is saved in 'proj_config.mk' file. If you want to change this, please execute the following :
32
+
```sh
33
+
$ cd~/st-device-sdk-c-ref/
34
+
$ vim apps/bl602/light_example/proj_config.mk
35
+
```
36
+
37
+
## Test device schematics
38
+
This example uses BL602 GPIO like below.
39
+
Please refer below picture for __BL602-IoT-DVK-3S__.
40
+
> Note: If your device's schematics doesn't match with belows.
41
+
> Please modify GPIO defines for your device at [device_control.h](main/device_control.h)
0 commit comments