JurajSadel / esp32c3-no-std-async-mqtt-demo

Apache License 2.0
23 stars 2 forks source link

Replace the hardcoded ip address with a dns lookup #1

Closed MabezDev closed 1 year ago

MabezDev commented 1 year ago

I can't actually test that it works because my ISP is having issue right now :upside_down_face:.

I can test at least that the error handling works :D.

For my router I also needed to bump the number of DNS servers smoltcp has capacity for with:

# .cargo/config.toml
[env]
SMOLTCP_DNS_MAX_SERVER_COUNT = "3"

Be warned that you have to do a clean build for those changes to take effect, see: https://github.com/rust-lang/cargo/issues/10358