Search found 7 matches
- Fri Feb 07, 2025 2:23 pm
- Forum: General Discussion
- Topic: gemini post returns response 200, but the result is empty
- Replies: 5
- Views: 2186
Re: gemini post returns response 200, but the result is empty
The point is that esp_http_client_get_content_length() can return -1 (when the server uses chunked transfer to send the data), and you cannot rely on esp_http_client_get_content_length() returning > 0, i.e. the content length being known in advance.
Thanks for your kind reply. I tried receiving ...
- Fri Feb 07, 2025 1:29 am
- Forum: General Discussion
- Topic: gemini post returns response 200, but the result is empty
- Replies: 5
- Views: 2186
Re: gemini post returns response 200, but the result is empty
In Arduino, the below code works fine and get result from gemini
if (https.begin("https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash:generateContent?key=" + (String)Gemini_Token)) { // HTTPS
https.addHeader("Content-Type", "application/json");
String payload = String ...
if (https.begin("https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash:generateContent?key=" + (String)Gemini_Token)) { // HTTPS
https.addHeader("Content-Type", "application/json");
String payload = String ...
- Tue Feb 04, 2025 3:19 pm
- Forum: General Discussion
- Topic: gemini post returns response 200, but the result is empty
- Replies: 5
- Views: 2186
gemini post returns response 200, but the result is empty
I am trying to get response from gemini. post returns response 200, but the result is empty!. ca_certificate problem ?
// Send HTTP POST request to the Gemini API
void send_gemini_request(void) {
char question[200] = "What is Todays Significance?";
ESP_LOGI(TAG, "Asking Your Question: %s ...
// Send HTTP POST request to the Gemini API
void send_gemini_request(void) {
char question[200] = "What is Todays Significance?";
ESP_LOGI(TAG, "Asking Your Question: %s ...
- Thu Jun 27, 2024 9:26 am
- Forum: ESP-ADF
- Topic: How to migrate IDF project to ADF project (or: how to incorporate ADF into an IDF project)?
- Replies: 6
- Views: 36480
Re: How to migrate IDF project to ADF project (or: how to incorporate ADF into an IDF project)?
Than you. With ESP IDF5.1.3/ADF2.6 I was struggling compiling adf code. enabling "configENABLE_BACKWARD_COMPATIBILITY" in sdkconfig worked.
- Sat Mar 26, 2022 3:43 am
- Forum: ESP-IDF
- Topic: LEDC PWM complementary pwm generation with dead band
- Replies: 0
- Views: 1510
LEDC PWM complementary pwm generation with dead band
I want to generate complementary pwm with dead band using LEDC PWM module in ESP32S2. I am using ESP-IDF V4.4 and ESP32S2, which does not have MCPWM module. I can generate complimentary PWMs but can't create dead band. Any support will be appreciated.
- Sat Feb 05, 2022 4:50 pm
- Forum: Hardware
- Topic: MicroSD SPI mode mount fails after some 10 hours in ESP32S2
- Replies: 0
- Views: 2358
MicroSD SPI mode mount fails after some 10 hours in ESP32S2
SDCard mount fails after some 10 hours. Reinsert SDCard works again without any problem. Below is my mount code. Will be a problem of SDCard holder rust ?
ESP32S2 pins used: IO10, IO11, IO12, IO13 . internal pullup enabled
// Mount SD Card
int SD_Mount(){
GPIO_SetDigitalIn(PIN_NUM_MOSI);
esp ...
ESP32S2 pins used: IO10, IO11, IO12, IO13 . internal pullup enabled
// Mount SD Card
int SD_Mount(){
GPIO_SetDigitalIn(PIN_NUM_MOSI);
esp ...
- Mon Apr 12, 2021 4:56 pm
- Forum: ESP-ADF
- Topic: Usage of esp_player_wrapper.c
- Replies: 1
- Views: 3892
Usage of esp_player_wrapper.c
I am trying to use esp_player_wrapper.c tp playback mp3 with controls, but fails. Below is my code and output.
void app_main(void)
{
unsigned long counter=0;
esp_log_level_set("*", ESP_LOG_WARN);
esp_log_level_set(TAG, ESP_LOG_INFO);
esp_audio_handle_t player = setup_player(esp_audio ...
void app_main(void)
{
unsigned long counter=0;
esp_log_level_set("*", ESP_LOG_WARN);
esp_log_level_set(TAG, ESP_LOG_INFO);
esp_audio_handle_t player = setup_player(esp_audio ...