Arduino Wifi1010 Not Showing Online in Arduino Cloud
My Arduino Wifi1010 board is connected to an Opla IOT kit, and the device won't show it's online in the Arduino Cloud devices section. I tried uploading a basic code to the Wifi1010 to connect to the internet and that worked. Can someone explain what's wrong?
This is the code I'm working on
#include <WiFiNINA.h>
#include "arduino_secrets.h"
char ssid[] = SECRET_SSID; // my network SSID (name)
char pass[] = SECRET_PASS; // my network password (use for WPA, or use as key for WEP)
int status = WL_IDLE_STATUS; // the Wifi radio's status
void setup() {
//Initialize serial and wait for port to open:
Serial.begin(9600);
while (!Serial);
// attempt to connect to Wifi network:
while (status != WL_CONNECTED) {
Serial.print("Attempting to connect to network: ");
Serial.println(ssid);
// Connect to WPA/WPA2 network:
status = WiFi.begin(ssid, pass);
// wait 10 seconds for connection:
delay(10000);
}
Serial.println("You're connected to the network");
Serial.println("----------------------------------------");
printData();
Serial.println("----------------------------------------");
}
void loop() {
// check the network connection once every 10 seconds:
delay(10000);
printData();
Serial.println("----------------------------------------");
}
void printData() {
Serial.println("Board Information:");
// print your board's IP address:
IPAddress ip = WiFi.localIP();
Serial.print("IP Address: ");
Serial.println(ip);
Serial.println();
Serial.println("Network Information:");
Serial.print("SSID: ");
Serial.println(WiFi.SSID());
// print the received signal strength:
long rssi = WiFi.RSSI();
Serial.print("signal strength (RSSI):");
Serial.println(rssi);
}
Solution:Jump to solution
@wafa_ath @Afuevu I found out exactly what wafa said, I didn't associate the right IDs together, problem solved ✅✅
Thank you both 🙏...
6 Replies
hello @aymen ammari, when you connect your Arduino WiFi1010 to your WiFi network, does it show the network information? or is it stuck at that point? If it shows the network information, but it's not interacting with the Arduino Cloud, i would suggest you add cloud-specific functionality using the Arduino-IoT-Cloud library.
It shows the network information and doesn't interact with the ARDUINO CLOUD... can you elaborate more on that?
Add ArduinoIoTCloud and Arduino_ConnectionHandler libraries to manage the connection to the Arduino Cloud.
I will try it real quick and tell
It could be that your board is not correctly associated with the Thing in the cloud. check your Device ID and Thing ID in the Arduino IoT Cloud setup.
Solution
@wafa_ath @Afuevu I found out exactly what wafa said, I didn't associate the right IDs together, problem solved ✅✅
Thank you both 🙏