created bluetooth server
This commit is contained in:
parent
e2f57bad76
commit
87fd0f35f6
4 changed files with 130 additions and 5 deletions
25
src/ble/BluetoothServer.h
Normal file
25
src/ble/BluetoothServer.h
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#ifndef NEW_CLIMTE_GO_BLUETOOTHSERVER_H
|
||||
#define NEW_CLIMTE_GO_BLUETOOTHSERVER_H
|
||||
|
||||
#include <BLEDevice.h>
|
||||
#include <BLEServer.h>
|
||||
#include <BLEUtils.h>
|
||||
#include <BLE2902.h>
|
||||
#include <Arduino.h>
|
||||
|
||||
#define temperatureCelsius
|
||||
|
||||
class BluetoothServer {
|
||||
private:
|
||||
BLEService *sensorService;
|
||||
BLEServer *bleServer;
|
||||
public:
|
||||
BluetoothServer();
|
||||
|
||||
void startServer();
|
||||
void setTemperature(float temperature);
|
||||
void setPressure(float pressure);
|
||||
};
|
||||
|
||||
|
||||
#endif //NEW_CLIMTE_GO_BLUETOOTHSERVER_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue