Replies: 1 comment 2 replies
-
If I recall correctly, the listenerName “m5” was solely to display in the server GUI what type of client was connected. Since not all clients are created equally. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
[Created a new thread for these as the answer probably apply to all clients.]
In the M5 Matrix client there are two variables declared that I'm a bit confused about.
listenerDeviceName is declared and initialized with a value. However, in the startup code, that value is overridden with another value that appends a serial number, thus creating a unique id. This value is passed up to the server in a couple of different places (wm.autoconnect, ArduinoOTA,setHostName and socket_Connected). Am I correct in thinking that the declared value is a placeholder and not really needed?
Somewhat similarly, in the Matrix code listenerType is declared and initialized with a value (in this case, M5). This value is not changed. It's just sent up to the server as a part of socketConnected. Presumably to let the server know how to talk back to the listener. However, when I looked at the M5StickC client code to confirm that it was using a similar or same value, it's not initialized there at all. Is this value being used in the server?
Thank you for tolerating the questions!
Beta Was this translation helpful? Give feedback.
All reactions