mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Update script.
This commit is contained in:
parent
a1600a2ae4
commit
b7b8382d79
@ -1,14 +1,14 @@
|
|||||||
# Ethernet LAN Peer to Peer example.
|
# Ethernet LAN Peer to Peer example.
|
||||||
# On the PC try the following:
|
# On the PC try the following:
|
||||||
#
|
#
|
||||||
# $> sudo ifconfig eth0 192.168.1.102 up
|
# $> sudo ifconfig eth0 192.168.1.100 up
|
||||||
# $> ping 192.168.1.102
|
# $> ping 192.168.1.102
|
||||||
|
|
||||||
import network, time
|
import network, time
|
||||||
|
|
||||||
lan = network.LAN()
|
lan = network.LAN()
|
||||||
lan.active(True)
|
lan.active(True)
|
||||||
lan.ifconfig(('192.168.1.100', '255.255.255.0', '192.168.1.1', '192.168.1.1'))
|
lan.ifconfig(('192.168.1.102', '255.255.255.0', '192.168.1.1', '192.168.1.1'))
|
||||||
|
|
||||||
while (True):
|
while (True):
|
||||||
# Nothing else to do.
|
# Nothing else to do.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user