简体   繁体   English

没有预设 IP 地址的 MQTT 代理连接

[英]MQTT broker connect without pre-set IP address

I am building a application to use raspberry as MQTT broker & client and receive the message from ESP32 which is another MQTT client.我正在构建一个应用程序以使用 raspberry 作为 MQTT 代理和客户端,并从另一个 MQTT 客户端 ESP32 接收消息。 I need to have ESP32 to get the broker connected without pre-setting IP address manually.我需要使用 ESP32 来连接代理,而无需手动预先设置 IP 地址。 Does anyone know how to let raspberry share the IP address wirelessly and safely?有谁知道如何让树莓派无线安全地共享IP地址? Or could the raspberry pi get a static IP address no matter what network configuration user changed?或者无论用户更改什么网络配置,树莓派都能获得静态 IP 地址吗? Thank you for any help or discuss.感谢您的任何帮助或讨论。

These two instructions gave some help: to build mDNS lookups in raspberry and mDNS client to receive string input.这两条指令提供了一些帮助:在 raspberry 和 mDNS 客户端中构建 mDNS 查找以接收字符串输入。 More logic needed to define the principle of "blind search" but considering the security reason, we preferred to transfer string host name by BLE from app side.定义“盲搜索”的原则需要更多的逻辑,但考虑到安全原因,我们更喜欢从应用程序端通过BLE传输字符串主机名。

mDNS client in ESP32 to receive string input How is the ESP32 (DOIT DevKit) finding another host in the same LAN via mDNS? ESP32 中的 mDNS 客户端接收字符串输入ESP32 (DOIT DevKit) 如何通过 mDNS 在同一局域网中找到另一台主机?

to build mDNS lookups in raspberry:在 raspberry 中构建 mDNS 查找:

http://root42.blogspot.com/2015/02/how-to-setup-mdns-lookups-on-raspberry.html http://root42.blogspot.com/2015/02/how-to-setup-mdns-lookups-on-raspberry.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM