using EMQTT to create clients in Erlang/OTP does not work. #273
SaveMe0
started this conversation in
Show and tell
Replies: 1 comment
-
The sentence What I should have written is |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The snippet of code that was posted by William Yang on on Dec 20, 2024 does not work as the emqtt functions I am using in my com2.erl module and contained in this discussion are the same. The only difference between the minimal stuff and my code is the host name.
I know I can communicate with emqtt because my command line subscriptions and publications work perfectly. So the problem can only exist in emqtt!
Here is my code. It is using the same minimal emqtt function above. The only thing difference is the host IP address. I am running the code on Debain 12 hosting Erlang/OTP 27.
code_change(_Vsn, State, Data, _Extra) ->
{ok, State, Data}.
When I run the com2.erl module shown above, I get the following result
Beta Was this translation helpful? Give feedback.
All reactions