我正在做我的第一个KAA应用程序,我在检索收集的数据步骤卡住了。
我已经构建了我的客户端项目,kaa-app运行如下:
viettq@viettq:~/Documents/workspace/kaa_example/build$
viettq@viettq:~/Documents/workspace/kaa_example/build$
viettq@viettq:~/Documents/workspace/kaa_example/build$
viettq@viettq:~/Documents/workspace/kaa_example/build$
viettq@viettq:~/Documents/workspace/kaa_example/build$
viettq@viettq:~/Documents/workspace/kaa_example/build$
viettq@viettq:~/Documents/workspace/kaa_example/build$ ./kaa-app
Default sample period: 1 seconds
Sampled temperature: 33
2017/02/17 2:29:10 [WARNING] [kaa_bootstrap_manager.c:612] (-7) - Could not find next Bootstrap access point (protocol: id=0x56C8FF92, version=1)
2017/02/17 2:29:10 [ERROR] [kaa_tcp_channel.c:307] (-7) - Kaa TCP channel [0x929A2016] error notifying bootstrap manager on access point failure
2017/02/17 2:29:10 [ERROR] [kaa_client.c:240] (-7) - Failed to process OUT event for the client socket 3
Sampled temperature: 30
Sampled temperature: 32
Sampled temperature: 26
2017/02/17 2:29:13 [WARNING] [kaa_bootstrap_manager.c:612] (-7) - Could not find next Bootstrap access point (protocol: id=0x56C8FF92, version=1)
2017/02/17 2:29:13 [ERROR] [kaa_tcp_channel.c:307] (-7) - Kaa TCP channel [0x929A2016] error notifying bootstrap manager on access point failure
2017/02/17 2:29:13 [ERROR] [kaa_client.c:240] (-7) - Failed to process OUT event for the client socket 3
Sampled temperature: 31
Sampled temperature: 32
Sampled temperature: 31
字符串
一些数据发送到kaa沙盒服务器。我的ssh到kaa沙盒服务器如下:
kaa@kaa-sandbox.kaaproject.org:~$
kaa@kaa-sandbox.kaaproject.org:~$
kaa@kaa-sandbox.kaaproject.org:~$
kaa@kaa-sandbox.kaaproject.org:~$
kaa@kaa-sandbox.kaaproject.org:~$
kaa@kaa-sandbox.kaaproject.org:~$
kaa@kaa-sandbox.kaaproject.org:~$
kaa@kaa-sandbox.kaaproject.org:~$
kaa@kaa-sandbox.kaaproject.org:~$ mongo kaa
MongoDB shell version: 2.6.1
connecting to: kaa
> db.logs_80610364736216152939.find()
> db.logs_80610364736216152939.find()
> db.logs_80610364736216152939.find()
>
[2]+ Stopped mongo kaa
kaa@kaa-sandbox.kaaproject.org:~$ mongo kaa
MongoDB shell version: 2.6.1
connecting to: kaa
> db.logs_80610364736216152939.find()
>
>
>
型
在mongoDB shell中没有。
我做的一切完全编译的Kaa官方教程http://kaaproject.github.io/kaa/docs/v0.10.0/Programming-guide/Your-first-Kaa-application/
但是我没有从MongoDB shell中检索到任何内容。
请帮我解决它。
先谢了!
1条答案
按热度按时间whlutmcx1#
根据您提供的日志:
字符串
应用程序无法向Kaa Sandbox服务器发送信息。检查是否正确创建了所有架构和日志附加器。检查您是否可以连接到服务器。
另请在管理页面上检查Kaa主机的沙盒配置。应该设置PC主机(运行Kaa Sandbox VM)机器的IP地址,可从您正在运行应用程序的主机访问。
请注意,每次更改Kaa主机设置时,您都应该重新生成Kaa SDK并使用新的SDK文件重新构建应用程序。否则,应用程序可能无法连接到Kaa操作服务。