Giter Club home page Giter Club logo

jetlinks-core's Introduction

Jet Links 核心模块

Maven Central Maven metadata URL Build Status codecov

设备定义(metadata)

设备主要由3部分组成:

  1. 属性,对设备的描述,如: 型号,当前电量。
  2. 功能,对设备的操作,如: 打开开关,获取设备状态。
  3. 事件,设备主动上报数据,如:定时上报温度,传感器触发警报。

数据类型

设备注册中心(registry)

负责管理设备到基础信息,配置,状态以及集群下到消息收发.

   DeviceRegistry registry  = ....;

   //发送调用设备功能消息到设备并等待返回
   DeviceSysInfo output= registry.getDevice(deviceId)
          .messageSender()
          .invokeFunction("getSysInfo")
          .tryValidateAndSend(10,TimeUnit.SECONDS)//最大等待10秒
          //超时异常处理
          .recover(TimeoutException.class, err -> FunctionInvokeMessageReply.create().error(ErrorCode.TIME_OUT))
          .map(this::convertSysInfo)
          .get(); 
          

多协议支持(protocol)

平台支持多消息协议支持,使用不同消息协议(ALink,MIot....)的设备只需要做最小改动(修改服务器地址和证书)即可接入. 对平台其他服务无侵入.

jetlinks-core's People

Contributors

zhou-hao avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.