]> git.donarmstrong.com Git - qmk_firmware.git/blobdiff - tmk_core/tool/mbed/mbed-sdk/libraries/tests/net/helloworld/multicast_receive/main.cpp
Cleans up quantum/keymap situation, removes extra lufa folders (#416)
[qmk_firmware.git] / tmk_core / tool / mbed / mbed-sdk / libraries / tests / net / helloworld / multicast_receive / main.cpp
diff --git a/tmk_core/tool/mbed/mbed-sdk/libraries/tests/net/helloworld/multicast_receive/main.cpp b/tmk_core/tool/mbed/mbed-sdk/libraries/tests/net/helloworld/multicast_receive/main.cpp
deleted file mode 100644 (file)
index 0398bdd..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-#include "mbed.h"
-#include "EthernetInterface.h"
-
-const char* MCAST_GRP = "224.1.1.1";
-const int MCAST_PORT = 5007;
-
-int main() {
-    EthernetInterface eth;
-    eth.init(); //Use DHCP
-    eth.connect();
-
-    UDPSocket server;
-    server.bind(MCAST_PORT);
-    if (server.join_multicast_group(MCAST_GRP) != 0) {
-        printf("Error joining the multicast group\n");
-        while (true) {}
-    }
-
-    Endpoint client;
-    char buffer[256];
-    while (true) {
-        printf("\nWait for packet...\n");
-        int n = server.receiveFrom(client, buffer, sizeof(buffer));
-
-        printf("Packet from \"%s\": %s\n", client.get_address(), buffer);
-    }
-}