当前位置:网站首页>Iotp2pgate two IOT devices point-to-point communication fast implementation scheme
Iotp2pgate two IOT devices point-to-point communication fast implementation scheme
2022-07-24 05:55:00 【Meow, meow, hammer, you cute】
IoTP2PGate
Project address
describe
In order to solve the problem that the communication module of the Internet of things cannot quickly realize point-to-point communication with mobile phones or other Internet of things devices ,IoTP2PGate emerge as the times require .IoTP2PGate It is mainly used for simple development verification , After all, it was written for the convenience of graduation design .
characteristic
- It supports and only supports point-to-point communication between two IOT devices .
- The device will (ip,port) As the address of another device , Hide the server forwarding process behind .
Use
- Prepare to have a public network IP,Linux One ECS of the system .( Please ensure that the firewall on the server and the firewall provided by the cloud service provider platform have opened the corresponding ports )
- Enter the following command to download and compile IoTP2PGate :
git clone https://github.com/MisakaMikoto128/IoTP2PGate.git
cd IoTP2PGate
make
perhaps
git clone https://gitee.com/liuyuanlin6445/IoTP2PGate.git
cd IoTP2PGate
make
3. Use :
./p2pgate <port> [debug]
- debug Is an optional parameter , Used to view information in the communication process .
- port Is the port number , Mandatory . for example 666
- eg:
./p2pgate 666
- At this time, two network connected devices pass socket.connect( Server public network IP,PORT) To establish its TCP Connect , The two devices can communicate with each other .
matters needing attention
- Two socket After the connection between the client and the server is established, the channel for mutual communication is officially established .
- after IoTP2PGate Will reject other sockt Connect until the original two socket One or all of the clients disconnect from the server .
边栏推荐
- Unknown collation: ‘utf8mb4_ 0900_ ai_ Solution of CI '
- Positional argument after keyword argument
- Machine learning (zhouzhihua) Chapter 1 Introduction notes learning experience
- 测试数据增强后标签和数据集是否对应
- 【深度学习】手把手教你写“手写数字识别神经网络“,不使用任何框架,纯Numpy
- 《统计学习方法(第2版)》李航 第十三章 无监督学习概论 思维导图笔记
- Multi merchant mall system function disassembly lecture 05 - main business categories of platform merchants
- 《机器学习》(周志华) 第5章 神经网络 学习心得 笔记
- Delete the weight of the head part of the classification network pre training weight and modify the weight name
- [activiti] activiti system table description
猜你喜欢

What do programmers often mean by API? What are the API types?

The SaaS mall system of likeshop single merchant is built, and the code is open source without encryption.

如何在网页上下载视频

第四章 决策树总结

Likeshop100% open source encryption free B2B2C multi merchant mall system

On the concepts of "input channel" and "output channel" in convolutional neural networks

Multi merchant mall system function disassembly lecture 12 - platform side commodity evaluation

C语言链表(创建、遍历、释放、查找、删除、插入一个节点、排序,逆序)

如何解决训练集和测试集的分布差距过大问题

第五章神经网络
随机推荐
[MYCAT] MYCAT installation
PyTorch 单机多卡分布式训练
Recommend a fully open source, feature rich, beautiful interface mall system
原生js放大镜效果
The SaaS mall system of likeshop single merchant is built, and the code is open source without encryption.
[activiti] activiti system table description
"Statistical learning methods (2nd Edition)" Li Hang Chapter 17 latent semantic analysis LSA LSI mind mapping notes and after-school exercise answers (detailed steps) Chapter 17
vscode 多行注释总是会自动展开的问题
MySQL batch insert demo
[MYCAT] MYCAT configuration file
KMP代码分布详解
找ArrayList<ArrayList<Double>>中出现次数最多的ArrayList<Double>
Chapter III summary of linear model
Multi merchant mall system function disassembly lecture 08 - platform end commodity classification
Answers and analysis of some after-school exercises in signals and systems (Wujing)
Machine learning (zhouzhihua) Chapter 2 model selection and evaluation notes learning experience
js星星打分效果
Qt char型转QString型 16进制与char型 转 16进制整型
用指针访问二维数组
Multi merchant mall system function disassembly Lecture 10 - platform end commodity units