mirror of
https://github.com/HendrikRauh/dmx-interface.git
synced 2026-03-09 05:20:21 +00:00
chore(format): initial formatting
This commit is contained in:
parent
fa08fcfe65
commit
008c79852b
21 changed files with 1021 additions and 1082 deletions
|
|
@ -9,21 +9,18 @@
|
|||
|
||||
static const char *TAG = "MAIN";
|
||||
|
||||
void app_main(void)
|
||||
{
|
||||
void app_main(void) {
|
||||
ESP_LOGI(TAG, "DMX Interface starting...");
|
||||
|
||||
esp_err_t wifi_err = wifi_start_ap("DMX", "mbgmbgmbg", 1, 4);
|
||||
if (wifi_err != ESP_OK)
|
||||
{
|
||||
if (wifi_err != ESP_OK) {
|
||||
ESP_LOGE(TAG, "Failed to start WiFi AP: %s", esp_err_to_name(wifi_err));
|
||||
return;
|
||||
}
|
||||
|
||||
// Start HTTP web server
|
||||
httpd_handle_t server = webserver_start(NULL);
|
||||
if (server == NULL)
|
||||
{
|
||||
if (server == NULL) {
|
||||
ESP_LOGE(TAG, "Failed to start web server!");
|
||||
return;
|
||||
}
|
||||
|
|
@ -32,8 +29,7 @@ void app_main(void)
|
|||
ESP_LOGI(TAG, "Open http://192.168.4.1 in your browser");
|
||||
|
||||
// Keep the app running
|
||||
while (1)
|
||||
{
|
||||
while (1) {
|
||||
vTaskDelay(pdMS_TO_TICKS(1000));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
## IDF Component Manager Manifest File
|
||||
dependencies:
|
||||
idf:
|
||||
version: '>=4.1.0'
|
||||
version: ">=4.1.0"
|
||||
joltwallet/littlefs: ==1.20.2
|
||||
someweisguy/esp_dmx:
|
||||
git: https://github.com/davispolito/esp_dmx.git
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue