File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ static volatile uint32_t mqttClientLastDataReceived; // Last time data was recei
123
123
124
124
static char *mqttClientPrivateKeyBuffer; // Buffer for client private key
125
125
126
- static NetworkSecureWiFiClient *mqttSecureClient;
126
+ static RTKNetworkSecureClient *mqttSecureClient;
127
127
128
128
static volatile uint8_t mqttClientState = MQTT_CLIENT_OFF;
129
129
@@ -555,7 +555,7 @@ void mqttClientUpdate()
555
555
}
556
556
557
557
// Allocate the mqttSecureClient structure
558
- mqttSecureClient = new NetworkSecureWiFiClient ();
558
+ mqttSecureClient = new RTKNetworkSecureClient ();
559
559
if (!mqttSecureClient)
560
560
{
561
561
systemPrintln (" ERROR: Failed to allocate the mqttSecureClient structure!" );
Original file line number Diff line number Diff line change @@ -259,22 +259,21 @@ class RTKNetworkClientType : public RTKNetworkClient
259
259
}
260
260
};
261
261
262
- #ifdef COMPILE_WIFI
263
- class NetworkSecureWiFiClient : public RTKNetworkClient
262
+ class RTKNetworkSecureClient : public RTKNetworkClient
264
263
{
265
264
protected:
266
265
NetworkClientSecure _client;
267
266
268
267
public:
269
- NetworkSecureWiFiClient () : _client{WiFiClientSecure ()}, RTKNetworkClient(&_client, NETWORK_TYPE_WIFI)
268
+ RTKNetworkSecureClient () : _client{NetworkClientSecure ()}, RTKNetworkClient(&_client, NETWORK_TYPE_WIFI)
270
269
{
271
270
}
272
271
273
- NetworkSecureWiFiClient (WiFiClient &client) : _client{client}, RTKNetworkClient(&_client, NETWORK_TYPE_WIFI)
272
+ RTKNetworkSecureClient (NetworkClientSecure &client) : _client{client}, RTKNetworkClient(&_client, NETWORK_TYPE_WIFI)
274
273
{
275
274
}
276
275
277
- ~NetworkSecureWiFiClient ()
276
+ ~RTKNetworkSecureClient ()
278
277
{
279
278
this ->~RTKNetworkClient ();
280
279
}
@@ -372,6 +371,4 @@ class NetworkSecureWiFiClient : public RTKNetworkClient
372
371
}
373
372
};
374
373
375
- #endif // COMPILE_WIFI
376
-
377
374
#endif // __NETWORK_CLIENT_H__
You can’t perform that action at this time.
0 commit comments