|
| 1 | +// Copyright (C) 2023 wwhai |
| 2 | +// |
| 3 | +// This program is free software: you can redistribute it and/or modify |
| 4 | +// it under the terms of the GNU Affero General Public License as |
| 5 | +// published by the Free Software Foundation, either version 3 of the |
| 6 | +// License, or (at your option) any later version. |
| 7 | +// |
| 8 | +// This program is distributed in the hope that it will be useful, |
| 9 | +// but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | +// GNU Affero General Public License for more details. |
| 12 | +// |
| 13 | +// You should have received a copy of the GNU Affero General Public License |
| 14 | +// along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | + |
1 | 16 | package appstack |
2 | 17 |
|
3 | 18 | import ( |
@@ -84,9 +99,7 @@ func LoadAppLib(app *typex.Application, e typex.RuleX) { |
84 | 99 | // 消息转发 |
85 | 100 | addAppLib(app, e, "applib", "DataToHttp", rulexlib.DataToHttp(e)) |
86 | 101 | addAppLib(app, e, "applib", "DataToMqtt", rulexlib.DataToMqtt(e)) |
87 | | - // DataToIthings 专门为Ithings支持的 |
88 | | - // vendor: 三方支持命名空间 |
89 | | - addAppLib(app, e, "vendor", "DataToIthings", rulexlib.DataToMqtt(e)) |
| 102 | + |
90 | 103 | addAppLib(app, e, "applib", "DataToUdp", rulexlib.DataToUdp(e)) |
91 | 104 | // JQ |
92 | 105 | addAppLib(app, e, "applib", "JqSelect", rulexlib.JqSelect(e)) |
@@ -173,9 +186,9 @@ func LoadAppLib(app *typex.Application, e typex.RuleX) { |
173 | 186 | //------------------------------------------------------------------------ |
174 | 187 | // 注册GPIO操作函数到LUA运行时 |
175 | 188 | //------------------------------------------------------------------------ |
176 | | - // EEKIT |
177 | | - addAppLib(app, e, "eekit", "GPIOGet", rulexlib.EEKIT_GPIOGet(e)) |
178 | | - addAppLib(app, e, "eekit", "GPIOSet", rulexlib.EEKIT_GPIOSet(e)) |
| 189 | + // EEKIT H3 |
| 190 | + addAppLib(app, e, "eekith3", "GPIOGet", rulexlib.EEKIT_GPIOGet(e)) |
| 191 | + addAppLib(app, e, "eekith3", "GPIOSet", rulexlib.EEKIT_GPIOSet(e)) |
179 | 192 | // 树莓派4B |
180 | 193 | addAppLib(app, e, "raspi4b", "GPIOGet", rulexlib.RASPI4_GPIOGet(e)) |
181 | 194 | addAppLib(app, e, "raspi4b", "GPIOSet", rulexlib.RASPI4_GPIOSet(e)) |
|
0 commit comments