Search found 114 matches

by newsettler_AI
Wed Dec 05, 2018 4:36 pm
Forum: General Discussion
Topic: BLE: how to get mtu size?
Replies: 3
Views: 1196

BLE: how to get mtu size?

Is there way to get mtu size via some IDF functions? I got in logs this number, so I suppose it should be stored somethere: BT_GATT: attribute value too long, to be truncated to 19[0m ... BT_GATT: attribute value too long, to be truncated to 22[0m I supposed to see it at ESP_GATTS_MTU_EVT event in g...
by newsettler_AI
Sat Dec 01, 2018 3:25 pm
Forum: General Discussion
Topic: Best way to store structure on flash?
Replies: 0
Views: 592

Best way to store structure on flash?

I have such structures: typedef struct my_data_single_s { char uid[20]; struct connection_s{ char param_1[15]; char param_2[20]; }connection; struct measurement_s{ uint32_t timestamp; char name[50]; float longitude; float latitude; float offset; float value_1; float value_2; }measurement; }my_data_s...
by newsettler_AI
Thu Nov 29, 2018 2:39 pm
Forum: General Discussion
Topic: ESP_GATTS_READ_EVT infinite loop
Replies: 5
Views: 1278

Re: ESP_GATTS_READ_EVT infinite loop

Thanks for suggestion. Still I got some issues (now not loop, but on nrfConnect I got all zeroes in value field) My log: [2018-11-29_16:26:23][0;32mI (831083) BLE: update connection params status = 0, min_int = 16, max_int = 32,conn_int = 6,latency = 0, timeout = 2000[0m [2018-11-29_16:26:24][0;32mI...
by newsettler_AI
Wed Nov 28, 2018 4:42 pm
Forum: General Discussion
Topic: ESP_GATTS_READ_EVT infinite loop
Replies: 5
Views: 1278

Re: ESP_GATTS_READ_EVT infinite loop

Maybe as alternative I should use ESP_GATT_AUTO_RSP instead?

Can I just maually edit my_data buffer?
by newsettler_AI
Tue Nov 27, 2018 7:56 pm
Forum: General Discussion
Topic: ESP_GATTS_READ_EVT infinite loop
Replies: 5
Views: 1278

ESP_GATTS_READ_EVT infinite loop

I have created custom characteristic using gatts table demo. I'm trying to establish manual responding on ESP_GATTS_READ_EVT . Problem: I got infinite loop when trying read characteristic value. my characteristic configuration: static uint8_t my_char_uuid[16] = { /* LSB <----------------------------...
by newsettler_AI
Sun Nov 25, 2018 1:52 pm
Forum: General Discussion
Topic: How to make 128bit service using ble gatts table demo?
Replies: 7
Views: 1972

Re: How to make 128bit service using ble gatts table demo?

Ok, I got working as I want with next settings: [IDX_SVC] ={ {ESP_GATT_AUTO_RSP}, {ESP_UUID_LEN_16, // why 16bits lenght? (uint8_t *)&primary_service_uuid, ESP_GATT_PERM_READ, 500, sizeof(service_uuid), (uint8_t *)service_uuid} }, And here is what nrfConnect shows: esp32_gatts_table4.jpg.JPEG.jpg Ca...
by newsettler_AI
Sat Nov 24, 2018 4:46 pm
Forum: General Discussion
Topic: How to make 128bit service using ble gatts table demo?
Replies: 7
Views: 1972

Re: How to make 128bit service using ble gatts table demo?

This is what i think (not what i know for sure): [IDX_SVC] = { {ESP_GATT_AUTO_RSP}, {ESP_UUID_LEN_128, (uint8_t *)&primary_service_uuid, ESP_GATT_PERM_READ, 50, // max service length (try some bigger value, you only waste few bytes or ram) sizeof(service_uuid), (uint8_t *)service_uuid} // service_u...
by newsettler_AI
Sat Nov 24, 2018 11:40 am
Forum: General Discussion
Topic: How to make 128bit service using ble gatts table demo?
Replies: 7
Views: 1972

Re: How to make 128bit service using ble gatts table demo?

Thanks for the reply. Next you have to know that some values in GATT attribute table cant be changed: https://github.com/espressif/esp-idf/blob/master/examples/bluetooth/gatt_server_service_table/main/gatts_table_creat_demo.c#L167-L169 I want to change not this, but this: https://github.com/espressi...
by newsettler_AI
Fri Nov 23, 2018 7:17 pm
Forum: General Discussion
Topic: How to make 128bit service using ble gatts table demo?
Replies: 7
Views: 1972

How to make 128bit service using ble gatts table demo?

Hi. I'm using this demo: https://github.com/espressif/esp-idf/blob/release/v3.2/examples/bluetooth/gatt_server_service_table/main/gatts_table_creat_demo.c I want to make custom 128bit service with some 128bit characteristics aswell. My peripheral must advertize UUID of my128bit_service too. [my128bi...
by newsettler_AI
Thu Nov 22, 2018 5:28 pm
Forum: General Discussion
Topic: BLE: How to add multiple characteristics in one service?
Replies: 1
Views: 1109

BLE: How to add multiple characteristics in one service?

Hi. I need to create custom 128bit service with some characteristics (which will be 128 bits too) As basic I'm using this https://github.com/espressif/esp-idf/blob/release/v3.2/examples/bluetooth/gatt_server/main/gatts_demo.c I have sucessfully created custom 128bit service. But when I'm trying add ...

Go to advanced search