Skip to content

Commit b611535

Browse files
committed
Correct review findings round 2
1 parent ce79b12 commit b611535

File tree

1 file changed

+3
-2
lines changed
  • content/firmwareapi/pycom/network

1 file changed

+3
-2
lines changed

content/firmwareapi/pycom/network/mdns.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ MDNS.add_service("_http", MDNS.PROTO_TCP, 80)
2525
# Add an UDP service to advertise
2626
MDNS.add_service("_myservice", MDNS.PROTO_UDP, 1234, txt= (("board","esp32"),("u","user"),("p","password")))
2727

28-
# Wait some time
28+
# Give the other devices time to discover the services offered
2929
time.sleep(60)
30+
3031
# Remove a service, it will no longer be advertised
3132
MDNS.remove_service("_http", MDNS.PROTO_TCP)
3233

@@ -70,7 +71,7 @@ Deinitializes the MDNS module and removes all registered services.
7071

7172
#### MDNS.set_name(\*, hostname=None, instance_name=None)
7273

73-
Sets the hostname and instance name of this device to be advertised.
74+
Sets the hostname and instance name of the device that is going to be advertised.
7475

7576
The arguments are:
7677

0 commit comments

Comments
 (0)