Skip to content

Commit 21d34cc

Browse files
committed
more
1 parent c28e025 commit 21d34cc

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

NetX/inc/u_nx_ethernet.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#define ETH_MAX_PACKETS 10 /* Maximum number of packets we wanna handle simultaneously */
1919
#define ETH_NUMBER_OF_NODES 8 /* Number of nodes in the network. */
2020
#define ETH_ENABLE_MANUAL_UDP_MULTICAST 0 // whether to enable UDP multicast
21-
#define ETH_ENABLE_IGMP 0 // whether to enable IGMP
21+
#define ETH_ENABLE_IGMP 1 // whether to enable IGMP
2222
#define ETH_ENABLE_MQTT 1 // whether to use a MQTT connection
2323
#define ETH_MQTT_SERVER_IP IP_ADDRESS(10,0,0,1) // the server address of the broker (TPU usually)
2424
#define ETH_MQTT_SERVER_PORT 1883

NetX/src/u_nx_ethernet.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ uint8_t ethernet_init(ethernet_node_t node_id, DriverFunction driver, OnRecieve
313313

314314
#if ETH_ENABLE_MQTT
315315
/* Create MQTT client instance. */
316-
char* client_id;
316+
char* client_id = "";
317317
UINT client_id_size = sprintf(client_id, "FW-%d", device.node_id);
318318

319319
status = nxd_mqtt_client_create(&device.mqtt_client, client_id,

0 commit comments

Comments
 (0)