Skip to content

Commit 444d6a3

Browse files
committed
R4 RPC static
1 parent 570e3b8 commit 444d6a3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/tls/utility/TLSClientMqtt.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ void TLSClientMqtt::begin(ConnectionHandler & connection, ArduinoIoTAuthenticati
6666
*/
6767
(void)connection;
6868
Serial1.begin(115200);
69-
SerialTransport transport(&Serial1);
70-
RPCClient rpc(transport);
69+
static SerialTransport transport(&Serial1);
70+
transport.begin();
71+
static RPCClient rpc(transport);
7172
setClient(rpc);
7273
setCACert(AIoTUPCert);
73-
//transport.begin();
7474
/* Temporary force CACert to add new CA without rebuilding firmware */
7575
//if (authMode == ArduinoIoTAuthenticationMode::CERTIFICATE) {
7676
// setCACert(AIoTSSCert);

0 commit comments

Comments
 (0)