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

问题描述 投票:0回答:2

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

我对kaa服务器的配置是:

transport host...=localhost=My PUBLIC ip 

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

host: MY PUBLIC IP port: 27017
kaa
2个回答
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

0
投票

第1步:更改Kaa主机/ IP

change kaa host

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

enter image description here

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

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.