gpt4 book ai didi

raspberry-pi3 - Google Weave (libiota) Host Hvac

转载 作者:行者123 更新时间:2023-12-02 04:37:04 26 4
gpt4 key购买 nike

我关注了these stepsHost Light 示例设备在 Weave 上注册并在 Raspberry Pi 3 上运行。我可以使用主页和 Weave 控制台控制它。

现在我正尝试对 Host Hvac 设备执行相同操作(我查看了 Hvac example for the MW302 作为引用),但我无法使用 注册该设备>./out/host/examples/hvac/hvac -r xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.

它卡在以下位置,没有明显的错误:

[(4068588.179)I daemon.c:146] Heap state at daemon_connected: free=0, iota_allocated=15721, iota_max_allocated=15754
[(4068588.180)I daemon.c:152] Daemon connected.

Host Light 示例中,我确实看到设备正在注册并且工作正常:

[(4069131.290)I daemon.c:268] Waiting for registration message to be sent.
[(4069131.290)I daemon.c:146] Heap state at daemon_connected: free=0, iota_allocated=15234, iota_max_allocated=15268
[(4069131.290)I daemon.c:152] Daemon connected.
[(4069131.290)I daemon.c:137] Registering with ticket xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
[(4069131.290)I weave_http.c:98] Sending PATCH Request https://www.googleapis.com/weave/v1/registrationTickets/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx?key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
[(4069133.198)I weave_register.c:205] Sending Registration Finalize Request
[(4069133.198)I weave_http.c:98] Sending POST Request https://www.googleapis.com/weave/v1/registrationTickets/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/finalize?key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
[(4069135.880)I settings.c:71] Device id: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
[(4069135.880)I weave_register.c:233] Sending Registration OAuth Request
[(4069135.880)I weave_http.c:98] Sending POST Request https://accounts.google.com/o/oauth2/token
[(4069135.196)I weave_register.c:270] Registration Complete
[(4069135.196)I dev_framework.c:295] Heap state at daemon_registered: free=0, iota_allocated=23704, iota_max_allocated=35344
[(4069135.196)I dev_framework.c:296] Registration Succeeded.

> [(4069135.197)I weave.c:550] Fetching Command Queue

有没有人设法成功创建Host Hvac 设备?

最佳答案

not able to register the device with ./out/host/examples/hvac/hvac -r xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.

It gets stuck at the following, with no visible errors:

我认为您在 main() 和 HostIotaFrameworkConfig 配置中添加了 argc、argv

例如:

int main(int argc, char** argv)

HostIotaFrameworkConfig config = (HostIotaFrameworkConfig) {

.base =
(IotaFrameworkConfig){
.cli_commands = NULL,
.num_commands = 0,
.builder = create_daemon_,
},
.argc = argc,
.argv = argv,
.user_data = NULL,

};

关于raspberry-pi3 - Google Weave (libiota) Host Hvac,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41576079/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com