muratdemirtas / ESP8266_MQTT_MESH

Combination of Mesh and MQTT protocols for long distances, hotels, hospitals and companies. A modular mesh system that lets you create connected devices in minutes. FOTA support will come soon.
MIT License
16 stars 7 forks source link

How to connect to the mqtt server #1

Open BlackEdder opened 8 years ago

BlackEdder commented 8 years ago

I am trying to setup this network, but it is unclear to me how to connect the mesh network to the network (IP) my mqtt server is on. Is the mqttPrefix the SSID of the network where the MQTT server is?

muratdemirtas commented 8 years ago

you can change your modem settings in here for mqtt

define MQTT_PREFIX "Muhendis" //change to your modem ssid

define MQTT_PASSWORD "Murtiaxi133." //use your modem password

// this is my mqtt server so you can use mqtt server via mqtt.fx app or calls or this mesh example, (free,unsecured, for testing)

define MQTT_PORT 1883

define MQTT_SERVER "139.59.138.76"

Is the mqttPrefix the SSID of the network where the MQTT server is?

yes, iam using raspberry pi access point as mqtt access point.

BlackEdder commented 8 years ago

Thank you that clarifies it :)

Also can I ask how routing within the mesh is organised. Typically there is a danger of loops in routing in a mesh, e.g. see: http://www.intechopen.com/books/wireless-ad-hoc-networks/reducing-routing-loops-under-link-state-routing-in-wireless-mesh-networks

muratdemirtas commented 8 years ago

this easymesh protocol using subscriber technique for routing. All nodes know who is in mesh network. And fast and short routing way calculating. No loop package spotted on this example.

BlackEdder commented 8 years ago

you can change your modem settings in here for mqtt

define MQTT_PREFIX "Muhendis" //change to your modem ssid

define MQTT_PASSWORD "Murtiaxi133." //use your modem password

Looking at the new diagram in the README it now seems to show that you need to connect a node over serial to a server. From your reply above I thought (one of) the nodes would just login to your normal wifi network (from your normal router) and forward messages from the mesh network to the server via your normal wifi network. Did I misunderstand that?

muratdemirtas commented 8 years ago

i'm changing topology. stay tuned.