| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- #include <stdio.h>
- #include <string.h>
- #include <unistd.h>
- #include "freertos/FreeRTOS.h"
- #include "freertos/task.h"
- #include "esp_wifi.h"
- #include "esp_event.h"
- #include "esp_log.h"
- #include "nvs_flash.h"
- #include "lwip/sockets.h"
- #include <stdbool.h>
- #include "esp_rom_md5.h"
- #include "sip/sip.h"
- #include "bsp_board.h"
- static const char *TAG = "APP";
- void app_main(void)
- {
- ESP_LOGI(TAG, "Starting SIP client...");
- esp_err_t ret;
- ret = esp_board_init(16000, 2, 32);
- if(ret != ESP_OK)
- {
- ESP_LOGE(TAG,
- "Audio board init failed: %s",
- esp_err_to_name(ret));
- return;
- }
- wifi_init();
- while (!wifi_ready) {
- vTaskDelay(pdMS_TO_TICKS(500));
- }
- xTaskCreate(
- sip_register_task,
- "sip_register",
- 24576,
- NULL,
- 5,
- NULL);
- }
|