Mqtt publish but only "locally" #2730
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I'm sorry, there is no such thing as "sometimes reaches sometimes not". Your Ethernet frames either go out or don't, and they are fine or contain garbage. Your broker then either receives the good frames or it does not. Please sniff your network (using Wireshark, for example) and observe the traffic. Please do not paste code snapshots, use markdown or attach. If, after your network and hardware inspection, you find an actual issue, feel free to open an issue, fill the issue template, and provide us with pertinent information (including useful network captures) in order to reproduce and fix the issue. We don't inspect your code for errors, please send the minimum piece of code that can reproduce the issue |
Beta Was this translation helpful? Give feedback.
I'm sorry, there is no such thing as "sometimes reaches sometimes not". Your Ethernet frames either go out or don't, and they are fine or contain garbage. Your broker then either receives the good frames or it does not. Please sniff your network (using Wireshark, for example) and observe the traffic.
There is no "too high frequency", what you are doing is sending at some interval, every time you call the 'pub' function that will place a message on the TCP buffer that will be sent by the manager, if you try to send too much, you will get out of memory and your log will indicate that.
You may have hardware issues, use an oscilloscope or logic analyzer; the HAL SPI driver might be being used…