-->
Page 1 of 2

ESP8266 Mesh Network problem

PostPosted: Tue Aug 25, 2015 12:10 am
by Thrinasco
Hi,

I am using the mesh network example given in the Arduino IDE hellomesh program.My target is to create mesh network for 3 or 4 ESP8266 modules should communicate with each other.

Does i need to dump the same program in all the nodes or there should be some other code for nodes.


Code: Select all#include <ESP8266WiFi.h>
#include <ESP8266WiFiMesh.h>

/* Create the mesh node object */
ESP8266WiFiMesh mesh_node = ESP8266WiFiMesh(ESP.getChipId(), manageRequest);

/**
 * Callback for when other nodes send you data
 *
 * @request The string received from another node in the mesh
 * @returns The string to send back to the other node
 */
String manageRequest(String request)
{
   /* Print out received message */
   Serial.print("received: ");
   Serial.println(request);

   /* return a string to send back */
   return String("Hello world response.");
}

void setup()
{
   Serial.begin(115200);
   delay(10);

   Serial.println();
   Serial.println();
   Serial.println("Setting up mesh node...");

   /* Initialise the mesh node */
   mesh_node.begin();
}

void loop()
{
   /* Accept any incoming connections */
   mesh_node.acceptRequest();

   /* Scan for other nodes and send them a message */
   mesh_node.attemptScan("Hello world request.");
   delay(1000);
}

Re: ESP8266 Mesh Network problem

PostPosted: Tue Nov 03, 2015 5:50 pm
by JeremiahLandi
Thrinasco,

I just came across this. Did you find an update to your answer?

How is the project coming along?

Re: ESP8266 Mesh Network problem

PostPosted: Tue Nov 17, 2015 6:46 am
by Checco
Hello,
i use the ESP8266 module...
can i connect this module to create mesh network?
how i can conncet this module??

please give me more information..
thanks

F.N.

Re: ESP8266 Mesh Network problem

PostPosted: Wed Nov 18, 2015 10:10 pm
by haitao0612
mesh node:This mode is in AP+STA mode,have a server and client.The AP is Mesh_Node_ChipID,no pass. You can find zhe AP,and connect to it ,and TCP client of you device in STA model connect to Ip:192.168.4.1,port:4011,Ok!

you can find the define of Server and Client in the file "ESP8266MESH.cpp".