File tree 2 files changed +9
-0
lines changed
esp8266com/esp8266/libraries/ESP8266WiFi
2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,14 @@ This is mostly similar to WiFi shield library. Differences include:
76
76
- ``` WiFi.localIP() ``` is for STA, ``` WiFi.softAPIP() ``` is for AP.
77
77
- ``` WiFi.RSSI() ``` doesn't work
78
78
- ``` 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.
79
87
80
88
WiFiServer, WiFiClient, and WiFiUDP behave mostly the same way as with WiFi shield library.
81
89
Four samples are provided for this library.
Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ remotePort KEYWORD2
53
53
softAP KEYWORD2
54
54
softAPIP KEYWORD2
55
55
softAPmacAddress KEYWORD2
56
+ softAPConfig KEYWORD2
56
57
printDiag KEYWORD2
57
58
hostByName KEYWORD2
58
59
scanNetworks KEYWORD2
You can’t perform that action at this time.
0 commit comments