go>> odd>> 返回
项目作者: Artox

项目描述 :
A free dotdot Framework
高级语言: C
项目地址: git://github.com/Artox/odd.git
创建时间: 2020-06-14T09:58:35Z
项目社区:https://github.com/Artox/odd

开源协议:Mozilla Public License 2.0

下载


opendotdot

A free dotdot Framework. Documentation is currently available on the RheinMain University of Applied Sciences Distributed Systems Lab Wiki.

Requirements:

  • meson
  • libcoap
  • libcoap /usr/bin/coap-{client,server} (for examples):

    1. install -v -m755 -o root -g root examples/.libs/coap-client /usr/bin
    2. install -v -m755 -o root -g root examples/.libs/coap-server /usr/bin
  • QCBOR

  • /usr/lib/pkgconfig/qcbor.pc:

    1. Name: qcbor
    2. Description: qcbor
    3. Version: 0.0.0
    4. Cflags:
    5. Libs: -L/usr/lib -lqcbor
  • ZCL XML Schema:

    1. unzip 19-01018-000-zcl7.0-Dotdot.zip "*.xml" "*.xsd" -x "__MACOSX/*"
    2. mv 19-01018-000-zcl7.0_release zcl

Compile

  1. meson build; cd build
  2. ninja

Examples

Note: Examples below save state to data.bin in the working directory; Deletion is sufficient for a clean start.

Hello World

  • start application

    1. ./build/examples/hello/hello
  • run prepared queries

    1. ./examples/hello/test.sh

Persistent Attributes and Data Types

  • start application

    1. ./build/examples/types/types
  • run prepared queries

    1. ./examples/types/test.sh

Bindings

  • start application

    1. ./build/examples/binding/binding &
  • configure (and query) report configuration and bindings

    1. ./examples/binding/test.sh
  • start coap-server to examine notifications

    1. coap-server -p 1234 -v 9