Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions components/can/include/can/can.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
#include "daq_core/buffer_pool.hpp"
#include "freertos/task.h"

#define CAN_TX_GPIO GPIO_NUM_5
#define CAN_RX_GPIO GPIO_NUM_4

extern TaskHandle_t can_task;
void can_init(void);
void can_task_start(UBaseType_t prio, UBaseType_t stackWords, BaseType_t core);
Expand Down
20 changes: 20 additions & 0 deletions components/http/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
idf_component_register(
SRCS
"src/http.c"
"src/file_server.c"
INCLUDE_DIRS
"include"
PRIV_REQUIRES
fatfs
esp_event
vfs
esp_netif
nvs_flash
spiffs
esp_http_server
esp_wifi
lwip
EMBED_FILES
"upload_script.html"
"favicon.ico"
)
31 changes: 31 additions & 0 deletions components/http/Kconfig.projbuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
menu "HTTP file server menu"

menu "WiFi AP Configuration"

config ESP_WIFI_SSID
string "AP SSID"
default "helo i am daq"
help
SSID (network name) of the access point.

config ESP_WIFI_PASSWORD
string "AP Password"
default "sawcon"
help
Password for the access point. Leave empty for open network.

config ESP_WIFI_CHANNEL
int "AP WiFi Channel"
range 1 13
default 1
help
WiFi channel to use for the access point.

config ESP_MAX_STA_CONN
int "Maximum STA connections"
range 1 10
default 4
help
Maximum number of stations that can connect to the AP.
endmenu
endmenu
Binary file added components/http/favicon.ico
Binary file not shown.
19 changes: 19 additions & 0 deletions components/http/include/http/file_server.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#pragma once

#include "sdkconfig.h"
#include "esp_err.h"

#ifdef __cplusplus
extern "C" {
#endif

esp_err_t start_file_server(const char *base_path);

esp_err_t spiffs_init(const char *base_path);

void wifi_init_softap(void);


#ifdef __cplusplus
}
#endif
Loading