GithubHelp home page GithubHelp logo

skyformat99 / icloud-tcp-gateway Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ibytecoding/icloud-tcp-gateway

0.0 1.0 0.0 136 KB

通过在云端进行智能边缘核心设备的建立、身份制定、策略规则制定、函数编写,然后生成配置文件下发;物联网设备网关技术架构设计(Session 管理、心跳管理、数据上行、数据下行)

License: Apache License 2.0

Java 100.00%

icloud-tcp-gateway's Introduction

icloud-tcp-gateway

watchers License last-commit code-size

介绍

物联网设备网关技术架构设计(Session 管理、心跳管理、数据上行、数据下行)

说明

  • TcpServer :提供TCP连接服务
  • TcpSessionManager: 你可以添加监听事件,用于监听TCP会话创建、销毁等
  • LogSessionListener:一个日志监听器,它和tcpSessionManager关联,监听器必须事先 SessionListener
  • TcpSender:TCP发送者,用户向客户端发送消息通知、实现下行逻辑
  • ServerConfig: TCP 的配置管理类
  • TcpConnector: TCP 容器,用于管理服务和客户端的连接
  • NotifyProxy: 发送通知到代理类

以上都是默认配置,你可以不修改,但是你可能需要换个TCP端口

TCP网关执行时序图

输入图片说明

程序运行案例步骤

测试案例,三秒心跳包上传数据包

输入图片说明

1.配置本地Host

Window 地址 // C:\Windows\System32\drivers\etc\hosts

添加 127.0.0.1 iot-open.icloud.com

2.启动Server

位置: com.ibyte.iot.test.server.TestTcpServer

2.启动Client

位置: com.ibyte.iot.test.client.TcpClient

icloud-tcp-gateway's People

Contributors

ibytecoding avatar

Watchers

 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.