8000 renamed wifi_connect to basic_example · enginux/source-code-examples@b1c5037 · GitHub
[go: up one dir, main page]

Skip to content

Commit b1c5037

Browse files
committed
renamed wifi_connect to basic_example
1 parent 53bdf8c commit b1c5037

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed
File renamed without changes.
File renamed without changes.

wifi_connect/user/user_main.c renamed to basic_example/user/user_main.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,11 @@
88
#define user_procTaskPrio 0
99
#define user_procTaskQueueLen 1
1010
os_event_t user_procTaskQueue[user_procTaskQueueLen];
11-
static void user_procTask(os_event_t *events);
11+
static void loop(os_event_t *events);
1212

13-
14-
//Do nothing function
13+
//Main code function
1514
static void ICACHE_FLASH_ATTR
16-
user_procTask(os_event_t *events)
15+
loop(os_event_t *events)
1716
{
1817
os_delay_us(10);
1918
}
@@ -26,13 +25,14 @@ user_init()
2625
char password[64] = SSID_PASSWORD;
2726
struct station_config stationConf;
2827

28+
//Set station mode
29+
wifi_set_opmode( 0x1 );
30+
31+
//Set ap settings
2932
os_memcpy(&stationConf.ssid, ssid, 32);
3033
os_memcpy(&stationConf.password, password, 32);
31-
32-
33-
wifi_set_opmode( 0x1 );
3434
wifi_station_set_config(&stationConf);
3535

3636
//Start os task
37-
system_os_task(user_procTask, user_procTaskPrio,user_procTaskQueue, user_procTaskQueueLen);
37+
system_os_task(loop, user_procTaskPrio,user_procTaskQueue, user_procTaskQueueLen);
3838
}

0 commit comments

Comments
 (0)
0