Skip to content

Commit ff262b7

Browse files
committed
mod: client expects array4 as response
1 parent 462791f commit ff262b7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/client.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ class RPCClient {
4040
int r_msg_id;
4141
MsgPack::object::nil_t error;
4242

43-
bool ok = unpacker.deserialize(r_msg_type, r_msg_id, error, result);
43+
MsgPack::arr_size_t resp_size(4);
44+
45+
bool ok = unpacker.deserialize(resp_size, r_msg_type, r_msg_id, error, result);
4446

4547
if (!ok){
4648
//Serial.println("could not serialize resp");

0 commit comments

Comments
 (0)