3 Star 7 Fork 3

cpp-master/protocal-adapter

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
Clone or Download
contribute
Sync branch
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README
MIT

protocal-adpater

License Language Platform

[中文]

What

Multi-protocol adapter implemented based on the cpp-tbox framework.

Feature

  • Support Uart, MQTT, TCP as server, TCP as client, UDP

Build

Step 1:build cpp-tbox first

git clone https://github.com/cpp-main/cpp-tbox.git
cd cpp-tbox;
STAGING_DIR=$HOME/.tbox make 3rd-party modules RELEASE=1
cd -

Step 2:build protocal-adapter

git clone https://github.com/cpp-main/protocal-adapter.git
cd protocal-adapter/src;
make

After build, we will see executable file adapter at src/.

Run

Cmd:

./adapter -c ../config/default.conf

Note:

  • If there is a problem with not having permission to open the serial port file, add sudo and execute again.
  • You can modify config/default.conf as needed.

Config

See config/default.conf for details, or read the source code.

Feedback

  • Issue: Any questions are welcome to communicate in issue
  • WeChat: hevake_lee
  • QQ group: 738084942 (cpp-tbox 技术交流)

Encourage us

If you find it useful, please give me more encouragement. You can do these:

  • Follow cpp-tbox open source project;
  • Light up three combos for it: Star, Watch, Fork;
  • Recommend to colleagues and partners around you, and recommend to your readers in technical forums;
  • Join the above QQ group, add me on WeChat to enter the WeChat group;
  • Positive feedback on issues and suggestions;
  • Participate in the development of the project and contribute your strength.
MIT License Copyright (c) 2024 Hevake Lee <hevake@126.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

串口、MQTT、TCP、UDP 多协议适配中间件 expand collapse
C++ and 2 more languages
MIT
Cancel

Releases

No release

Contributors

All

Activities

can not load any more
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/cpp-master/protocal-adapter.git
git@gitee.com:cpp-master/protocal-adapter.git
cpp-master
protocal-adapter
protocal-adapter
master

Search