-
Notifications
You must be signed in to change notification settings - Fork 715
New branch added #717
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Here is beta version for arduino with all changes i made so far, it should works with arduino but can be very unstable in some situations: |
Hi chegewara, |
Now I changed the core debug level to DEBUG to ha have more information and with this option the compile fails: C:\Users\Marco\Documents\Arduino\libraries\ESP32_ble_library\BLECharacteristic.cpp: In member function 'void BLECharacteristic::handleGATTServerEvent(esp_gatts_cb_event_t, esp_gatt_if_t, esp_ble_gatts_cb_param_t*)': C:\Users\Marco\Documents\Arduino\libraries\ESP32_ble_library\BLECharacteristic.cpp:433:80: error: 'struct esp_ble_gatts_cb_param_t::gatts_conf_evt_param' has no member named 'handle'
C:\Users\Marco\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\cores\esp32/esp32-hal-log.h:87:72: note: in definition of macro 'log_d' #define log_d(format, ...) log_printf(ARDUHAL_LOG_FORMAT(D, format), ##VA_ARGS)
C:\Users\Marco\Documents\Arduino\libraries\ESP32_ble_library\BLECharacteristic.cpp:433:4: note: in expansion of macro 'ESP_LOGD'
exit status 1 I hope thi is useful |
this you can just remove: the other one i have to investigate. |
For compatibility purpose i will switch and do all changes in library based on esp-idf release/v3.1 branch. I will update library soon. |
I pushed code with few useful changes i hope. There was many time problem with advertising 128 bit UUID along with long device name. I changed a bit BLEAdvertising to allow this. I was even able to advertise long name and 16, 32 and 128 bit UUIDs one of each at the same. This is procedure how to achieve this:
We have now option to get raw payload from BLEAdvertisedDevice. Its 2 new functions to get raw data and to get length of raw data. Fixed parsing payload to parse also scan response. BLEscan class: fixed memory leak, added few functions to control stored discovered devices. We can now retrieve address type from BLEAdvertisedDevice that allow us to connect with peer device that is having private address. This lead us to BLEClient class where we will use this info, but to make it easier for us there is overridden function connect() where we can pass BLEAdvertisedDevice. Fixed BLEUUID to allow create 16 and 32 bit UUIDs from string. I encourage to check all changes and have a nice codding time with as few bugs as possible. |
Moved to new issue |
Hi, i am creating new branch in which i will add new features like multi connect and some others. Because all this code has not been fully tested it is not merged to master yet. There is also small possibility i have made some mistakes during copying code from my WIP repository or not all files has been updated.
I would like to ask to test it and give me a feedback, so i can fix all issues in code.
Thanks and have a nice codding.
The text was updated successfully, but these errors were encountered: