Skip to content

answer command: ID limited to size 4 ? #1241

Answered by TeXiCiTy
TeXiCiTy asked this question in Q&A
Discussion options

You must be logged in to vote

https://github.com/john30/ebusd/blob/master/src/lib/ebus/protocol_direct.cpp#L864

  m_response.clear();
  size_t len = m_command[4];
+ if (len>4) {
+   len=4;
+   }
  bool master = isMaster(m_command[1]);

I managed to make it work with the truncated message.
I can now answer to the command when the first 4 ID values are the same.

This command reacts to the longer command now
answer -d e0 b52100012014 0106d0ff1a00074759f400
<03e0b5210900012014ecffff460074>000b0106d0ff1a00074759f40063<00

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by TeXiCiTy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant