2 Commits

Author SHA1 Message Date
jumjum123
c5684284ea Fixed problems around Advertising. There are still some, ....
Added patch from Rob Blanckaert
Added set Encrypton to gatts connect handler

esp32_gatts_func.h
- added a bool for connected from a client in gatts_service_inst
esp32_gatts_func.c
- added include for esp_gap_ble_api.h
- added function to check if a client is connected
- added patches from Rob Blanckaert ( https://github.com/basicer/Espruino/tree/ESP32-v3.0 ) to gatts_write_value_handler
- added esp_ble_set_encryption to gatts_connect_handler
- added handling of connected flag, see esp32_gatts_func.h
- fixed startAdvertising, started only if no client is connected
- added permissions to UART decriptor, patch from Rob Blanckaert
- set connected to false in initialisation
2018-06-15 11:22:09 +02:00
wilberforce
883000cf81 update esp-idf to v3.0. BLE support - thanks to @jumjum. 2500 vars. Erase flash before flashing 2018-05-13 13:54:02 +12:00