The way to initialize the Thing SDK Embedded varies depending on whether the Thing-IF SDK is used together with the Thing SDK Embedded. If you have incorporated the Thing-IF SDK, you do not need to add the Thing SDK Embedded because the Thing-IF SDK contains the Thing SDK Embedded.
If You Use the Thing-IF SDK Together
The Thing-IF SDK contains the Thing SDK Embedded. Onboarding using the Thing-IF SDK completes association of the thing and the owner, which is necessary to build your IoT solution. See Thing Development Guide to learn how to initialize the Thing-IF SDK and onboard the thing.
Once you have prepared the Thing-IF SDK, you can use the feature of the Kii Cloud SDK on the thing by implementing initialization according to Initializing and Onboarding.
If You Do Not Use the Thing-IF SDK
If it is preferable to use the Thing SDK Embedded alone, you need to incorporate and initialize the SDK in the target project. Take the following steps to do so.
Create a Kii Cloud application on the developer portal. Your mobile app and program implemented on the thing will be run under this application.
If you've already created a Kii Cloud application when you created the mobile app, you don't have to create a new one.
Prepare for development by downloading and building the reference implementation from GitHub. You can use the downloaded source code as a skeleton of your program.
Once you have incorporated the Thing SDK Embedded, you can use the feature of the Kii Cloud SDK on the thing by implementing initialization according to Initializing and Onboarding.
Besides, you need to associate the thing with the owner user or group. It is easy to register the owner from the mobile app because the owner registration is not implemented as an API of the Thing SDK Embedded. See Manage Owners for mobile apps to learn how to implement it.