Modularizando o src

Dependencies:   EALib EthernetInterface_vz mbed-rtos mbed

Fork of header_main_colinas_V0-20-09-14 by VZTECH

Revision:
104:62646ef786a3
Parent:
102:98c7155e8bea
Child:
105:a930035b6556
--- a/shared_variables.cpp	Thu Feb 19 18:04:33 2015 +0000
+++ b/shared_variables.cpp	Wed Feb 25 18:44:11 2015 +0000
@@ -91,4 +91,20 @@
 bool show_sip = false;
 uint32_t delayed_pkg_to_cb = 0;
 uint32_t cpld_pkg_tx_counter = 0;
-uint32_t cpld_pkg_rx_counter = 0;
\ No newline at end of file
+uint32_t cpld_pkg_rx_counter = 0;
+
+uint16_t miss_prompt_udp_send_pkg = 0;
+
+void udp_request_send_msg( char * msg )
+{
+    if( msg != NULL )
+    {
+        int send = udp_server.sendTo( udp_client, msg, strlen( msg ) );
+        if( send != strlen( msg ) )
+        {
+            if( debug_reconnect ) send_msg("Reconnect UDP_request client");
+            reconnect_prompt_udp_socket();
+            miss_prompt_udp_send_pkg++;
+        }
+    }
+}
\ No newline at end of file