简体   繁体   English

羚羊羚羊

[英]Antelope contiki-OS

I just started studying Contiki-OS. 我刚刚开始学习Contiki-OS。 And I am interested in Contiki - Antelope. 我对Contiki-羚羊感兴趣。 I try to the AQL (Antelope Query Language) to create relation, attribute and insert tuples in serial Cooja simulation. 我尝试使用AQL(羚羊查询语言)创建关系,属性并在串行Cooja模拟中插入元组。 Like this: 像这样:

create relation simple;
create attribute id domain int in sample;
create attribute temp domain int in sample;
insert (1,1) into sample;
insert (2.2) into sample;
....

But, I don't know how to insert auto about 1000 tuples? 但是,我不知道如何自动插入约1000个元组? I can't do this manual like: 我不能像这样做本手册:

insert (1,1) into sample;
insert (2.2) into sample;
.....
inser (1000,1000) into sample;

How to add 1000 tuples automatically? 如何自动添加1000个元组?

Contiki contains an Antelope example that automatically inserts a user-specified number of tuples into a database. Contiki包含一个羚羊示例,该示例自动将用户指定数量的元组插入数据库中。 See the file examples/antelope/netdb/netdb-server.c in the Contiki source code. 请参阅Contiki源代码中的文件examples / antelope / netdb / netdb-server.c。

Notice also that there are several typos in the commands and queries listed in your question, which may cause of some the problems. 还要注意,问题中列出的命令和查询中有多种错别字,这可能会导致某些问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM