-
Notifications
You must be signed in to change notification settings - Fork 79
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
The library is not working #52
Comments
I think with "#" you can subscribe to all Topics, try to subscrybe to all Topics on an MQTT Client and watch what is coming in, maybe you are just expecting the wrong topic to come in or sth. |
I'm subscribed to all topic with "#", I tried directly with the examples of the library "AsyncMqttClient" and I can publish without problems with the same configurations, I appreciate your help Thank you. |
I had the same issue and resolved it by applying this patch: #63 |
So I had a similar problem
on my mqtt server. Since I found this on my googlesearch and it fits my problem too I am going to add what was my solution. The mesh is connecting to routers in the 192.168.1 subnet while the mqtt server is in the 192.168.2 one. So the mesh code does this:
And since the gateway it gets from the router is 192.168.1.1 it starts settings it's own subnet as 192.168.2 and so everything starts to go wrong from there :) Not sure how you would fix this for everyone. |
I'm having a similar problem now, |
@SpeedProg I'm not sure if the ip Adress is really causing this Issue, but you could try to modify the Code, so it does not change the 3. Byte but the 2. one. if you could test this the Result would also be verry interresting for me, because i have a Subnet Mask of 255.255.0.0 so i could change the 3.Byte to whatever i want and it would still be in the same Subnet. Maybe this is also the Cause of my Stabillity Issues. an modified Code could look like: |
hi void callback(const char *topic, const char *msg) {
} the function doesn't work what am I doing wrong? |
there is another problem when running on ESP8266 sending: ESP8266-out / 80d621 / info / RSSI=-55 User exception (panic/interruption / approval)
ctx: const after reading on the forums I realized that this error is not only mine and the decision to add to all functions with interrupts: |
Thanks a lot timurufa86! That's are some really valuable new Informations. Which IDE are you using? Because I'm using Platformio without anny fancy configurations and don't get the Error with "ISR not in IRAM!". Also what exactly happened when you used my fork? Didn't fully understood your previouse post. Generally speaking my fork should be quite a bit more stable/robust than this repo, but I still have some Problems with stability (only when using the Mesh) maybe your error resolves this last instability! |
|
serial monitor log: Serial.println(topic); here's how to make the LED turn on or off when receiving commands from the broker? |
заработало вот с таким топиком : esp8266-in/80D621/8443425 |
Hi, it seems like you are using custom In and Out Topics. It looks like these Topic's aren't configured correctly, you aren't sending to your node Topic. By default it should be esp8266-in/80D621for your node. I don't know what exactly the number you are using should do, but if you just don't touch the in and out topics you should receive the message if you send it to esp8266-in/80D621. Also your last Comment is in an for me unreadable language. |
Sorry, I wrote in Russian |
Hello simone1999. The ESP8266MeshHelloWorld example compiles on this platform. However in NodeMcu where I'm recording, it locks up, goes into a loop. the messages from the serial terminal are: ets Jan 8 2013, rst cause: 2, boot mode: (3,6) load 0x4010f000, len 3456, room 16 Exception (3):
ctx: cont I haven't changed anything in your example. it just doesn't work. |
Hm... I can't think of anything that could cause this reliably. I also ran into this Issue multiple times, but for me it always has been an broken esp8266. After replacing them with a new one everything worked for me. Could you please try an other esp8266 and tell me if that changed something? |
I have 22 NodeMcu units at my disposal. I can test on everyone. |
I just tested on 5 units, all new. the problem persists. |
I was trying to find the problem, and I realized that when we compiled the code without the mesh.begin () statement; Compilation happens and NodeMcu does not freeze. |
Just to make sure, you call mesh.begin() and not mesh.begin () right?! |
mesh.begin() kind of starts everything, so sadly this does not really help us a lot... Without the begin function you only import code but don't run anny of it. |
Exactly, when starting the mesh network, NodeMcu freezes |
Noting crashes with dbgPrintln defined in ESP8266MQTTMesh.cpp. Fix below.
|
Make sure you have the latest version of ESP8266MQTTMesh before reporting an issue.
Please Provide the following information:
If you are you using platformio or Arduino, which one?
Arduino
Description of problem:
I'm using the "HelloWorld" example, I get the following on the serial monitor:
[connect_mqtt] Attempting MQTT connection (192.168.1.179:1883)...
[onMqttConnect] MQTT Connected
[publish] Sending: esp8266-out/bssid/a1e097=6A:A6:E6:A1:E0:97
[setup_AP] Initialized AP as 'esp8266_mqtt_mesh_a1e097' IP '10.42.1.1'
[publish] Sending: esp8266-out/a1e097/10608791=hello from 10608791 cnt: 76
[publish] Sending: esp8266-out/a1e097/10608791=hello from 10608791 cnt: 77
[publish] Sending: esp8266-out/a1e097/10608791=hello from 10608791 cnt: 78
[onMqttDisconnect] Disconnected from MQTT: 0
[connect_mqtt] Attempting MQTT connection (192.168.1.179:1883)...
[onMqttConnect] MQTT Connected
[publish] Sending: esp8266-out/bssid/a1e097=6A:A6:E6:A1:E0:97
[setup_AP] Initialized AP as 'esp8266_mqtt_mesh_a1e097' IP '10.42.1.1'
[publish] Sending: esp8266-out/a1e097/10608791=hello from 10608791 cnt: 79
[publish] Sending: esp8266-out/a1e097/10608791=hello from 10608791 cnt: 80
[publish] Sending: esp8266-out/a1e097/10608791=hello from 10608791 cnt: 81
[publish] Sending: esp8266-out/a1e097/10608791=hello from 10608791 cnt: 82
It seems that the mqtt server can be published, but I do not see the messages coming to my server,
I appreciate your collaboration.
Apologies for my English, I'm using the Google translator
The text was updated successfully, but these errors were encountered: