artik cloud for iot developer workshop
TRANSCRIPT
May 1, 2023
CONFIDENTIAL
Samsung ARTIK Cloud For IoTARTIK CloudJeanine Jue & Yujing Wuhttps://artik.cloud
CONFIDENTIAL2
• Intro• ARTIK Cloud Overview
– What are the challenges and how to address them
– Overview of Development Environment
• Your 1st IoT Device• Summary
CONFIDENTIAL3
MS, CS – Boston UniversityDeveloper Evangelist, Software developer, Ruby on Rails & iOS instructorResponsible for all developer evangelism at Samsung ARTIK CloudTechnical Mentor, TechStars, Plug n Play
About The Team
Jeanine Jue
Dr. Yujing WuPh.D.– University of MassachusettsDeveloper Evangelist, hands-on technical lead in the domains: IoT, mobile, cloud gaming, and technical computing. Worked as a software development lead at startups and large companies. Actively contributes to open source software development and writes technical articles
CONFIDENTIAL4
CONFIDENTIAL5
• Intro• Developers Wanted• ARTIK Cloud Overview–What are the challenges and how to address them–Overview of Development Environment
• Your 1st IoT Device• Summary
CONFIDENTIAL6
IoT challenges: collections of silo systems
CONFIDENTIAL7
Open Data Exchange Platform for IoT
CONFIDENTIAL8
• Define and discover device Manifests• Powerful cross-device rule engine• Diverse ways to interact with devices
and 3rd party clouds
How to achieve interoperability?
CONFIDENTIAL9
To achieve interoperability: Device Manifest
CONFIDENTIAL10
To achieve interoperability: Rules Engine
CONFIDENTIAL11
Siloed devices to interact with each other and other services via Rules
Monitor events from many devicesSend actions to many devicesSend email and SMS alertsSubscriptions & notificationsManage rules programmatically or via UI
CONFIDENTIAL12
To achieve interoperability: connect with devices in many ways
REST/HTTP
Websockets
MQTT
CoAP
Communicate with device cloudsCommunicate with physical devices
CONFIDENTIAL13
Use built-in connectors to many popular services and devices
CONFIDENTIAL14
Device Management
o LWM2M integrationo Device Presenceo Server Propertieso Device Propertieso Device Tasks / OTA
o Write device properties onto the device (API, UI)
o Execute functions on the device: Reboot, Factory Reset, Firmware Update, Reset Error Code (API, UI)
o URL to firmware package
CONFIDENTIAL15
• Intro• Developers Wanted• ARTIK Cloud Overview–What are the challenges and how to address them–Overview of Development Environment
• Your 1st IoT Device• Summary
CONFIDENTIAL16
APIs & SDKs
o Easy to use open APIso Rich SDKs
o Objective C / iOS, Java / Android, JavaScript, Swift, PHP, Python, Ruby, Scala, and C#; as well as Tizen
o Rich developer tools: API Console, Device Simulator, Self-service developer portal
o Rich developer documentation, blogs, samples, and more
CONFIDENTIAL17
– User Portal (My ARTIK Cloud)– Developer Dashboard– API Console– Device Simulator
ARTIK Cloud Tools
CONFIDENTIAL18
My ARTIK Cloud (https://artik.cloud/my)
CONFIDENTIAL19
Developer Dashboard – (https://developer.artik.cloud/dashboard)
CONFIDENTIAL20
API Console (https://developer.artik.cloud/api-console/)
CONFIDENTIAL21
Device Simulator (https://developer.artik.cloud/documentation/tools/device-simulator.html)
CONFIDENTIAL22
• Intro• Developers Wanted• ARTIK Cloud Overview–What are the challenges and how to address them–Overview of Development Environment
• Your 1st IoT Device• Summary
CONFIDENTIAL23
Build an IoT device to send sensor data to ARTIK Cloudhttps://developer.artik.cloud/documentation/tutorials/your-first-iot-device.html
CONFIDENTIAL24
Four steps for device development
1. Know your device data and capability
2. Define your device manifest
3. Obtain an access token
4. Make API calls: send data to or receive commands
CONFIDENTIAL25
Device dev (1/4): Know device data/capability
CONFIDENTIAL26
Device Dev (2/4):define device Manifest in the Developer Dashboard
CONFIDENTIAL27
Device Dev (2/4): Connect a device in User Portal
CONFIDENTIAL28
Four steps for device development
1. Know your device data and capability
2. Define your device manifest
3. Obtain an access token
4. Make API calls: send data to or receive commands
CONFIDENTIAL29
Device Dev (3/4) : Get Access Token
CONFIDENTIAL30
Four steps for device development
1. Know your device data and capability
2. Define your device manifest
3. Obtain an access token
4. Make API calls: send data to or receive commands
CONFIDENTIAL31
REST API call
POST: https://api.artik.cloud/v1.1/messages headers: {"Authorization": "bearer <DEVICE TOKEN>"}, body:{"sdid":"<DEVICE ID>", "data": {"temp": temperature, "onFire": onFire }, "ts": timeStamp }
Device Dev (4/4): Send data to ARTIK Cloud
CONFIDENTIAL32
See live data at My ARTIK Cloud
CONFIDENTIAL33
Four steps for device development
1. Know your device data and capability
2. Define your device manifest
3. Obtain an access token
4. Make API calls: send data to or receive commands
CONFIDENTIAL34
Walk through the codehttps://github.com/artikcloud/sample-iot-
MonitorFlameTemp
CONFIDENTIAL35
Up to more challenges?
CONFIDENTIAL36
Build an app to monitor fire sensor data
CONFIDENTIAL37
Build a system where an app controls a smart light
CONFIDENTIAL38
https://developer.artik.cloud/documentation/tutorials/
CONFIDENTIAL39
https://developer.artik.cloud/documentation/samples/
CONFIDENTIAL40
https://developer.artik.cloud (documentation, blogs, forum...)
Thank You!