1 /* 2 * Copyright (c) 2006-2023, RT-Thread Development Team 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 * 6 * Change Logs: 7 * Date Author Notes 8 * 2022/01/20 bernard the first version 9 */ 10 11 #include <stdint.h> 12 #include <stdio.h> 13 #include <stdlib.h> 14 15 #include <rtthread.h> 16 17 #ifdef PKG_USING_RW007 18 #define WIFI_SH_PATH "/sd/wifi.sh" 19 rw007_wifi_init(void)20int rw007_wifi_init(void) 21 { 22 if (access(WIFI_SH_PATH, 0) != -1) 23 { 24 msh_exec(WIFI_SH_PATH, rt_strlen(WIFI_SH_PATH)); 25 } 26 else 27 { 28 rt_kprintf("%s wi-fi configuration file not exist in sd card!\n", WIFI_SH_PATH); 29 } 30 31 return 0; 32 } 33 INIT_APP_EXPORT(rw007_wifi_init); 34 #endif 35