Inhaltsverzeichnis
Core Link Format
RFC6690 Constrained RESTful Environments (CoRE) Link Format
Beispiel
Ausgabe einer '/.well-known/core' Abfrage eines Sensorknotens:
coap://[aaaa::0221:2eff:ff00:1f15]:5683/.well-known/core </.well-known/core>;ct=40, </s/button>;title="Button";rt="button", </a/led1>;title="Led1";rt="led", </s/temp>;title="Temperatur DS1820";rt="temperature-c", </s/hum>;title="Humidity DHT11";rt="humidity-%", </info>;title="Info";rt="Text", </s/cputemp>;title="Temperature status";rt="temperature-c"
Link
Resourcen eines Knotens sollten in Gruppen eingeteilt werden.
Sensoren: /s/xxx Aktoren: /a/xxx
Resource Type 'title' Attribute
Dieses Attribut sollte den Namen der Resource in einer für Menschen verständlichen Form wiedergeben.
Beispiele:
title="Button" title="Led1" title="Temperatur DS1820" title="Humidity DHT11" title="Humidity SHT11"
Resource Type 'rt' Attribute
Dieses Attribut sollte die Anwendunsspezifische Bedeutung der Resourece wiedergeben
Beispiele:
rt="button" rt="led" rt="temperature-c" rt="humidity-%" rt="text"
CoRE Interfaces
http://tools.ietf.org/html/draft-ietf-core-interfaces-01
Apendix A
The following is a short definition of simple profile. This simplistic profile is for use in the examples of this document.
+--------------------+-----------+------------+---------+ | Function Set | Root Path | RT | IF | +--------------------+-----------+------------+---------+ | Device Description | /d | simple.dev | core.ll | | Sensors | /s | simple.sen | core.b | | Actuators | /a | simple.act | core.b | +--------------------+-----------+------------+---------+
List of Function Sets
+-------+----------+----------------+---------+------------+ | Type | Path | RT | IF | Data Type | +-------+----------+----------------+---------+------------+ | Name | /d/name | simple.dev.n | core.p | xsd:string | | Model | /d/model | simple.dev.mdl | core.rp | xsd:string | +-------+----------+----------------+---------+------------+
Device Description Function Set
+-------------+-------------+----------------+--------+-------------+ | Type | Path | RT | IF | Data Type | +-------------+-------------+----------------+--------+-------------+ | Light | /s/light | simple.sen.lt | core.s | xsd:decimal | | | | | | (lux) | | Humidity | /s/humidity | simple.sen.hum | core.s | xsd:decimal | | | | | | (%RH) | | Temperature | /s/temp | simple.sen.tmp | core.s | xsd:decimal | | | | | | (degC) | +-------------+-------------+----------------+--------+-------------+
Sensors Function Set
+------+------------+----------------+--------+-------------+ | Type | Path | RT | IF | Data Type | +------+------------+----------------+--------+-------------+ | LED | /a/{#}/led | simple.act.led | core.a | xsd:boolean | +------+------------+----------------+--------+-------------+
Actuators Function Set