ESP8266 Developer Zone The Official ESP8266 Forum 2016-10-14T17:51:13+08:00 https://bbs.espressif.com:443/feed.php?f=66&t=2751 2016-10-14T17:51:13+08:00 2016-10-14T17:51:13+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2751&p=10164#p10164 <![CDATA[Re: Impossible to join multicast group on RTOS SDK 1.4.x]]> Either way I got it working with the espconn api.

Statistics: Posted by gustavo — Fri Oct 14, 2016 5:51 pm


]]>
2016-10-06T23:09:24+08:00 2016-10-06T23:09:24+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2751&p=10065#p10065 <![CDATA[Re: Impossible to join multicast group on RTOS SDK 1.4.x]]>
It is possible. I have the following working code with RTOS SDK 1.4.2 :

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");
   }

}


The full code can be found here -> https://github.com/vanvught/rpidmx512/t ... os_sdk_rpi

Statistics: Posted by raspberrypidmx — Thu Oct 06, 2016 11:09 pm


]]>
2016-09-07T17:33:35+08:00 2016-09-07T17:33:35+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2751&p=9762#p9762 <![CDATA[Re: Impossible to join multicast group on RTOS SDK 1.4.x]]> Statistics: Posted by gustavo — Wed Sep 07, 2016 5:33 pm


]]>
2016-09-06T18:28:08+08:00 2016-09-06T18:28:08+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2751&p=9751#p9751 <![CDATA[Impossible to join multicast group on RTOS SDK 1.4.x]]>
I have tried both the 1.4.0 and the 1.4.2 (git 1.4.x branch) but I can't join any group.
I can't even catch any igmp packet from the esp.

I read this thread: viewtopic.php?t=1058 and it seems that at the time it wasn't possible to use multicast on the RTOS SDK.

Please advise.
Gustavo

Statistics: Posted by gustavo — Tue Sep 06, 2016 6:28 pm


]]>