用户工具

站点工具


reference:library:ethercard:staticsetup

staticSetup()

描述

配置网络接口使用静态IP

语法

staticSetup ( *my_ip, *gw_ip=0, *dns_ip=0, *mask=0)

参数

my_ip: IP地址(4字节), 0无变化。

gw_ip: 网关地址(4字节), 0无变化,默认值= 0。

dns_ip:DNS地址(4字节), 0无变化,默认值= 0。

mask: 子网掩码(4字节), 0无变化,默认值= 0。

返回

实际上总是如此 - bool成功返回true

返回上一级

reference/library/ethercard/staticsetup.txt · 最后更改: 2023/06/07 04:24 由 127.0.0.1