Comments (1)
/*
*
* 测试脚本执行效果
*
*/
func TestLuaCallback(c *gin.Context, hh *HttpApiServer, e typex.RuleX) {
uuid, _ := c.GetQuery("uuid") // InEnd
data, _ := c.GetQuery("data") // Data
_, err0 := hh.GetMRule(uuid)
if err0 != nil {
c.JSON(200, Error400(err0))
return
}
value, ok := e.AllInEnd().Load(uuid)
if !ok {
c.JSON(200, Error(fmt.Sprintf("'InEnd' not exists: %v", uuid)))
return
}
_, err1 := e.WorkInEnd((value).(*typex.InEnd), data)
if err1 != nil {
c.JSON(200, Error400(err1))
}
c.JSON(200, Ok())
}
from rulex.
Related Issues (20)
- 功能建议: 支持站点配置 HOT 1
- 功能建议:轻量应用本地文件转换成存Sqlite
- 首页支持内存显示
- 首页开机运行时间
- 默认模板函数变动
- 有一些设备是无配置的,但是详情显示有 HOT 1
- 功能建议:使用https://expr.medv.io 设计数据查询语言
- 关于产品型号不同的GPIO初始化逻辑 HOT 1
- 关于守护进程 HOT 1
- 发现BUG:插件文档地址跳转问题
- 发现BUG:编辑设备时,寄存器配置-添加一行数据,Modbus功能码没默认值,应该为“03读保持寄存器” HOT 1
- 开源协议 HOT 1
- 功能建议: Sqlparse 解析 CREATE HOT 1
- 功能建议:西门子支持解析字符串地址格式 HOT 2
- 功能建议:将RuleEngine提到Component
- 功能建议:Modbus点位增加读写类型
- 功能建议:Tag点位支持表达式功能
- 功能建议:Modbus采集效率优化 HOT 1
- 组件管理器
- 功能建议:设备添加状态异常时的错误信息 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rulex.