Browse Source

change RemoteCtrl_Thread.

yuchuli 3 years ago
parent
commit
f86c6c8d0d

+ 18 - 0
src/driver/driver_camera_usb/main.cpp

@@ -193,12 +193,30 @@ void VideoThread(int n)
 }
 
 
+#include <thread>
+
+void testthread()
+{
+    void * mpx = iv::modulecomm::RegisterSend("test121",10000000,1);
+    char * str = new char[10000000];
+    while(1)
+    {
+        iv::modulecomm::ModuleSendMsg(mpx,str,9000000);
+    }
+}
+
 
 int main(int argc, char *argv[])
 {
+
+
+
     showversion("driver_camera_usb");
     QCoreApplication a(argc, argv);
 
+    std::thread * pthread = new std::thread(testthread);
+    return a.exec();
+
     QString strpath = QCoreApplication::applicationDirPath();
 //    QString apppath = strpath;
     if(argc < 2)

+ 1 - 1
src/driver/driver_cloud_grpc_pc_thread/grpcpc.h

@@ -66,7 +66,7 @@ private:
     void run();
 
 private:
-    std::string gstrserverip = "111.33.136.149";//"127.0.0.1";// "140.143.237.38";
+    std::string gstrserverip = "111.33.136.149";//"192.168.14.98";//"127.0.0.1";// "140.143.237.38";
     std::string gstrserverport = "50051";//"9000";
     std::string gstruploadinterval = "100";
     void * gpa;