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