Hi all,
I am trying to upload a file to server, let's say firebase realtime using esp32.
However in the example code in esp32_http_client, there is only demo for uploading a string.
I wonder how can I upload a file, which size around 2 MB, I stored it in SD card.
Thank you very much.
Search found 10 matches
- Fri Jul 26, 2019 3:15 am
- Forum: ESP-IDF
- Topic: multipart esp32 upload to server
- Replies: 1
- Views: 3034
- Thu Jul 25, 2019 6:44 am
- Forum: ESP-IDF
- Topic: how to use esp_ble_gatts_close ?
- Replies: 2
- Views: 4779
how to use esp_ble_gatts_close ?
Hi all,
Currently, I want to terminate the connection between esp32 and mobile application by pressing a button.
How can I do that?
I have checked and then found this function:
esp_ble_gatts_close(gatts_if, conn_id);
But I don't know how to implemet this function into my code, where can I find ...
Currently, I want to terminate the connection between esp32 and mobile application by pressing a button.
How can I do that?
I have checked and then found this function:
esp_ble_gatts_close(gatts_if, conn_id);
But I don't know how to implemet this function into my code, where can I find ...
- Mon Jul 08, 2019 3:51 am
- Forum: ESP-IDF
- Topic: FreeRTOS error cause reset esp32 during working.
- Replies: 0
- Views: 2487
FreeRTOS error cause reset esp32 during working.
Hi all,
Currently, I am working on a esp32 project which used esp -idf version 3.1.2.
Recently, I facing a problem, that the esp32 suddenly very randomly cause reset by itself with the logging info like this:
ets Jun 8 2016 00:22:57
rst:0x8 (TG1WDT_SYS_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT ...
Currently, I am working on a esp32 project which used esp -idf version 3.1.2.
Recently, I facing a problem, that the esp32 suddenly very randomly cause reset by itself with the logging info like this:
ets Jun 8 2016 00:22:57
rst:0x8 (TG1WDT_SYS_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT ...
- Mon Jul 01, 2019 9:03 am
- Forum: ESP-IDF
- Topic: how to make example gatt_security_server notify?
- Replies: 6
- Views: 8260
Re: how to make example gatt_security_server notify?
I have fixed it, due to the different in char_handle. It should be
instead of
.
Thank you very much.
Code: Select all
heart_rate_handle_table[HRS_IDX_HR_MEAS_NTF_CFG]Code: Select all
heart_rate_profile_tab[HEART_PROFILE_NUM].char_handleThank you very much.
- Mon Jul 01, 2019 7:42 am
- Forum: ESP-IDF
- Topic: how to make example gatt_security_server notify?
- Replies: 6
- Views: 8260
Re: how to make example gatt_security_server notify?
Funny thing is that, when I tried gatt_server example, the function worked. Even that I put it in call back function. Actually in the example, they put it in the call back function.
It like this:
case ESP_GATTS_WRITE_EVT: {
ESP_LOGI(GATTS_TAG, "GATT_WRITE_EVT, conn_id %d, trans_id %d, handle %d ...
It like this:
case ESP_GATTS_WRITE_EVT: {
ESP_LOGI(GATTS_TAG, "GATT_WRITE_EVT, conn_id %d, trans_id %d, handle %d ...
- Mon Jul 01, 2019 7:32 am
- Forum: ESP-IDF
- Topic: how to make example gatt_security_server notify?
- Replies: 6
- Views: 8260
Re: how to make example gatt_security_server notify?
Hi,
Thank you for your response,
The thing is when I try to log the error of the function:
void testNotify()
{
// uint8_t indicate_data[12] = {0};
uint8_t notify_data[1] = {48};
int error = 0;
while (1)
{
ESP_LOGI(GATTS_TABLE_TAG, "testNotify");
// for (int x = 0; x < 6; x ...
Thank you for your response,
The thing is when I try to log the error of the function:
void testNotify()
{
// uint8_t indicate_data[12] = {0};
uint8_t notify_data[1] = {48};
int error = 0;
while (1)
{
ESP_LOGI(GATTS_TABLE_TAG, "testNotify");
// for (int x = 0; x < 6; x ...
- Mon Jul 01, 2019 2:46 am
- Forum: ESP-IDF
- Topic: how to make example gatt_security_server notify?
- Replies: 6
- Views: 8260
Re: how to make example gatt_security_server notify?
Thank you for your response,
I took your advice and then, I tried to do something like this:
Instead of directly used function esp_ble_gatts_send_indicate inside call back function. I used a task insteads.
case ESP_GATTS_WRITE_EVT:
ESP_LOGI(GATTS_TABLE_TAG, "ESP_GATTS_WRITE_EVT, write value ...
I took your advice and then, I tried to do something like this:
Instead of directly used function esp_ble_gatts_send_indicate inside call back function. I used a task insteads.
case ESP_GATTS_WRITE_EVT:
ESP_LOGI(GATTS_TABLE_TAG, "ESP_GATTS_WRITE_EVT, write value ...
- Fri Jun 28, 2019 8:33 am
- Forum: ESP-IDF
- Topic: how to make example gatt_security_server notify?
- Replies: 6
- Views: 8260
how to make example gatt_security_server notify?
Dear All,
I am working with example gatt_security_server in esp-idf and when I tested it with nordic mobile application, it just did not return any value to the nordic.
So I check the example code and found out that they just leave it blank like this :
case ESP_GATTS_WRITE_EVT:
ESP_LOGI(GATTS ...
I am working with example gatt_security_server in esp-idf and when I tested it with nordic mobile application, it just did not return any value to the nordic.
So I check the example code and found out that they just leave it blank like this :
case ESP_GATTS_WRITE_EVT:
ESP_LOGI(GATTS ...
- Thu Jun 20, 2019 7:19 am
- Forum: ESP-IDF
- Topic: BLE disconnect reason 0x0013
- Replies: 2
- Views: 7156
Re: BLE disconnect reason 0x0013
Thank you very much
- Thu Jun 13, 2019 10:57 am
- Forum: ESP-IDF
- Topic: BLE disconnect reason 0x0013
- Replies: 2
- Views: 7156
BLE disconnect reason 0x0013
Dear all,
I have developed a application based on esp idf version 3.1.2. My device is espressif esp32 - wroom - 32.
When I connect to the device, it works fine, but some how after 1 or 2 minute, it automatically disconnect with the following log:
BT_APPL: bta_gattc_conn_cback() - cif=3 connected=0 ...
I have developed a application based on esp idf version 3.1.2. My device is espressif esp32 - wroom - 32.
When I connect to the device, it works fine, but some how after 1 or 2 minute, it automatically disconnect with the following log:
BT_APPL: bta_gattc_conn_cback() - cif=3 connected=0 ...