Skip to content

qiuzhong/WhatTheHellIsSmartHomeDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

WhatTheHellIsSmartHomeDemo

SmartHome-Demo materials for Weekly QA learning and sharing

Topics

REST API

Ruan Yifeng blog: 理解RESTful架构

我们总结一下什么是RESTful架构:

  (1)每一个URI代表一种资源;

  (2)客户端和服务器之间,传递这种资源的某种表现层;

  (3)客户端通过四个HTTP动词,对服务器端资源进行操作,实现"表现层状态转化"。

OCF Concepts

From OIC specification 1.1:

  • Client:

    3.1.1

    Client

    a logical entity that accesses a Resource on a Server

  • Device:

    3.1.6

    Device

    a logical entity that assumes one or more Roles (e.g., Client, Server)

  • Resource

    3.1.19

    Resource

    represents an Entity modelled and exposed by the Framework

  • Server

    3.1.28

    Server

    a Device with the role of providing resource state information and facilitating remote interaction with its resources

OCF clients <-COAP-> OCF servers.

Iotivity

  • IoTivity is an open source software framework enabling seamless device-to-device connectivity to address the emerging needs of the Internet of Things.
  • Written in C/C++
  • Implements the COAP
  • Provides C/C++/Java API.

otcshare/iotivity-node

Node.js binding for iotivity.

iot-rest-api-server function

01org/SmartHome-Demo

  • ocf-servers/js-servers/*.js: When a js file is launched, an OCF server is created and presented in the network.
  • Cloud app: present and control the sensors via Web portal.

Flow chart

About

SmartHome-Demo materials for Weekly QA learning and sharing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published