Search found 16 matches

by ahue32
Mon Sep 17, 2018 7:57 am
Forum: ESP32 Arduino
Topic: Reading characteristic values inside BLE_client notifyCallback
Replies: 6
Views: 7598

Re: Reading characteristic values inside BLE_client notifyCallback

I had a look inside BLERemoteCharacteristic.cpp and found the following problem: In the 'readValue()' method, there is a call to take the semaphore and afterwards one to wait. It seems that the wait is never called. As far as I understand semaphores, it is because in 'm_semaphoreReadCharEvt.take("re...
by ahue32
Thu Jan 18, 2018 9:16 am
Forum: ESP32 Arduino
Topic: Use VS Code Arduino plugin with ESP32
Replies: 0
Views: 2104

Use VS Code Arduino plugin with ESP32

Hello, I am trying to use Visual Studio Code to program my Adafruit HUZZAH32 Feather. The problem is, that it is impossible for me to select the right board type. I managed to install the esp8266 package via board manager and tried to put the path to the json of esp32 in the settings: "arduino.path"...
by ahue32
Mon Jan 15, 2018 8:56 am
Forum: ESP32 Arduino
Topic: Reading characteristic values inside BLE_client notifyCallback
Replies: 6
Views: 7598

Re: Reading characteristic values inside BLE_client notifyCallback

I'm using a workaround now where I set a flag inside the callback and check the value of the characteristic in loop. As I use core 0 only for Bluetooth the response time is ok.
by ahue32
Fri Jan 12, 2018 12:15 pm
Forum: ESP32 IDF
Topic: Dual core
Replies: 18
Views: 11134

Re: Dual core

Is it possible to call a function to run on core 1 when it is called inside the loop on core 0? To make it clearer, I have Bluetooth communication on core 0 and read the touch input from a touch display on core 1. When there is a Bluetooth notification the characteristic value is read in loop on cor...
by ahue32
Wed Jan 10, 2018 11:45 am
Forum: ESP32 Arduino
Topic: Reading characteristic values inside BLE_client notifyCallback
Replies: 6
Views: 7598

Re: Reading characteristic values inside BLE_client notifyCallback

and you are receiving it but you have commented out this line: //Serial.println(pBLERemoteCharacteristic->readValue().c_str()); When I comment in this line the log looks the same and nothing happens afterwards. The point is, if std::string value = pBLERemoteCharacteristic->readValue(); is commented...
by ahue32
Wed Jan 10, 2018 10:16 am
Forum: ESP32 Arduino
Topic: Reading characteristic values inside BLE_client notifyCallback
Replies: 6
Views: 7598

Re: Reading characteristic values inside BLE_client notifyCallback

Continuation of question: Log of client: 8 ets Jun 8 2016 00:22:57 rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) flash read err, 1000 ets_main.c 371 ets Jun 8 2016 00:22:57 rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x...
by ahue32
Wed Jan 10, 2018 10:15 am
Forum: ESP32 Arduino
Topic: Reading characteristic values inside BLE_client notifyCallback
Replies: 6
Views: 7598

Reading characteristic values inside BLE_client notifyCallback

I have two Adafruit Huzzah32 Feather boards with ESP32 modules on them. I want to connect both of them, one as a server sending data via notifications, the other one as a client receiving all changed values. Code for server (I changed the BLE_uart example a little): /* Video: https://www.youtube.com...
by ahue32
Wed Jan 10, 2018 8:00 am
Forum: ESP32 Arduino
Topic: BLE_uart example does not create discoverable service when devices are not connected
Replies: 8
Views: 5089

Re: BLE_uart example does not create discoverable service when devices are not connected

I think i know where is the problem. I forgot about one important thing and im sorry for that. UART service is 128 bit UUID and to successfuly advertising 128 bit UUID you need to do some tweaks. Because you have not so much choice with BLE library you need to use short device name during: BLEDevic...
by ahue32
Tue Jan 09, 2018 11:57 am
Forum: ESP32 Arduino
Topic: BLE_uart example does not create discoverable service when devices are not connected
Replies: 8
Views: 5089

Re: BLE_uart example does not create discoverable service when devices are not connected

Im assuming you are trying to use BLE_uart example without any changes and with BLE_client example trying to find and connect to uart server by filtering it with this statement: if (advertisedDevice.haveServiceUUID() && advertisedDevice.getServiceUUID().equals(serviceUUID)) { also, im assuming you ...
by ahue32
Tue Jan 09, 2018 8:23 am
Forum: ESP32 Arduino
Topic: BLE_uart example does not create discoverable service when devices are not connected
Replies: 8
Views: 5089

Re: BLE_uart example does not create discoverable service

Hi. Could you change logging level to verbose: Tools->Core debug level->Verbose Verbose output from BLE_uart: ets Jun 8 2016 00:22:57 rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, cl...

Go to advanced search