peer_to_peer.py

# Ce travail est publié sous licence MIT.
# Copyright (c) 2013-2023 OpenMV LLC. Tous droits réservés.
# https://github.com/openmv/openmv/blob/master/LICENSE
#
# Exemple Ethernet LAN pair à pair.
# Sur le PC, essayez ce qui suit :
#
# $> sudo ifconfig eth0 192.168.1.100 up
# $> ping 192.168.1.102

import network
import time

lan = network.LAN()
lan.active(True)
lan.ifconfig(("192.168.1.102", "255.255.255.0", "192.168.1.1", "192.168.1.1"))

while True:
    # Rien d'autre à faire.
    time.sleep(1.0)

results matching ""

    No results matching ""