ESP_IOT v2.5
IOT ESP Coding
BLEServerNetworking.h
Go to the documentation of this file.
1//
2// BLENetworking.hpp
3// M5Stick
4//
5// Created by Scott Moody on 1/19/22.
6//
7
8#ifndef BLEServerNetworking_h
9#define BLEServerNetworking_h
10
11#include "../../Defines.h"
12
13//!defines the operations on BLE Server Networking
14//!BLEServerNetworking is the "server" side of the BLE interface
15
16//!the 'setup' for this module BLEServerNetworking. Here the service name is added (and potentially more later)
17void setup_BLEServerNetworking(char *serviceName, char * deviceName, char *serviceUUID, char *characteristicUUID);
18
19//#define SERVICE_UUID PT_SERVICE_UUID //Pet Tutor feeder service for feed
20//#define CHARACTERISTIC_UUID PT_CHARACTERISTIC_UUID //Pet Tutor feeder characteristic
21
22//!the 'setup' for this module BLEServerNetworking. Here the service name is added (and potentially more later)
24
25#define BLE_SERVER_CALLBACK_ONREAD 0
26#define BLE_SERVER_CALLBACK_ONWRITE 1
27//!used to send a string message back (which might be sent to MQTT for example)
28#define BLE_SERVER_CALLBACK_STATUS_MESSAGE 2
29#define BLE_SERVER_MAX_CALLBACKS 3
30
31#ifdef NOT_HERE_USE_MAIN
32//! 10.13.25 Nice dayl . New snow in hills. Mt looking nice
33//! don't store service name here ..
34//!sets the device name
35void setBLEServerDeviceName(char *deviceName);
36#endif //! NOT HERE
37
38//! retrieve the service name (PTFEEDER, PTFeeder:Name, PTClicker:Name, etc)
40 //!
41//!send something over bluetooth, this right now is 0x01
43
44#endif /* BLEServerNetworking_hpp */
void loop_BLEServerNetworking()
the 'setup' for this module BLEServerNetworking. Here the service name is added (and potentially more...
void sendBLEMessageACKMessage()
send something over bluetooth, this right now is 0x01
char * getServiceName_BLEServerNetworking()
NOT HERE.
void setup_BLEServerNetworking(char *serviceName, char *deviceName, char *serviceUUID, char *characteristicUUID)
the 'setup' for this module BLEServerNetworking. Here the service name is added (and potentially more...