【问题标题】:Get gateway address in LUA esp8266在 LUA esp8266 中获取网关地址
【发布时间】:2016-06-14 01:24:27
【问题描述】:

我需要 ESP8266 的网关地址。我得到了我的 esp8266 的 IP 地址、掩码和网关地址,但我只需要网关地址。

如何单独获取网关地址?

我在nodeMCU 固件中使用了wifi.sta.getip() 函数。

【问题讨论】:

  • 感谢您的帮助
  • ip, netmask, gateway = wifi.sta.getip()

标签: lua gateway esp8266


【解决方案1】:

相关文档加示例在http://nodemcu.readthedocs.org/en/dev/en/modules/wifi/#wifistagetip

ip, netmask, gateway = wifi.sta.getip()
print(gateway)

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-09-11
    • 2012-03-25
    • 2014-10-31
    • 2013-09-18
    • 2014-05-28
    • 2013-05-28
    • 1970-01-01
    • 2017-07-24
    相关资源
    最近更新 更多