nova proba

Revision:
12:cbfc10c15437
Parent:
11:2cc7e6f06cff
Child:
13:03617f6ed112
diff -r 2cc7e6f06cff -r cbfc10c15437 main.cpp
--- a/main.cpp	Fri May 01 10:43:05 2020 +0000
+++ b/main.cpp	Fri May 01 23:15:28 2020 +0000
@@ -65,18 +65,34 @@
 
    gpc_html = new C_HTMLparse;
 
+//                    auto c = gpc_html->getHTML_free( );  // konvertovanje HTMLa u niz
+//                    printf("\n\r HTML:\n\n %s\n\rduzina = %d", c, strlen(c));  // slanje HTML-a
+//                    free(c); // oslobadjanje memorije HTML niza
+
 //    putHTMLintoFLASH( gpc_html );
     putFLASHintoHTML( gpc_html );
 
 
-    init_EthToScom(  );
+//    init_EthToScom(  );
+
+   extern EthernetInterface *gp_eth;
+
+   gp_eth = ethernet_setup(  );
+
+    if(gp_eth == NULL) printf("ethernet greska\n\r"); 
+    else 
+    {
+      printf("eth OK\n\r");
+      scomRxThreadRiseUp(  );
+      udpRxThreadRiseUp(  );
 
 #if NO_UDP <= 1
     inic_TcpServerToFlash(  );
 #endif
-
+    }
+    
 extern void test_HTML(void);
-  //  test_HTML( );
+//    test_HTML( );
 
     
 int i=0;