Code:
void ICACHE_FLASH_ATTR handle_udp_join_group(void) {
printf("handle_udp_join_group\n");
struct ip_addr ipgroup;
struct ip_info local_ip;
const WIFI_MODE mode = wifi_get_opmode();
if (mode & STATION_MODE) {
wifi_get_ip_info(STATION_IF, &local_ip);
} else {
wifi_get_ip_info(SOFTAP_IF, &local_ip);
}
ipaddr_aton("239.255.0.1", &ipgroup);
const uint8_t iret = igmp_joingroup(&local_ip.ip,(struct ip_addr *)(&ipgroup));
if (iret != ERR_OK) {
printf("Could not join\n");
}
}
Statistics: Posted by raspberrypidmx — Thu Oct 06, 2016 11:16 pm
Statistics: Posted by jhinkle — Sun Apr 24, 2016 7:05 am
Statistics: Posted by ESP_Faye — Wed Dec 02, 2015 3:41 pm
Statistics: Posted by EliteScientist — Wed Dec 02, 2015 1:37 pm
Statistics: Posted by EliteScientist — Tue Dec 01, 2015 12:05 pm
Statistics: Posted by ESP_Faye — Tue Dec 01, 2015 10:38 am
Statistics: Posted by ESP_Faye — Mon Nov 30, 2015 2:15 pm
Statistics: Posted by fabianpie — Fri Sep 04, 2015 3:03 pm