1 Star 1 Fork 0

稀饭放姜 / blog

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Luat logo

LuaTask_V3.0

合宙 2G/4G/CAT.1 通用 lib 库

  1. 支持 2G/4G/CAT.1 模块, lib库通用
  2. 串口支持流模式和帧模式
  3. Socket 支持帧模式和流模式
  4. Uart、Socket、MQTT、WebSocket支持同步和异步模式

一个透传代码,只需要4行代码:

-- 创建 uart 对象
local u1 = uart.new(1, 115200)
-- 创建 webSocket 对象
local sc = socket.new("tcp")
sys.taskInit(sc.start, sc, "180.97.80.55", "12415", 180, nil, nil, 25, "heart", function(msg)u1:send(msg) end)
sys.taskInit(u1.start, u1, nil, 10, nil,  function(msg)sc:send(msg) end)

如何使用LuaTask V3.0

  1. 首先, 有个开发板(LTE)
  2. 然后, 下载固件包
  3. 然后, 按教程下载和调试LuaTools
  4. 开始愉快地玩耍(或者放着积灰...)

资源


使用到的开源项目

  • lua Lua官网
  • X-MagicBox 在RT-Thread环境下读取ds18b20
  • LuaTask 合宙LuaTask
  • iRTU 基于Luat的DTU, 稀饭大神
  • elua eLua 虽然已经停更多年,但精神犹在

更多项目

  • iRTU 开源DTU/RTU解决方案
  • Luat_CSDK_Air724U 市面上最畅销的4G Cat.1模块的开发包
  • llcom 可运行lua脚本的高自由度串口调试工具
  • irtu-gps 基于iRTU项目,实现GPS数据的接收和展示

总体架构

总体架构

授权协议

MIT License

MIT License Copyright (c) 2020 稀饭放姜 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.

简介

LuaTask 相关工具和使用教程 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/hotdll/blog.git
git@gitee.com:hotdll/blog.git
hotdll
blog
blog
master

搜索帮助