这里会显示出您选择的修订版和当前版本之间的差别。
| — |
en:arduino:libraries:ethernetmaintain [2016/12/25 22:15] (当前版本) |
||
|---|---|---|---|
| 行 1: | 行 1: | ||
| + | [[en:arduino:libraries:ethernet|Ethernet]] | ||
| + | ====== Ethernet.maintain() ====== | ||
| + | |||
| + | ===== Description ===== | ||
| + | |||
| + | Allows for the renewal of DHCP leases. When assigned an IP address via DHCP, ethernet devices are given a lease on the address for an amount of time. With Ethernet.maintain(), it is possible to request a renewal from the DHCP server. Depending on the server's configuration, you may receive the same address, a new one, or none at all. | ||
| + | |||
| + | Ethernet.maintain() was added to Arduino 1.0.1. | ||
| + | ===== Syntax ===== | ||
| + | |||
| + | Ethernet.maintain(); | ||
| + | ===== Parameters ===== | ||
| + | |||
| + | none | ||
| + | ===== Returns ===== | ||
| + | <code> | ||
| + | byte: | ||
| + | 0: nothing happened | ||
| + | 1: renew failed | ||
| + | 2: renew success | ||
| + | 3: rebind fail | ||
| + | 4: rebind success | ||
| + | </code> | ||
| + | |||
| + | |||
| + | [[en:arduino:libraries|Reference Home]] | ||