artik cloud for iot developer workshop

40
10/26/22 CONFIDENTIAL Samsung ARTIK Cloud For IoT ARTIK Cloud Jeanine Jue & Yujing Wu https://artik.cloud

Upload: samsung-artik-cloud

Post on 12-Jan-2017

140 views

Category:

Software


11 download

TRANSCRIPT

Page 1: ARTIK Cloud for IoT Developer Workshop

May 1, 2023

CONFIDENTIAL

Samsung ARTIK Cloud For IoTARTIK CloudJeanine Jue & Yujing Wuhttps://artik.cloud

Page 2: ARTIK Cloud for IoT Developer Workshop

CONFIDENTIAL2

• Intro• ARTIK Cloud Overview

– What are the challenges and how to address them

– Overview of Development Environment

• Your 1st IoT Device• Summary

Page 3: ARTIK Cloud for IoT Developer Workshop

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    

Page 4: ARTIK Cloud for IoT Developer Workshop

CONFIDENTIAL4

Page 5: ARTIK Cloud for IoT Developer Workshop

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

Page 6: ARTIK Cloud for IoT Developer Workshop

CONFIDENTIAL6

IoT challenges: collections of silo systems

Page 7: ARTIK Cloud for IoT Developer Workshop

CONFIDENTIAL7

Open Data Exchange Platform for IoT

Page 8: ARTIK Cloud for IoT Developer Workshop

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?

Page 9: ARTIK Cloud for IoT Developer Workshop

CONFIDENTIAL9

To achieve interoperability: Device Manifest

Page 10: ARTIK Cloud for IoT Developer Workshop

CONFIDENTIAL10

To achieve interoperability: Rules Engine

Page 11: ARTIK Cloud for IoT Developer Workshop

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

Page 12: ARTIK Cloud for IoT Developer Workshop

CONFIDENTIAL12

To achieve interoperability: connect with devices in many ways

REST/HTTP

Websockets

MQTT

CoAP

Communicate with device cloudsCommunicate with physical devices

Page 13: ARTIK Cloud for IoT Developer Workshop

CONFIDENTIAL13

Use built-in connectors to many popular services and devices

Page 14: ARTIK Cloud for IoT Developer Workshop

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

Page 15: ARTIK Cloud for IoT Developer Workshop

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

Page 16: ARTIK Cloud for IoT Developer Workshop

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

Page 17: ARTIK Cloud for IoT Developer Workshop

CONFIDENTIAL17

– User Portal (My ARTIK Cloud)– Developer Dashboard– API Console– Device Simulator

ARTIK Cloud Tools

Page 18: ARTIK Cloud for IoT Developer Workshop

CONFIDENTIAL18

My ARTIK Cloud (https://artik.cloud/my)

Page 19: ARTIK Cloud for IoT Developer Workshop

CONFIDENTIAL19

Developer Dashboard – (https://developer.artik.cloud/dashboard)

Page 20: ARTIK Cloud for IoT Developer Workshop

CONFIDENTIAL20

API Console (https://developer.artik.cloud/api-console/)

Page 21: ARTIK Cloud for IoT Developer Workshop

CONFIDENTIAL21

Device Simulator (https://developer.artik.cloud/documentation/tools/device-simulator.html)

Page 22: ARTIK Cloud for IoT Developer Workshop

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

Page 23: ARTIK Cloud for IoT Developer Workshop

CONFIDENTIAL23

Build an IoT device to send sensor data to ARTIK Cloudhttps://developer.artik.cloud/documentation/tutorials/your-first-iot-device.html

Page 24: ARTIK Cloud for IoT Developer Workshop

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

Page 25: ARTIK Cloud for IoT Developer Workshop

CONFIDENTIAL25

Device dev (1/4): Know device data/capability

Page 26: ARTIK Cloud for IoT Developer Workshop

CONFIDENTIAL26

Device Dev (2/4):define device Manifest in the Developer Dashboard

Page 27: ARTIK Cloud for IoT Developer Workshop

CONFIDENTIAL27

Device Dev (2/4): Connect a device in User Portal

Page 28: ARTIK Cloud for IoT Developer Workshop

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

Page 29: ARTIK Cloud for IoT Developer Workshop

CONFIDENTIAL29

Device Dev (3/4) : Get Access Token

Page 30: ARTIK Cloud for IoT Developer Workshop

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

Page 31: ARTIK Cloud for IoT Developer Workshop

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

Page 32: ARTIK Cloud for IoT Developer Workshop

CONFIDENTIAL32

See live data at My ARTIK Cloud

Page 33: ARTIK Cloud for IoT Developer Workshop

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

Page 34: ARTIK Cloud for IoT Developer Workshop

CONFIDENTIAL34

Walk through the codehttps://github.com/artikcloud/sample-iot-

MonitorFlameTemp

Page 35: ARTIK Cloud for IoT Developer Workshop

CONFIDENTIAL35

Up to more challenges?

Page 36: ARTIK Cloud for IoT Developer Workshop

CONFIDENTIAL36

Build an app to monitor fire sensor data

Page 37: ARTIK Cloud for IoT Developer Workshop

CONFIDENTIAL37

Build a system where an app controls a smart light

Page 38: ARTIK Cloud for IoT Developer Workshop

CONFIDENTIAL38

https://developer.artik.cloud/documentation/tutorials/

Page 39: ARTIK Cloud for IoT Developer Workshop

CONFIDENTIAL39

https://developer.artik.cloud/documentation/samples/

Page 40: ARTIK Cloud for IoT Developer Workshop

CONFIDENTIAL40

https://developer.artik.cloud (documentation, blogs, forum...)

[email protected]

Thank You!