@@ -61,7 +61,7 @@ class BridgeTCPClient : public Client {
6161
6262 k_mutex_lock (&client_mutex, K_FOREVER);
6363
64- const bool resp = bridge->call (TCP_CONNECT_METHOD, connection_id, hostname, port);
64+ const bool resp = bridge->call (TCP_CONNECT_METHOD, hostname, port). result (connection_id );
6565
6666 if (!resp) {
6767 _connected = false ;
@@ -84,7 +84,7 @@ class BridgeTCPClient : public Client {
8484
8585 k_mutex_lock (&client_mutex, K_FOREVER);
8686
87- const bool resp = bridge->call (TCP_CONNECT_SSL_METHOD, connection_id, hostname, port, ca_cert_str);
87+ const bool resp = bridge->call (TCP_CONNECT_SSL_METHOD, hostname, port, ca_cert_str). result (connection_id );
8888
8989 if (!resp) {
9090 _connected = false ;
@@ -116,7 +116,7 @@ class BridgeTCPClient : public Client {
116116 }
117117
118118 size_t written;
119- const bool ret = bridge->call (TCP_WRITE_METHOD, written, connection_id, payload);
119+ const bool ret = bridge->call (TCP_WRITE_METHOD, connection_id, payload). result (written );
120120 if (ret) {
121121 return written;
122122 }
@@ -170,7 +170,7 @@ class BridgeTCPClient : public Client {
170170 void stop () override {
171171 k_mutex_lock (&client_mutex, K_FOREVER);
172172 String msg;
173- const bool resp = bridge->call (TCP_CLOSE_METHOD, msg, connection_id);
173+ const bool resp = bridge->call (TCP_CLOSE_METHOD, connection_id). result (msg );
174174 if (resp) {
175175 _connected = false ;
176176 }
@@ -198,7 +198,7 @@ class BridgeTCPClient : public Client {
198198 k_mutex_lock (&client_mutex, K_FOREVER);
199199
200200 MsgPack::arr_t <uint8_t > message;
201- const bool ret = bridge->call (TCP_READ_METHOD, message, connection_id, size);
201+ const bool ret = bridge->call (TCP_READ_METHOD, connection_id, size). result (message );
202202
203203 if (ret) {
204204 for (size_t i = 0 ; i < message.size (); ++i) {
0 commit comments