Search found 12 matches

by KHOAPHAM
Mon May 16, 2022 3:55 am
Forum: ESP-IDF
Topic: BLE Notification/Indication
Replies: 7
Views: 4722

Re: BLE Notification/Indication

Thank you for your support. Kind Regards.
by KHOAPHAM
Mon May 16, 2022 2:24 am
Forum: ESP-IDF
Topic: BLE Notification/Indication
Replies: 7
Views: 4722

Re: BLE Notification/Indication

That means I should use while loop to read it. Is it possible to use GAP interval to update value?
by KHOAPHAM
Sun May 15, 2022 10:45 pm
Forum: ESP-IDF
Topic: BLE Notification/Indication
Replies: 7
Views: 4722

Re: BLE Notification/Indication

Hi, I want to get data from BLE gamepad. ESP is as client. But characterictics value of gamepad supports read/write without notify. I can not resgiter_for_notify because ESP_GATT_CHAR_PROP_BIT_NOTIFY is set zero. So what is the best way to update its changes.
by KHOAPHAM
Sat May 14, 2022 1:35 pm
Forum: ESP-IDF
Topic: BLE Notification/Indication
Replies: 7
Views: 4722

BLE Notification/Indication

Hi,
My BLE server doesn't support Indication/Notification. How can I get its value of every change.
Please take a look at attached picture.
Thank you for your support.
by KHOAPHAM
Mon Mar 28, 2022 3:21 am
Forum: General Discussion
Topic: Cod - Classic Bluetooth
Replies: 5
Views: 3169

Re: Cod - Classic Bluetooth

I solved it. I put the code before setting device name and gap scan mode. It worked now. Thanks alot for your help.
by KHOAPHAM
Mon Mar 28, 2022 3:08 am
Forum: General Discussion
Topic: Cod - Classic Bluetooth
Replies: 5
Views: 3169

Re: Cod - Classic Bluetooth

It doesn't work..
by KHOAPHAM
Sun Mar 27, 2022 9:53 am
Forum: General Discussion
Topic: Cod - Classic Bluetooth
Replies: 5
Views: 3169

Re: Cod - Classic Bluetooth

Thank you, but I could not set minor and major. The code is below. Is it correct?

Code: Select all

esp_bt_cod_t cod;
        cod.reserved_2 = 0;
		cod.minor = 0b00001;
		cod.major = 0b00010;
		cod.reserved_8 = 0;
		cod.service = 0;
        ret = esp_bt_gap_set_cod(cod,ESP_BT_INIT_COD);
by KHOAPHAM
Sat Mar 26, 2022 2:20 pm
Forum: General Discussion
Topic: Cod - Classic Bluetooth
Replies: 5
Views: 3169

Cod - Classic Bluetooth

Dear, I have a query. What does ":" mean? And how can I assign value for each member of struct? I'm trying to set class of device for my Classic Bluetooth Application. But I'm stucked here. Can anyone help me. Thanks in advance. typedef struct { uint32_t reserved_2: 2; /*!< undefined */ uint32_t min...
by KHOAPHAM
Thu Feb 17, 2022 11:45 pm
Forum: ESP-IDF
Topic: Connect E-dra gamepad with esp32 via bluetooth
Replies: 0
Views: 1134

Connect E-dra gamepad with esp32 via bluetooth

Hi, I have an old Edra gamepad, and I want to connect with with esp32 to control toy car by bluetooth. Is it possible? And how I get exact its press event. I did some researches, but it is a mess out there.. Thanks in advanced..
by KHOAPHAM
Wed Jan 19, 2022 6:10 am
Forum: ESP-IDF
Topic: ESP32 and TFT ST7735
Replies: 4
Views: 4249

Re: ESP32 and TFT ST7735

ESP_Sprite wrote: Are you sure your hardware works, as in: if you take the SPI_master LCD example (and potentially change it over to the pinout that your LCD uses), does it work?
Thank you for reply,
I'm quite sure my hardware is good.. I guess the problem is in my code.
Thank you.