Search found 2207 matches

by chegewara
Wed Apr 21, 2021 11:49 pm
Forum: ESP-IDF
Topic: How GATT server can distinguish between connecting devices
Replies: 12
Views: 9141

Re: How GATT server can distinguish between connecting devices

1) table of characteristics is one for the entire device (usually) 2) each characteristic that supports notifications/indications should have CCC descriptor (some peripherals does not have it) 3) bluetooth specs says that every client should be able to register for notify independent, if server supp...
by chegewara
Wed Apr 21, 2021 7:56 pm
Forum: ESP-IDF
Topic: How GATT server can distinguish between connecting devices
Replies: 12
Views: 9141

Re: How GATT server can distinguish between connecting devices

Youre right, i was not 100% accurate in my answer. What i was in mind is fact that even if notification is send to connected device, the device will ignore that notification as long as you dont call in your code: esp_ble_gattc_register_for_notify https://docs.espressif.com/projects/esp-idf/en/latest...
by chegewara
Wed Apr 21, 2021 4:38 am
Forum: ESP-IDF
Topic: ESP32S2 USB-CDC does not appear as option in CONFIG_ESP_CONSOLE_UART
Replies: 6
Views: 4334

Re: ESP32S2 USB-CDC does not appear as option in CONFIG_ESP_CONSOLE_UART

I believe that CDC console has been added from v4.3.
by chegewara
Tue Apr 20, 2021 9:49 pm
Forum: ESP-IDF
Topic: ESP32S2 USB-CDC does not appear as option in CONFIG_ESP_CONSOLE_UART
Replies: 6
Views: 4334

Re: ESP32S2 USB-CDC does not appear as option in CONFIG_ESP_CONSOLE_UART

Next question would be: what esp-idf version you are running at?
by chegewara
Tue Apr 20, 2021 9:47 pm
Forum: ESP-IDF
Topic: How GATT server can distinguish between connecting devices
Replies: 12
Views: 9141

Re: How GATT server can distinguish between connecting devices

The characteristic has only a descriptor for sending a notification, how does the server remember which of the clients should be sent a notification, and which should not? Notifications is like broadcast and forget. the only thing what server cares about is: "is there anyone that wish to listen to ...
by chegewara
Tue Apr 20, 2021 4:12 pm
Forum: ESP-IDF
Topic: How GATT server can distinguish between connecting devices
Replies: 12
Views: 9141

Re: How GATT server can distinguish between connecting devices

I dont know what you exactly trying to do, but from description i can think about such design:
- server,
- client that needs notifications, register for notifications,
- client that only writes to server, does not register for notifications
by chegewara
Tue Apr 20, 2021 4:07 pm
Forum: General Discussion
Topic: Adding a Arduino library to ESP-IDF Project
Replies: 3
Views: 5197

Re: Adding a Arduino library to ESP-IDF Project

Yes, you can use arduino as component. There is a lot info on internet about it, but to be honest i dont recommend to use ArduinoJson library, because it has not good memory handling. Instead you can use cJSON from esp-idf, which is easy to use. I am using cJSON even in arduino projects whenever i c...
by chegewara
Tue Apr 20, 2021 4:03 pm
Forum: ESP-IDF
Topic: BLE5 - periodic advertising
Replies: 0
Views: 1413

BLE5 - periodic advertising

Hi, i am playing a bit with BLE5 features and i am wondering. I understand it is possible to miss some periodic advertising packets, but is it possible it may happen in such situation: - environment: not very crowded - periodic advertising every 1000ms - both peer devices do nothing but advertising/...