Skip to content

Mqtt publish but only "locally" #2730

Discussion options

You must be logged in to vote

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…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by scaprile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants