Search found 24 matches

by brahmajit
Tue Jan 10, 2023 10:21 am
Forum: ESP-IDF
Topic: How to assign a callback to a BLE service's characteristic in ESP-iDF
Replies: 1
Views: 1171

How to assign a callback to a BLE service's characteristic in ESP-iDF

I'm not using nimBLE but in nimBLE I can use ble_gatt_chr_def struct which has ble_gatt_access_fn *access_cb that gets executed when the characteristic is read or written to. In Arduino I can do foo_char->addDescriptor(new BLE2902()); foo_char->setCallbacks(new foo_charCallbacks()); What's the equiv...
by brahmajit
Tue Mar 15, 2022 1:55 pm
Forum: ESP-IDF
Topic: What example to use for NimBLE gatt server and client
Replies: 0
Views: 1426

What example to use for NimBLE gatt server and client

I want to test out NimBLE gatt server and client. I cannot find any examples for that purpose, I have been looking at the peripheral and central examples but they are not what I'm looking for. I'm looking for example like that of BLE (bluedroid) gatt and server.

Are there any?

Thanks.
by brahmajit
Tue Mar 08, 2022 7:58 am
Forum: ESP-IDF
Topic: Can I un-brick my dev board after unknowingly uploading alternate app when secure boot was enabled
Replies: 3
Views: 2557

Can I un-brick my dev board after unknowingly uploading alternate app when secure boot was enabled

I was testing out secureboot on a dev board, then by mistake I uploaded another app onto the device (I forgot secure boot was enabled, reflashable option). Not I can upload apps onto my device but get rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv...
by brahmajit
Sat Mar 05, 2022 5:45 am
Forum: ESP-IDF
Topic: Cannot use NimBLE and WiFi provisioning together
Replies: 0
Views: 1469

Cannot use NimBLE and WiFi provisioning together

I'm trying to start wifi provisioning while using NimBLE SPP example. Basically if get a message like 'prov' I want to deinitialize the nimble and start provisioning. I'm able to do so, i.e. stop the NimBLE SPP example and start provisioning, but once the provisioning ends my device reboots is "Guru...
by brahmajit
Fri Mar 04, 2022 7:26 am
Forum: ESP-IDF
Topic: How to use the NimBLE spp example?
Replies: 1
Views: 2751

Re: How to use the NimBLE spp example?

Rahul from ESP reached out and pointed out that I can use the fields of ble_gatt_access_ctxt and the buffer om present inside this structure. So, now I'm able to read the data being sent to my ESP device.

Issue #8492 https://github.com/espressif/esp-idf/issues/8492
by brahmajit
Thu Mar 03, 2022 5:55 pm
Forum: ESP-IDF
Topic: How to use the NimBLE spp example?
Replies: 1
Views: 2751

How to use the NimBLE spp example?

Does anyone know how to use the NimBLE spp example? I flashed the code to my device then what? How do I read the data being sent to the device, I can connect to the device using my phone. Can someone help. I can't even find any relevant documentation. I just want to send data from my phone to ESP.
by brahmajit
Thu Mar 03, 2022 7:32 am
Forum: ESP-IDF
Topic: NimBLE spp server example not showing any received data on terminal
Replies: 0
Views: 1209

NimBLE spp server example not showing any received data on terminal

I'm using the nimble spp server example and when connected to my android serial app it does not show any data. I can see that data is being received, from the terminal I (173390) NimBLE_SPP_BLE_PRPH: Data received in write event,conn_handle = 0,attr_handle = 15 . Am I doing something wrong ? Thank y...
by brahmajit
Fri Feb 11, 2022 4:17 pm
Forum: ESP-IDF
Topic: Not able to perform OTA from HTTPS server
Replies: 5
Views: 5342

Re: Not able to perform OTA from HTTPS server

Yes the bundle approach is quite good and I'll use that.

Thanks for the quick response.