Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mesh Network publish conflict #70

Open
OmarAlkassab opened this issue May 5, 2019 · 1 comment
Open

Mesh Network publish conflict #70

OmarAlkassab opened this issue May 5, 2019 · 1 comment

Comments

@OmarAlkassab
Copy link

Make sure you have the latest version of ESP8266MQTTMesh before reporting an issue.

Please Provide the following information:

  • ESP8266MQTTMesh version: 1.0.4
  • AsyncMQTTClient version: 0.8.2
  • ESPAsyncTCP version: 1.2.0
  • ESP8266 Core version: 2.0.4

If you are you using platformio or Arduino, which one?
platformio

Description of problem:
I have built a mesh network of 2 NodeMCU v1.0 (ESP-12E) just for testing, and I have set the credentials of each one separately. When the 2 modules can see the router, they publish the data for each board client id, but when one of them use the mesh technology, the message is published by the nearest module to the router! How I can always ensure each module publish to its account?

@simone1999
Copy link
Collaborator

you can only ensure that by seperating the Modules in two Networks. This is done by giving each node one of two different Mesh passwords, nodes with different Mesh Passwords don't connect together so 2 completely seperated Meshes will be formed. The mqtt Message will always be send to the MQTT Server defined by the Node with direct Connection to the Router! if you don't want to seperate the Meshes my Advice would be to let them all send to the same MQTT Broker and then forward the packets to the real different MQTT Brokers. if your Programming Skills or Motivation is not high enough to write a own Programm, which handles the Packet detection and sending to the right Broker, you could just use Node-Red, it has a MQTT interface and with the Nodes the Seperation of the Packages should not be hard. Feel free to write back if you need more Help/Informations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants