diff options
Diffstat (limited to 'include/udp.h')
-rw-r--r--[-rwxr-xr-x] | include/udp.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/include/udp.h b/include/udp.h index 358e585..0bf43ff 100755..100644 --- a/include/udp.h +++ b/include/udp.h @@ -1,16 +1,16 @@ -#ifndef DEVICE_UDP_H
-#define DEVICE_UDP_H
-
-#include <ESP8266WiFi.h>
-#include <WiFiUdp.h>
-
-static const int com_port = 6996;
-IPAddress ip; /* Daemon IP */
-WiFiUDP Udp;
-
-extern void discover_client(const int port);
-extern void udp_init_packet(IPAddress ip, const int port);
-extern void udp_push(const void * const data, const size_t size);
-extern int udp_flush(void);
-
+#ifndef DEVICE_UDP_H +#define DEVICE_UDP_H + +#include <ESP8266WiFi.h> +#include <WiFiUdp.h> + +static const int com_port = 6996; +IPAddress ip; /* Daemon IP */ +WiFiUDP Udp; + +extern void discover_client(const int port); +extern void udp_init_packet(IPAddress ip, const int port); +extern void udp_push(const void * const data, const size_t size); +extern int udp_flush(void); + #endif /* DEVICE_UDP_H */
\ No newline at end of file |