diff --git a/examples/protocols/udp_multicast/main/Kconfig.projbuild b/examples/protocols/udp_multicast/main/Kconfig.projbuild index 920d15669..cf862e133 100644 --- a/examples/protocols/udp_multicast/main/Kconfig.projbuild +++ b/examples/protocols/udp_multicast/main/Kconfig.projbuild @@ -58,7 +58,7 @@ config EXAMPLE_MULTICAST_IPV6_ADDR config EXAMPLE_PORT int "Multicast port (send & receive)" range 0 65535 - default 333 + default 3333 help Multicast port the example will both send & receive UDP packets on. diff --git a/examples/protocols/udp_multicast/main/udp_multicast_example_main.c b/examples/protocols/udp_multicast/main/udp_multicast_example_main.c index a8efd1f08..af5bcb702 100644 --- a/examples/protocols/udp_multicast/main/udp_multicast_example_main.c +++ b/examples/protocols/udp_multicast/main/udp_multicast_example_main.c @@ -499,11 +499,11 @@ static void mcast_example_task(void *pvParameters) #ifdef CONFIG_EXAMPLE_IPV4_ONLY ((struct sockaddr_in *)res->ai_addr)->sin_port = htons(UDP_PORT); inet_ntoa_r(((struct sockaddr_in *)res->ai_addr)->sin_addr, addrbuf, sizeof(addrbuf)-1); - ESP_LOGI(TAG, "Sending to IPV4 multicast address %s...", addrbuf); + ESP_LOGI(TAG, "Sending to IPV4 multicast address %s:%d...", addrbuf, UDP_PORT); #else ((struct sockaddr_in6 *)res->ai_addr)->sin6_port = htons(UDP_PORT); inet6_ntoa_r(((struct sockaddr_in6 *)res->ai_addr)->sin6_addr, addrbuf, sizeof(addrbuf)-1); - ESP_LOGI(TAG, "Sending to IPV6 (V4 mapped) multicast address %s (%s)...", addrbuf, CONFIG_EXAMPLE_MULTICAST_IPV4_ADDR); + ESP_LOGI(TAG, "Sending to IPV6 (V4 mapped) multicast address %s port %d (%s)...", addrbuf, UDP_PORT, CONFIG_EXAMPLE_MULTICAST_IPV4_ADDR); #endif err = sendto(sock, sendbuf, len, 0, res->ai_addr, res->ai_addrlen); freeaddrinfo(res); @@ -527,7 +527,7 @@ static void mcast_example_task(void *pvParameters) struct sockaddr_in6 *s6addr = (struct sockaddr_in6 *)res->ai_addr; s6addr->sin6_port = htons(UDP_PORT); inet6_ntoa_r(s6addr->sin6_addr, addrbuf, sizeof(addrbuf)-1); - ESP_LOGI(TAG, "Sending to IPV6 multicast address %s...", addrbuf); + ESP_LOGI(TAG, "Sending to IPV6 multicast address %s port %d...", addrbuf, UDP_PORT); err = sendto(sock, sendbuf, len, 0, res->ai_addr, res->ai_addrlen); freeaddrinfo(res); if (err < 0) {