Search found 7 matches

by DerrickLau
Wed Jan 25, 2023 4:22 am
Forum: ESP-IDF
Topic: How to advertise non-standard data in BLE
Replies: 1
Views: 1098

Re: How to advertise non-standard data in BLE

Thanks everyone! Solved the issue by checking another example.
by DerrickLau
Tue Jan 24, 2023 5:17 am
Forum: ESP-IDF
Topic: How to advertise non-standard data in BLE
Replies: 1
Views: 1098

How to advertise non-standard data in BLE

I am writing a BLE application that will advertise the number 0x0A040102A601 on all channels with manufacturer ID 0x183. For the structure esp_ble_adv_data_t, how do I put 0x0A040102A601 in p_service_data and 0x183 in p_manufacturer_data? My current method below doesn't work: I split the hexadecimal...
by DerrickLau
Tue Dec 15, 2020 12:38 am
Forum: ESP-IDF
Topic: What is this? BT_BTM: Advertising or scaning now, can't set privacy
Replies: 3
Views: 4121

Re: What is this? BT_BTM: Advertising or scaning now, can't set privacy

That function is called by esp_ble_gap_start_advertising() right? I only call that once in my current execution, which means the bluetooth interface was doing something during that? Well, the thing is, I only call that method once, in my GAP event handler, when a ESP_GAP_BLE_SCAN_RSP_DATA_RAW_SET_CO...
by DerrickLau
Mon Dec 14, 2020 12:14 am
Forum: ESP-IDF
Topic: What is this? BT_BTM: Advertising or scaning now, can't set privacy
Replies: 3
Views: 4121

What is this? BT_BTM: Advertising or scaning now, can't set privacy

I am seeing the following output when I run idf.py -p COM5 -b 115200 monitor: E (1986) BT_BTM: Advertising or scaning now, can't set privacy V (1996) app_main(): ble_gap_event_handler() called. V (1996) BtController::BleGapEventHandler(): called. V (1996) BtController::BleGapEventHandler(): ESP_GAP_...
by DerrickLau
Sat Oct 10, 2020 4:35 am
Forum: ESP-IDF
Topic: [Answered]: JWT component for ESP-IDF (JSON Web Tokens)
Replies: 10
Views: 29606

Re: [Answered]: JWT component for ESP-IDF (JSON Web Tokens)

I am using an UWP app to talk to my ESP32 via SPP and bluetooth classic. I am able to open a socket to my ESP-32 and send a JSON message over bluetooth to it, and confirmed that I received it via the serial port monitoring: V (361538) TARDIS: ::receiveMessage() - {"IdToken":"eyJhbGciOiJodHRwOi8vd3d3...
by DerrickLau
Wed Sep 09, 2020 12:22 am
Forum: ESP-IDF
Topic: Setting GATT characteristic UUID
Replies: 0
Views: 2022

Setting GATT characteristic UUID

I'm trying to set the UID for a GATT characteristic of my ESP32 BLE GATTs server application. First I do this: esp_bt_uuid_t AlgCharGuid = 0xbe; I then pass that value into a method here: esp_err_t add_char_ret = _alg.RegisterCharacteristicWithGatt(serviceHandle, AlgCharGuid); The RegisterCharacteri...
by DerrickLau
Mon Apr 13, 2020 9:13 pm
Forum: ESP-IDF
Topic: arduino-esp32 IDF component build failure
Replies: 9
Views: 16258

Re: arduino-esp32 IDF component build failure

I had this problem before and made some modifications to the Arduino-esp32 IDF component to make it work. Mine works with the DFPlayer sample. I posted my code changes here: https://github.com/DerrickLau/esp32-arduino-port Just grab a copy of the files and put into /esp-idf/component/Arduino directo...