Search found 7 matches

by axel_hpplt
Fri Sep 10, 2021 10:46 pm
Forum: ESP IoT Solution
Topic: Is it possible to use mobile connection by connecting via Bluetooth?
Replies: 0
Views: 9328

Is it possible to use mobile connection by connecting via Bluetooth?

Hello,

I've a "simple" question : Is it possible for an ESP32 to use mobile data (4G internet connection not Wifi) from a smartphone by connecting it via Bluetooth?
A bit like the BluFi API already does but not for a Wi-Fi network.

Thanks in advance,

AH.
by axel_hpplt
Wed Sep 08, 2021 11:11 am
Forum: ESP-IDF
Topic: https request failed
Replies: 6
Views: 11281

Re: https request failed

Note that esp_wifi_connect() only *starts* a connection attempt, and will return more-or-loss immediately; the connection isn't actually created at that time. Suggest you check e.g. the examples in esp-idf to see how to properly wait until it is. Thanks for your answer, I looked at what you told me...
by axel_hpplt
Tue Sep 07, 2021 9:57 pm
Forum: ESP-IDF
Topic: https request failed
Replies: 6
Views: 11281

Re: https request failed

Why are you concatenating `chr` to `dest` twice? printf(strcat(dest, chr)); // <-- here esp_http_client_config_t config = { .url = strcat(dest, chr) // <-- here }; It's also not a good idea to concatenate to a literal string. Rather, you should do something like this: const char *pref = "https://XX...
by axel_hpplt
Tue Sep 07, 2021 1:21 am
Forum: ESP-IDF
Topic: https request failed
Replies: 6
Views: 11281

https request failed

Hello everyone, When I run this code : #include <stdio.h> #include <string.h> #include "esp_system.h" #include "esp_console.h" #include "esp_vfs_dev.h" #include "esp_vfs_fat.h" #include "esp_wifi.h" #include "driver/uart.h" #include "nvs_flash.h" #include "esp_http_client.h" #define EXAMPLE_ESP_WIFI...
by axel_hpplt
Fri Aug 27, 2021 10:29 pm
Forum: ESP-IDF
Topic: scanf() don't work in idf monitor
Replies: 7
Views: 9072

Re: scanf() don't work in idf monitor

Are you trying to do something similar to this thread? Reading character input from the serial port See also the UART Select Example . I found a solution that seems to fit: #include <stdio.h> #include <string.h> #include "esp_system.h" #include "esp_console.h" #include "esp_vfs_dev.h" #include "esp...
by axel_hpplt
Fri Aug 27, 2021 2:26 pm
Forum: ESP-IDF
Topic: scanf() don't work in idf monitor
Replies: 7
Views: 9072

Re: scanf() don't work in idf monitor

Hi, You need to use the console approach. See this example: https://github.com/espressif/esp-idf/tree/master/examples/system/console/basic First of all, thank you so much for your response! I looked at what you sent me, I may be blind but I don't really see how it helps me with my problem. It did h...
by axel_hpplt
Thu Aug 26, 2021 9:08 pm
Forum: ESP-IDF
Topic: scanf() don't work in idf monitor
Replies: 7
Views: 9072

scanf() don't work in idf monitor

Hello, I am a new user on esp-idf. I have done some tests after following the "Getting Started" section, including this one: #include <stdio.h> void app_main(void) { char chr; printf("Enter Data : "); scanf("%c", &chr); printf("Data entered : %c.", chr); } Everything goes well, I start the monitor w...