Skip to content

YeonwooSung/esp32-snippets

This branch is 20 commits ahead of nkolban/esp32-snippets:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

395387c · Nov 18, 2019
Aug 15, 2017
Aug 6, 2018
Aug 16, 2018
Nov 7, 2016
Jan 20, 2017
Aug 26, 2018
May 26, 2018
Sep 19, 2019
Oct 7, 2017
Aug 16, 2018
Apr 2, 2018
Sep 10, 2017
Jan 16, 2017
Sep 23, 2018
Mar 15, 2017
Jun 8, 2018
Nov 25, 2017
May 26, 2018
Dec 24, 2016
Dec 9, 2016
Oct 7, 2017
Feb 2, 2017
Feb 2, 2017
Mar 24, 2017
Feb 11, 2017
Jan 5, 2017
Jan 14, 2017
Aug 6, 2018
Aug 6, 2018
Nov 12, 2016
Jan 14, 2017
Dec 24, 2016
Aug 7, 2018
Mar 29, 2018
Oct 18, 2018
Nov 5, 2016
Nov 1, 2017
Sep 12, 2017
Sep 9, 2019
Nov 1, 2017

Repository files navigation

ESP32 Snippets

The main reason that I forked this library is because the API design of the original repository does not allow the programmers to implement the app that BLE server and BLE client coexist and run simultaneously.

As one of the projects that I am participating in requires both BLE client and server on same board, thus, I decided to fork the esp32 library, and add new codes that allow me to do this.

To make the ESP32 to have BLE server mode and BLE client mode, we should be able to kill the BLE server if requried. However, due to API design, it was impossible to kill the server, thus, I implemented a method called "removeServer" in the BLEDevice.cpp file to make it possible.

Changes

1) Make BLE Advertising stop when it is required

Due to this issue, removed the 496th line from the original BLEAdvertising.cpp file.

2) Add new static method to kill BLE server properly

Add removeServer() method to BLEDevice class, so that the programmer could deinitialise the BLE server(kill the BLE server).

3) Creates a bunch of fixes for GCC warnings and errors

View commits for more information.

About

Sample ESP32 snippets and code fragments

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 52.3%
  • C++ 43.6%
  • Objective-C 1.6%
  • JavaScript 1.4%
  • HTML 0.5%
  • Makefile 0.4%
  • Other 0.2%