diff --git a/include/NetworkHandler.h b/include/NetworkHandler.h index 0e86c0d..e70048b 100644 --- a/include/NetworkHandler.h +++ b/include/NetworkHandler.h @@ -12,5 +12,6 @@ void network_disconnect(void); void network_init(void); bool network_is_connected(void); +NetworkInterface *network_interface(void); #endif diff --git a/src/NetworkHandler.cpp b/src/NetworkHandler.cpp index 5ce289e..24d17c0 100644 --- a/src/NetworkHandler.cpp +++ b/src/NetworkHandler.cpp @@ -66,3 +66,8 @@ // function to check weather the network is connected bool network_is_connected(void) { return is_connected; } + +// allow other code to grab the network interface and use it +// do not hold on to this interface in case it changes + +NetworkInterface *network_interface(void) { return ð }