Skip to content

Commit c397721

Browse files
committed
Merge remote-tracking branch 'upstream/esp8266'
2 parents a6be93b + 69eb31a commit c397721

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,14 @@ This is mostly similar to WiFi shield library. Differences include:
7676
- ```WiFi.localIP()``` is for STA, ```WiFi.softAPIP()``` is for AP.
7777
- ```WiFi.RSSI()``` doesn't work
7878
- ```WiFi.printDiag(Serial);``` will print out some diagnostic info
79+
- ```WiFiUDP``` class supports sending and receiving multicast packets on STA interface.
80+
When sending a multicast packet, replace ```udp.beginPacket(addr, port)``` with
81+
```udp.beginPacketMulticast(addr, port, WiFi.localIP())```.
82+
When listening to multicast packets, replace ```udp.begin(port)``` with
83+
```udp.beginMulticast(WiFi.localIP(), multicast_ip_addr, port)```.
84+
You can use ```udp.destinationIP()``` to tell whether the packet received was
85+
sent to the multicast or unicast address.
86+
Also note that multicast doesn't work on softAP interface.
7987

8088
WiFiServer, WiFiClient, and WiFiUDP behave mostly the same way as with WiFi shield library.
8189
Four samples are provided for this library.

esp8266com/esp8266/libraries/ESP8266WiFi/keywords.txt

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ remotePort KEYWORD2
5353
softAP KEYWORD2
5454
softAPIP KEYWORD2
5555
softAPmacAddress KEYWORD2
56+
softAPConfig KEYWORD2
5657
printDiag KEYWORD2
5758
hostByName KEYWORD2
5859
scanNetworks KEYWORD2

0 commit comments

Comments
 (0)