|
ESP_IOT v2.5
IOT ESP Coding
|

Go to the source code of this file.
Classes | |
| class | BLEServeNetworkingCallbacks |
| 7.25.26 trying to work with 2.1 libs.. More... | |
| class | BLEServerNetworkingCharacteristicCallbacks |
| 7.25.26 trying to work with 2.1 libs.. More... | |
| class | BLEServerNetworkingDescriptorCallbacks |
Macros | |
| #define | pettutorApproach |
| #define | MAX_MESSAGE 600 |
Functions | |
| char * | getServiceName_BLEServerNetworking () |
| retrieve the service name (PTFEEDER, PTFeeder:Name, PTClicker:Name, etc) More... | |
| void | loop_BLEServerNetworking () |
| the 'loop' for this module BLEServerNetworking. More... | |
| 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 later) More... | |
| void | sendBLEMessageACKMessage () |
| send ACK over bluetooth, this right now is 0x01 More... | |
Variables | |
| NimBLECharacteristic * | _pCharacteristic |
| char | _serviceName_BLEServer [100] |
| device name More... | |
| char * | _SERVICE_UUID |
| need to device way to change these ... More... | |
| char * | _CHARACTERISTIC_UUID |
| char | _asciiMessage [MAX_MESSAGE] |
| BLEServeNetworkingCallbacks | _BLEServeNetworkingCallbacks |
| BLEServerNetworkingCharacteristicCallbacks | _BLEServerNetworkingCharacteristicCallbacks |
| BLEServerNetworkingDescriptorCallbacks | _BLEServerNetworkingDescriptorCallbacks |
| #define MAX_MESSAGE 600 |
Definition at line 33 of file BLEServerNetworking.cpp.
| #define pettutorApproach |
| char * getServiceName_BLEServerNetworking | ( | ) |
retrieve the service name (PTFEEDER, PTFeeder:Name, PTClicker:Name, etc)
NOT HERE.
Definition at line 38 of file BLEServerNetworking.cpp.

| void loop_BLEServerNetworking | ( | ) |
the 'loop' for this module BLEServerNetworking.
the 'setup' for this module BLEServerNetworking. Here the service name is added (and potentially more later)
Definition at line 496 of file BLEServerNetworking.cpp.

| void sendBLEMessageACKMessage | ( | ) |
send ACK over bluetooth, this right now is 0x01
send something over bluetooth, this right now is 0x01
Definition at line 619 of file BLEServerNetworking.cpp.

| 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 later)
defines the operations on BLE Server Networking BLEServerNetworking is the "server" side of the BLE interface
10.13.25 copy here.. 8.16.25 (use the setting)
! Seems to be a length of 31 too long //DEBUG: crashed
create server
set callbacks
create the DEAD service so a GEN3 can be ruled out..
2904 descriptors are a special case, when createDescriptor is called with 0x2904 a NimBLE2904 class is created with the correct properties and sizes. However we must cast the returned reference to the correct type as the method only returns a pointer to the base NimBLEDescriptor class.
used??
create our main _SERVICE_UUID service`
Custom descriptor: Arguments are UUID, Properties, max length in bytes of the value
now the advertising..
Create an advertising instance and add the services to the advertised data
advertise service UUID for DEAD
advertise service UUID for iDOGWatch
If your device is battery powered you may consider setting scan response to false as it will extend battery life at the expense of less data sent.
Definition at line 513 of file BLEServerNetworking.cpp.


| char _asciiMessage[MAX_MESSAGE] |
Definition at line 34 of file BLEServerNetworking.cpp.
| BLEServeNetworkingCallbacks _BLEServeNetworkingCallbacks |
| BLEServerNetworkingCharacteristicCallbacks _BLEServerNetworkingCharacteristicCallbacks |
| BLEServerNetworkingDescriptorCallbacks _BLEServerNetworkingDescriptorCallbacks |
| char* _CHARACTERISTIC_UUID |
Definition at line 31 of file BLEServerNetworking.cpp.
| NimBLECharacteristic* _pCharacteristic |
Definition at line 20 of file BLEServerNetworking.cpp.
| char* _SERVICE_UUID |
need to device way to change these ...
Definition at line 30 of file BLEServerNetworking.cpp.
| char _serviceName_BLEServer[100] |
device name
Definition at line 25 of file BLEServerNetworking.cpp.