Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
lucadentella committed Jan 21, 2018
2 parents 859ae01 + 9137ffa commit c35ffb3
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion 00_empty/main/00_empty.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ void loop_task(void *pvParameter)
void app_main()
{

xTaskCreate(&loop_task, "loop_task", 512, NULL, 5, NULL);
xTaskCreate(&loop_task, "loop_task", 1024, NULL, 5, NULL);
}
4 changes: 4 additions & 0 deletions 01_wifi_scanner/main/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include "esp_event_loop.h"
#include "esp_wifi.h"
#include "esp_log.h"
#include "nvs_flash.h"

#define MAX_APs 20

Expand Down Expand Up @@ -32,6 +33,9 @@ void loop_task(void *pvParameter)

void app_main()
{
// initialize NVS
ESP_ERROR_CHECK(nvs_flash_init());

// initialize the tcp stack
tcpip_adapter_init();

Expand Down
5 changes: 3 additions & 2 deletions 02_wifi_connection/main/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include "esp_wifi.h"
#include "esp_event_loop.h"
#include "esp_log.h"
#include "nvs_flash.h"

#define WIFI_SSID "MYSSID"
#define WIFI_PASS "MYPASSWORD"
Expand Down Expand Up @@ -68,8 +69,8 @@ void app_main()
// disable the default wifi logging
esp_log_level_set("wifi", ESP_LOG_NONE);

// disable stdout buffering
setvbuf(stdout, NULL, _IONBF, 0);
// initialize NVS
ESP_ERROR_CHECK(nvs_flash_init());

// create the event group to handle wifi events
wifi_event_group = xEventGroupCreate();
Expand Down
4 changes: 4 additions & 0 deletions 12_accesspoint/main/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include "esp_wifi.h"
#include "esp_event_loop.h"
#include "esp_log.h"
#include "nvs_flash.h"


// set AP CONFIG values
Expand Down Expand Up @@ -125,6 +126,9 @@ void app_main()

// create the event group to handle wifi events
event_group = xEventGroupCreate();

// initialize NVS
ESP_ERROR_CHECK(nvs_flash_init());

// initialize the tcp stack
tcpip_adapter_init();
Expand Down
2 changes: 1 addition & 1 deletion 16_spiffs/components/spiffs/spiffs_vfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@ void vfs_spiffs_register() {
}

esp_vfs_t vfs = {
.fd_offset = 0,
//.fd_offset = 0,
.flags = ESP_VFS_FLAG_DEFAULT,
.write = &vfs_spiffs_write,
.open = &vfs_spiffs_open,
Expand Down

0 comments on commit c35ffb3

Please sign in to comment.