RUI3 (RAK Unified Interface 3) - RAK4631
RAKBleSettings.h
Go to the documentation of this file.
1 #ifndef __RAK_BLE_SETTINGS_H__
2 #define __RAK_BLE_SETTINGS_H__
3 
4 #ifdef SUPPORT_BLE
5 
6 #include "udrv_ble.h"
7 #include "WString.h"
8 
13 typedef enum
14 {
18 
22  public:
31  class txPower {
32  public:
44  bool set(int8_t txpwr);
45 
52  int8_t get();
53  };
54 
59  public:
70  bool set(int32_t adv_interval);
71 
78  int32_t get();
79  };
80 
84  class broadcastName {
85  public:
86 
98  bool set(char *ble_name, uint8_t device_name_length);
99 
106  char* get();
107  };
108 
119  void blemode(RAK_BLE_SERVICE_MODE ble_mode);
120 
121  //instance
125 
126  private:
127  char *localData;
128  uint32_t localLength;
129  uint32_t readCount = 0;
130 };
131 
140  public:
150  bool start(uint8_t adv_time);
151 
172  bool stop();
173 
183  bool status();
184 };
188 class RAKBleMac {
189  public:
202  char* get(uint8_t pos);
203  char* get(void);
214  bool set(char *mac);
215  private:
216  uint8_t devmac[13];
217  uint8_t twomac[3];
218 };
219 
223 #endif
224 
225 #endif
Definition: RAKBleSettings.h:58
RAK_BLE_SERVICE_MODE
Definition: RAKBleSettings.h:13
void blemode(RAK_BLE_SERVICE_MODE ble_mode)
Definition: RAKBleSettings.h:188
Switch to uart advertisement mode.
Definition: RAKBleSettings.h:15
Switch to beacon mode.
Definition: RAKBleSettings.h:16
Definition: RAKBleSettings.h:21
Definition: RAKBleSettings.h:31
Definition: RAKBleSettings.h:139
Definition: RAKBleSettings.h:84