You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to run sketch on Arduino Nano RP2040 Connect and getting 'Connection Faild Error'.
16:33:13.395 -> Connecting to Wi-Fi...Connecting to Wi-Fi...Connecting to Wi-Fi...Connecting to Wi-Fi... 16:35:51.138 -> Connected to Wi-Fi! 16:35:51.138 -> 16:35:51.138 -> [ChatGPT] Only print a content message 16:35:51.404 -> ===ERROR=== 16:35:51.404 -> [ERR] Connection failed!
Installed version 0.1.2
Sample Arduino Code
#include <ArduinoJson.h>
#include <WiFiNINA.h>
#include <ArduinoBearSSL.h>
#include <ChatGPT.hpp>
static const char *ssid = "xxxx";
static const char *password = "xxx";
WiFiClient client;
BearSSLClient sslClient(client);
ChatGPT<BearSSLClient> chat_gpt(&sslClient, "v1", "xxxxxx");
void setup() {
Serial.begin(115200);
// Wait for serial port to initialize
while (!Serial) {
delay(10);
}
// Connect to Wi-Fi network
connectWiFi();
// Ignore SSL certificate validation
// client.setInsecure();
String result;
Serial.println("[ChatGPT] Only print a content message");
if (chat_gpt.simple_message("gpt-3.5-turbo-0301", "user", "Planning a 3-day trip to San Diego", result)) {
Serial.println("===OK===");
Serial.println(result);
} else {
Serial.println("===ERROR===");
Serial.println(result);
}
}
void loop() {}
void connectWiFi() {
// Connect to Wi-Fi network
}
Any suggestions would be helpful.
The text was updated successfully, but these errors were encountered:
I am trying to run sketch on Arduino Nano RP2040 Connect and getting 'Connection Faild Error'.
16:33:13.395 -> Connecting to Wi-Fi...Connecting to Wi-Fi...Connecting to Wi-Fi...Connecting to Wi-Fi... 16:35:51.138 -> Connected to Wi-Fi! 16:35:51.138 -> 16:35:51.138 -> [ChatGPT] Only print a content message 16:35:51.404 -> ===ERROR=== 16:35:51.404 -> [ERR] Connection failed!
Installed version 0.1.2
Sample Arduino Code
Any suggestions would be helpful.
The text was updated successfully, but these errors were encountered: