You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/*inidcate that the tx power level field should be included; have the stack fill this value automatically. This is done ba assigning the special value BLE_HS_ADV_TX_PWR_LVL_AUTO.
Copy file name to clipboardExpand all lines: main/main.hpp
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -14,19 +14,29 @@
14
14
#include"nimble/nimble_port_freertos.h"
15
15
#include"host/ble_hs.h"
16
16
#include"services/gap/ble_svc_gap.h"
17
+
#include"services/gatt/ble_svc_gatt.h"
17
18
18
19
extern"C" {
19
20
20
21
staticconstchar *tag = "SimLinkModule_BLE";
21
22
22
23
staticuint8_t bleprhp_addr_type;
23
24
25
+
//eindeutiges handle was bei einem verbindungsaufbau einer verbindung zugeordnet wird
26
+
staticuint16_t conn_handle;
27
+
24
28
//start nimble in a task
25
29
voidbleprph_host_task(void *param);
26
30
//This callback is executed when the host resets itself and the controller
27
31
staticvoidbleprhp_on_reset(int reason);
28
32
//This callback is executed when the host and controller become synced. This happens at startup and after a reset
29
33
staticvoidbleprhp_on_sync(void);
34
+
//enables advertising with parameters: general discoverable mode and unidrect connectable mode
35
+
staticvoidbleprhp_advertise(void);
36
+
//The callback to associate with this advertising procedure. If advertising ends, the event is reported through this callback. If advertising results in a connection, the connection inherits this callback as its event-reporting mechanism.
0 commit comments