提交 29e63554 编写于 作者: S StoneT2000

Update cinterface.js

上级 19fbf34e
......@@ -482,14 +482,9 @@ CTaosInterface.prototype.subscribe = function subscribe(connection, restart, top
catch(err) {
throw TypeError("topic is expected as a str");
}
// try {
// interval = ref.alloc(ref.types.int, interval);
// }
// catch(err) {
// throw TypeError("interval is expected as an int");
// }
restart = ref.alloc(ref.types.int, restart);
//TAOS_SUB *taos_subscribe(TAOS* taos, int restart, const char* topic, const char *sql, TAOS_SUBSCRIBE_CALLBACK fp, void *param, int interval)
let subscription = this.libtaos.taos_subscribe(connection, restart, topic, sql, null, null, interval);
if (ref.isNull(subscription)) {
throw new errors.TDError('Failed to subscribe to TDengine | Database: ' + dbOrig + ', Table: ' + tableOrig);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册