I am using an Arduino Uno that is connected to a CC3000 WiFi Shield in order to connect to Blynk. I am using Version 1.1.0 of the Blynk Arduino Library. My code successfully connects to my WiFi network, but never gets past “Looking for blynk.cloud”. Could someone help me to get my Arduino Uno to actually connect to the Blynk Cloud?
Code:
#define BLYNK_TEMPLATE_ID "templateidhere"
#define BLYNK_DEVICE_NAME "devicenamehere"
#define BLYNK_AUTH_TOKEN "authtokenhere"
#define BLYNK_PRINT Serial
#define ADAFRUIT_CC3000_IRQ 3
#define ADAFRUIT_CC3000_VBAT 5
#define ADAFRUIT_CC3000_CS 10
#include <SPI.h>
#include <Adafruit_CC3000.h>
#include <BlynkSimpleCC3000.h>
char auth[] = "authtokenhere";
char ssid[] = "networknamehere";
char pass[] = "networkpasswordhere";
int wifi_sec = WLAN_SEC_WPA2;
void setup()
{
Serial.begin(9600);
Blynk.begin(auth, ssid, pass, wifi_sec);
}
void loop()
{
Blynk.run();
}
Serial Monitor Feedback:
[2137] Connecting to "networknamehere"
[14389] Getting IP...
[17089] IP: "IP here"
[17090] GW: "GW here"
[17091] DNS: "DNS here"
[17103]
___ __ __
/ _ )/ /_ _____ / /__
/ _ / / // / _ \/ '_/
/____/_/\_, /_//_/_/\_\
/___/ v1.1.0 on Arduino Uno
#StandWithUkraine https://bit.ly/swua
[17312] Looking for blynk.cloud