File tree 2 files changed +10
-2
lines changed
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 33
33
}
34
34
#endif
35
35
36
- void TLSClientMqtt::begin (ConnectionHandler & connection) {
36
+
37
+ void TLSClientMqtt::begin (ConnectionHandler & connection, ArduinoIoTAuthenticationMode authMode) {
37
38
38
39
#if defined(BOARD_HAS_OFFLOADED_ECCX08)
39
40
/* Arduino Root CA is configured in nina-fw
40
41
* https://github.com/arduino/nina-fw/blob/master/arduino/libraries/ArduinoBearSSL/src/BearSSLTrustAnchors.h
41
42
*/
43
+ (void )authMode;
42
44
#elif defined(BOARD_HAS_ECCX08)
45
+ (void )authMode;
43
46
setClient (connection.getClient ());
44
47
setProfile (aiotc_client_profile_init);
45
48
setTrustAnchors (ArduinoIoTCloudTrustAnchor, ArduinoIoTCloudTrustAnchor_NUM);
46
49
onGetTime (getTime);
47
50
#elif defined(ARDUINO_PORTENTA_C33)
51
+ (void )authMode;
48
52
setClient (connection.getClient ());
49
53
setCACert (AIoTSSCert);
50
54
#elif defined(ARDUINO_NICLA_VISION)
55
+ (void )authMode;
51
56
appendCustomCACert (AIoTSSCert);
52
57
#elif defined(ARDUINO_EDGE_CONTROL)
58
+ (void )authMode;
53
59
appendCustomCACert (AIoTUPCert);
54
60
#elif defined(ARDUINO_UNOR4_WIFI)
55
61
/* Arduino Root CA is configured in uno-r4-wifi-usb-bridge fw >= 0.4.1
@@ -62,8 +68,10 @@ void TLSClientMqtt::begin(ConnectionHandler & connection) {
62
68
/* Temporary force CACert to add new CA without rebuilding firmware */
63
69
setCACert (AIoTSSCert);
64
70
#elif defined(ARDUINO_ARCH_ESP32)
71
+ (void )authMode;
65
72
setCACert (AIoTUPCert);
66
73
#elif defined(ARDUINO_ARCH_ESP8266)
74
+ (void )authMode;
67
75
setInsecure ();
68
76
#endif
69
77
}
Original file line number Diff line number Diff line change @@ -71,6 +71,6 @@ enum class ArduinoIoTAuthenticationMode
71
71
#endif
72
72
73
73
public:
74
- void begin (ConnectionHandler & connection);
74
+ void begin (ConnectionHandler & connection, ArduinoIoTAuthenticationMode authMode = ArduinoIoTAuthenticationMode::CERTIFICATE );
75
75
76
76
};
You can’t perform that action at this time.
0 commit comments