Media Types for FETCH & PATCH with Sensor Measurement Lists (SenML)
draft-keranen-core-senml-fetch-00

Document Type Active Internet-Draft (individual)
Last updated 2018-03-05
Stream (None)
Intended RFC status (None)
Formats plain text pdf html bibtex
Stream Stream state (No stream defined)
Consensus Boilerplate Unknown
RFC Editor Note (None)
IESG IESG state I-D Exists
Telechat date
Responsible AD (None)
Send notices to (None)
Network Working Group                                         A. Keranen
Internet-Draft                                                  Ericsson
Intended status: Standards Track                              M. Mohajer
Expires: September 6, 2018                                     u-blox UK
                                                           March 5, 2018

  Media Types for FETCH & PATCH with Sensor Measurement Lists (SenML)
                   draft-keranen-core-senml-fetch-00

Abstract

   The Sensor Measurement Lists (SenML) media type and data model can be
   used to send collections of resources, such as batches of sensor data
   or configuration parameters.  The CoAP PATCH and FETCH methods enable
   accessing and updating parts of a resource or multiple resources with
   one request.  This document defines two new media types that can be
   used with the CoAP PATCH and FETCH methods for resources represented
   with the SenML data model.

Status of This Memo

   This Internet-Draft is submitted in full conformance with the
   provisions of BCP 78 and BCP 79.

   Internet-Drafts are working documents of the Internet Engineering
   Task Force (IETF).  Note that other groups may also distribute
   working documents as Internet-Drafts.  The list of current Internet-
   Drafts is at http://datatracker.ietf.org/drafts/current/.

   Internet-Drafts are draft documents valid for a maximum of six months
   and may be updated, replaced, or obsoleted by other documents at any
   time.  It is inappropriate to use Internet-Drafts as reference
   material or to cite them other than as "work in progress."

   This Internet-Draft will expire on September 6, 2018.

Copyright Notice

   Copyright (c) 2018 IETF Trust and the persons identified as the
   document authors.  All rights reserved.

   This document is subject to BCP 78 and the IETF Trust's Legal
   Provisions Relating to IETF Documents
   (http://trustee.ietf.org/license-info) in effect on the date of
   publication of this document.  Please review these documents
   carefully, as they describe your rights and restrictions with respect
   to this document.  Code Components extracted from this document must

Keranen & Mohajer       Expires September 6, 2018               [Page 1]
Internet-Draft  Media Types for FETCH & PATCH with SenML      March 2018

   include Simplified BSD License text as described in Section 4.e of
   the Trust Legal Provisions and are provided without warranty as
   described in the Simplified BSD License.

Table of Contents

   1.  Introduction  . . . . . . . . . . . . . . . . . . . . . . . .   2
   2.  Terminology . . . . . . . . . . . . . . . . . . . . . . . . .   3
   3.  Media Type Definitions  . . . . . . . . . . . . . . . . . . .   3
     3.1.  SenML FETCH Media Type  . . . . . . . . . . . . . . . . .   3
       3.1.1.  Wild Card Selectors . . . . . . . . . . . . . . . . .   4
     3.2.  SenML PATCH Media Type  . . . . . . . . . . . . . . . . .   5
   4.  Security Considerations . . . . . . . . . . . . . . . . . . .   5
   5.  IANA Considerations . . . . . . . . . . . . . . . . . . . . .   6
     5.1.  CoAP Content-Format Registration  . . . . . . . . . . . .   6
     5.2.  senml-fetch+json Media Type . . . . . . . . . . . . . . .   6
     5.3.  senml-patch+json Media Type . . . . . . . . . . . . . . .   7
   6.  Acknowledgements  . . . . . . . . . . . . . . . . . . . . . .   7
   7.  References  . . . . . . . . . . . . . . . . . . . . . . . . .   7
     7.1.  Normative References  . . . . . . . . . . . . . . . . . .   7
     7.2.  Informative References  . . . . . . . . . . . . . . . . .   8
   Authors' Addresses  . . . . . . . . . . . . . . . . . . . . . . .   8

1.  Introduction

   The Sensor Measurement Lists (SenML) media type [I-D.ietf-core-senml]
   and data model can be used to transmit collections of resources, such
   as batches of sensor data or configuration parameters.

   Example of a SenML collection is shown below:

   [
    {"bn":"2001:db8::2/3306/0/", "n":"5850", "vb":true},
    {"n":"5851", "v":42},
    {"n":"5750", "vs":"Ceiling light"}
   ]

   Here three resources "3306/0/5850", "3306/0/5851", and "3306/0/5750",
   of an IPSO dimmable light smart object [IPSO] are represented using a
   single SenML Pack with three SenML Records.  All resources share the
   same base name "2001:db8::2/3306/0/", hence full names for resources
   are "2001:db8::2/3306/0/5850", etc.

   The CoAP [RFC7252] PATCH and FETCH methods [RFC8132] enable accessing
   and updating parts of a resource or multiple resources with one
   request.

Keranen & Mohajer       Expires September 6, 2018               [Page 2]
Internet-Draft  Media Types for FETCH & PATCH with SenML      March 2018

   This document defines two new media types that can be used with the
   CoAP PATCH and FETCH methods with resources represented with the
   SenML data model.

2.  Terminology

   The key words 'MUST', 'MUST NOT', 'REQUIRED', 'SHALL', 'SHALL NOT',
Show full document text