Skip to content
This repository has been archived by the owner on Apr 1, 2024. It is now read-only.
/ nExtSP Public archive

Simple peer-to-peer like connection between two ESPs by only 4! lines of code.

License

Notifications You must be signed in to change notification settings

Lyniat/nExtSP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nExtSP

nower than ESP-Now

License: MIT

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.

License

About

Simple peer-to-peer like connection between two ESPs by only 4! lines of code.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages