Replies: 3 comments
-
That function is defined in the BearSSL headers which are included in the core, and there is an example that actually compiles in that function to show how to use MFLN ( I don't know exactly what you're doing, but if you're going to use an external encryption chip then you can't use the built-in WiFiClientSecure(BearSSL) and need to write your own using it as a base. If you've changed the BearSSL backend library, that goes doubly-so. |
Beta Was this translation helpful? Give feedback.
-
Here is my code: #include <ArduinoBearSSL.h>
#include <ArduinoMqttClient.h>
#include <WiFi.h>
const char ssid[] = "XXXXXXXX";
const char pass[] = "YYYYYYYY";
WiFiClient wifiClient;
BearSSLClient sslClient(wifiClient);
MqttClient mqttClient(sslClient);
void setup() {
Serial.begin(115200);
while (!Serial);
}
void loop() {
if (WiFi.status() != WL_CONNECTED) {
connectWiFi();
}
}
void connectWiFi() {
Serial.print("Attempting to connect to SSID: ");
Serial.print(ssid);
Serial.print(" ");
while (WiFi.begin(ssid, pass) != WL_CONNECTED) {
Serial.print(".");
delay(5000);
}
Serial.println();
Serial.println("You're connected to the network");
Serial.println();
} It is a very light version of Securely Connecting an Arduino MKR WiFi 1010 to AWS IoT Core. From my side, I get the same error when compiling with "Raspberry Pi Pico W" as board. |
Beta Was this translation helpful? Give feedback.
-
It's basically trying to replace the BearSSL that's included with the core w/a much older version which doesn't have that function call. You can hack out that call (assuming you don't care about MFLN) or move the ArduinoBearSSL library up to the latest release (which is close to 2 years old IIRC). |
Beta Was this translation helpful? Give feedback.
-
Hello,
I am currently working with Raspberry Pi Pico W with ATECC608 Secure Element using ArduinoECCX08 library.
My code is based on Securely Connecting an Arduino MKR WiFi 1010 to AWS IoT Core as I want to be able to connect to MQTT broker using client certificate with its private key stored in the slot 0 of the Secure Element ATECC608.
Based on my research there is a problem between ArduinoBearSSL and BearSSL::* namespace functions because I am getting this error:
Any idea for solution? I think that I have to use ArduinoBearSSL because it defines the setEccSlot() function which is used to define the certificate private key slot.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions