File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,11 @@ void initBLE(){
7070 /* Set the default device name */
7171 rc = ble_svc_gap_device_name_set (CONFIG_BT_NIMBLE_SVC_GAP_DEVICE_NAME );
7272 assert (rc == 0 );
73+
74+ //https://github.com/espressif/esp-nimble/issues/33
75+ //KEINE AHNUNG WAS DAS MACHT ABER DADURCH KANN SICH DER ESP NACH EINEN NEUSTART WIEDER MIT DEM GERÄT VERBINDEN
76+ /* XXX Need to have template for store */
77+ ble_store_config_init ();
7378}
7479
7580//This callback is executed when the host and controller become synced. This happens at startup and after a reset
@@ -79,12 +84,12 @@ void bleOnSync(void){
7984 ble_hs_pvcy_rpa_config (1 );
8085
8186 /* Make sure we have proper identity address set (public preferred) */
82- rc = ble_hs_util_ensure_addr (0 );
87+ // rc = ble_hs_util_ensure_addr(0);
8388
8489
8590 /*use privacy*/
86- rc = ble_hs_id_infer_auto (bleAddressType , & bleAddressType );
87- assert (rc == 0 );
91+ // rc = ble_hs_id_infer_auto(bleAddressType, &bleAddressType);
92+ // assert(rc == 0);
8893
8994 uint8_t addr_val [6 ] = {0 };
9095 if (BLE_HS_ENOADDR == ble_hs_id_copy_addr (BLE_ADDR_PUBLIC , addr_val , NULL )) {
Original file line number Diff line number Diff line change @@ -25,4 +25,7 @@ void bleHostTask(void *param);
2525
2626void print_addr (const void * addr );
2727
28+ /* Define template prototype for store*/
29+ void ble_store_config_init (void );
30+
2831#endif
You can’t perform that action at this time.
0 commit comments