Kaa,我的第一个应用程序 - 无法检索收集的数据

时间:2017-02-17 03:09:58

标签: mongodb kaa

我正在做我的第一个kaa应用程序,我一直停留在Retrieve收集的数据步骤。

我已经构建了我的客户端项目,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 个答案:

答案 0 :(得分:0)

从您提供的日志中

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 

应用程序无法向Kaa Sandbox服务器发送信息。检查您是否正确创建了所有模式和日志追加器。检查您是否可以连接到服务器。

还请在“管理”页面上查看Kaa主机的沙箱配置。应该设置可以从运行该应用程序的主机访问的PC主机(运行Kaa Sandbox VM)机器的IP地址。

请注意,每次更改Kaa主机设置时,都应重新生成Kaa SDK并使用新的SDK文件重新构建应用程序。否则,应用程序可能无法连接到Kaa操作服务。