openharmony hi3518开发板实现自启动程序
原创 精华
目标:实现开机自动连接wifi前期准备1、下载轻量小型标准系统源码修改源码1、修改applicationssamplecameracommunicationwpasupplicantsrcwpasample.c的main函数intmain(intargc,charargv[]){gwpaArgcargc;for(inti0;i<gwpaArgc;i++){gwpaArg[i]argv[i];}gwpaArgc5;gwpaArg[1]"i";gwpaArg[2]"wlan0";gwpaArg[3]"c";gwpaArg[4]"etcwpasupplicant.conf";intretpthreadcreate(&gwpaThread,NULL,ThreadMain,NULL);if(ret!0){printf(...