Skip to content
Simple peer-to-peer like connection between two ESPs by only 4! lines of code.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
src
.gitignore
.travis.yml
LICENSE
README.md
library.json
platformio.ini

README.md

nExtSP

nower than ESP-Now

License: MIT HitCount

Why?

ESP-Now is nice, but when you need a really simple peer-to-peer like connection between two ESP32, it's still too complicated.
nExtSP solves this problem by using only four lines of code!

  1. NEXTSP nextsp;
  2. nextsp.begin(isServer,"43750697",&onCallback);
  3. nextsp.send("test");
  4. nextsp.update();

How?

  #include <nExtSP.h>

  NEXTSP nextsp;
  
  void onCallback(byte* b,int length){
  //...
  }
  
  void setup(){
  //            boolean, if esp32 is server or client
  //              |      choose a unique id for every pair
  //              |         |        register callback function
  //              v         v            v
  //...
  nextsp.begin(isServer,"43750697",&onCallback);
  //...
  }
  
  void loop(){
  //...
  nextsp.send("test");
  //...
  nextsp.update(); // call once every loop.
  //...
  }

See also example code in repository.

Contribution

Contribution is always welcome :)

License

You can’t perform that action at this time.