Search found 594 matches

by chegewara
Tue Dec 18, 2018 10:06 pm
Forum: General Discussion
Topic: Converting valuestring or valueint from cJSON to send using uart_write_bytes is failing
Replies: 1
Views: 18

Re: Converting valuestring or valueint from cJSON to send using uart_write_bytes is failing

This is structure of cJSON and as you can see you can send number value as double: typedef struct cJSON { /* next/prev allow you to walk array/object chains. Alternatively, use GetArraySize/GetArrayItem/GetObjectItem */ struct cJSON *next; struct cJSON *prev; /* An array or object item will have a c...
by chegewara
Tue Dec 18, 2018 9:58 pm
Forum: ESP32 IDF
Topic: BLE Server and Client coexisting
Replies: 8
Views: 327

Re: BLE Server and Client coexisting

Please try make monitor or xtensa-esp32-elf-gdb to decode backtrace eventually addr2line.
by chegewara
Mon Dec 17, 2018 9:15 am
Forum: General Discussion
Topic: How to encrypt the "gatt_server" Bluetooth program?
Replies: 3
Views: 142

Re: How to encrypt the "gatt_server" Bluetooth program?

Hi, there is no difference between setting up secure connection for one or many services, because you dont secure services. Service is just logical unit that aggregates characteristics. Now, you may want or not to secure characteristics and descriptors with proper permission access (read/write with ...
by chegewara
Sun Dec 16, 2018 6:19 am
Forum: ESP32 Arduino
Topic: Unsucessful HTTPS connection with own CA
Replies: 2
Views: 131

Re: Unsucessful HTTPS connection with own CA

If I had guessing I would say it's key length. Try with 2048.
by chegewara
Sat Dec 15, 2018 11:37 am
Forum: General Discussion
Topic: How to encrypt the "gatt_server" Bluetooth program?
Replies: 3
Views: 142

Re: How to encrypt the "gatt_server" Bluetooth program with two Bluetooth services?

Here is your answer.
Daniel wrote: Just like the example "gatt_security_serverhttps://github.com/espressif/esp-idf/tr ... ity_server".
What else do you want to know or what you dont understand?
by chegewara
Fri Dec 14, 2018 11:41 am
Forum: General Discussion
Topic: ble scan and wifi connection in the same time
Replies: 3
Views: 95

Re: ble scan and wifi connection in the same time

I dont remember that i had any temp problem.
by chegewara
Fri Dec 14, 2018 8:45 am
Forum: General Discussion
Topic: ble scan and wifi connection in the same time
Replies: 3
Views: 95

Re: ble scan and wifi connection in the same time

Hi, yes it is possible. I am working with Kolban's C++ library, but that should not matter. Couple weeks ago ive been doing simple test wifi + ble. In my test i have very simple esp http server with page that is displaying how many ble devices has been discovered and i can change interval and window...
by chegewara
Fri Dec 14, 2018 8:40 am
Forum: Report Bugs
Topic: BLE Scan Resp Raw Data: Examples in esp_idf not sending scan response data in raw mode
Replies: 5
Views: 162

Re: BLE Scan Resp Raw Data: Examples in esp_idf not sending scan response data in raw mode

Its you right to disagree. I know you can advertise only regular advertising packet, scan response packet or both. Thats why there is 2 esp_ble_gap_start_advertising(&adv_params); lines. If this line https://github.com/espressif/esp-idf/blob/master/examples/bluetooth/ble_compatibility_test/main/ble_...
by chegewara
Thu Dec 13, 2018 8:01 pm
Forum: Report Bugs
Topic: BLE Scan Resp Raw Data: Examples in esp_idf not sending scan response data in raw mode
Replies: 5
Views: 162

Re: BLE Scan Resp Raw Data: Examples in esp_idf not sending scan response data in raw mode

That not exactly correct. Advertising will start if in this line returns true (flag==0): https://github.com/espressif/esp-idf/blob/master/examples/bluetooth/ble_compatibility_test/main/ble_compatibility_test.c#L288 This shouldnt happen in this example code, but its worth to check. Just add log outpu...
by chegewara
Wed Dec 12, 2018 11:17 pm
Forum: ESP32 IDF
Topic: Send base64 by url
Replies: 3
Views: 131

Re: Send base64 by url

Its how i am doing it: unsigned char *buffer = (unsigned char*) heap_caps_calloc(1, (size + 2 - ((size + 2) % 3)) / 3 * 4 + 1, MALLOC_CAP_SPIRAM); if (buffer == NULL) { ESP_LOGE(TAG, "cant allocate memory"); return; } ESP_LOGI(TAG, "buffer size: %d", size); int err64 = mbedtls_base64_encode(buffer, ...

Go to advanced search