@@ -184,8 +184,8 @@ class ws_wifi_pico : public Wippersnapper_V2 {
184184 ? _aio_root_ca_prod
185185 : _aio_root_ca_staging);
186186 WsV2._mqttV2 = new Adafruit_MQTT_Client (
187- _mqtt_client_secure, WsV2._configV2 .aio_url , WsV2._configV2 .io_port , clientID,
188- WsV2._configV2 .aio_user , WsV2._configV2 .aio_key );
187+ _mqtt_client_secure, WsV2._configV2 .aio_url , WsV2._configV2 .io_port ,
188+ clientID, WsV2._configV2 .aio_user , WsV2._configV2 .aio_key );
189189 } else {
190190 _mqtt_client_insecure = new WiFiClient ();
191191 WsV2._mqttV2 = new Adafruit_MQTT_Client (
@@ -330,13 +330,13 @@ class ws_wifi_pico : public Wippersnapper_V2 {
330330
331331 // Use the macro to retry the status check until connected / timed out
332332 int lastResult;
333- /* RETRY_FUNCTION_UNTIL_TIMEOUT(
334- []() -> int { return WiFi.status(); }, // Function call each cycle
335- int, // return type
336- lastResult, // return variable (unused here)
337- [](int status) { return status == WL_CONNECTED; }, // check
338- PICO_CONNECT_TIMEOUT_MS, // timeout interval (ms)
339- PICO_CONNECT_RETRY_DELAY_MS); // interval between retries */
333+ /* RETRY_FUNCTION_UNTIL_TIMEOUT(
334+ []() -> int { return WiFi.status(); }, // Function call each
335+ cycle int, // return type
336+ lastResult, // return variable (unused here)
337+ [](int status) { return status == WL_CONNECTED; }, // check
338+ PICO_CONNECT_TIMEOUT_MS, // timeout interval (ms)
339+ PICO_CONNECT_RETRY_DELAY_MS); // interval between retries */
340340
341341 if (lastResult == WL_CONNECTED) {
342342 _statusV2 = WS_NET_CONNECTED;
0 commit comments