将数据发送到KAA服务器时出错

时间:2017-02-01 17:32:24

标签: kaa

当使用第一个kaa服务器应用程序并从外部向我的Kaa服务器发送数据时,我收到此错误:CONNACK message + KAASYNC message。

我对kaa服务器的配置是:

transport host...=localhost=My PUBLIC ip 

我在kaa服务器上的配置mongo是:

host: MY PUBLIC IP port: 27017

2 个答案:

答案 0 :(得分:0)

这是我在编写SDK时获取的内容

[pool-2-thread-1] INFO org.kaaproject.kaa.client.channel.failover.DefaultFailoverManager - Server [BOOTSTRAP, -1835393002] failed
[pool-2-thread-1] WARN org.kaaproject.kaa.client.channel.impl.DefaultChannelManager - Attempt to connect to the next bootstrap service will be made in 2000 ms, according to failover strategy decision
[pool-1-thread-1] INFO FirstKaaDemo - Sampled Temperature: 34
[pool-4-thread-14] INFO org.kaaproject.kaa.client.logging.strategies.RecordCountLogUploadStrategy - Need to upload logs - current count: 14, threshold: 1
[Thread-2] INFO org.kaaproject.kaa.client.channel.impl.channels.DefaultOperationTcpChannel - Can't sync. Channel [default_operation_tcp_channel] is waiting for CONNACK message + KAASYNC message
[pool-6-thread-1] INFO org.kaaproject.kaa.client.channel.impl.channels.AbstractHttpChannel - Processing sync all for channel default_bootstrap_channel
[pool-1-thread-1] INFO FirstKaaDemo - Sampled Temperature: 25
[pool-4-thread-15] INFO org.kaaproject.kaa.client.logging.strategies.RecordCountLogUploadStrategy - Need to upload logs - current count: 15, threshold: 1
[Thread-2] INFO org.kaaproject.kaa.client.channel.impl.channels.DefaultOperationTcpChannel - Can't sync. Channel [default_operation_tcp_channel] is waiting for CONNACK message + KAASYNC message

答案 1 :(得分:0)

第1步:更改Kaa主机/ IP

change kaa host

到VM的IP地址。我的情况是192.168.1.142

enter image description here

第2步:重新生成SDK并重新编译并运行。完成

enter image description here