[SOLVED] Can not connect to Local Raspberry Server with Arduino UNO CC3000

Hello;

I’ve setup Blynk Server in Raspberry Pi. I can ping the server from my PC and I can reach the admin Panel of the server.

I’ve setup Arduino Uno with CC3000 shield it connects to network acquires an IP then it stuck im looking for server step. I would be happy if anyone advises what I’m missing in my code. I am attaching the code and output screen of Arduino.

Thanks

#define BLYNK_PRINT Serial    // Comment this out to disable prints and save space

// These are the interrupt and control pins for СС3000
#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>

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "d6dec97ba8bf4e399a1e8a56cd69a3e5";

void setup()
{
  Serial.begin(115200);
  Blynk.begin(auth, "Avatar2012", "________", WLAN_SEC_WPA2, "192.168.1.31");
}

void loop()
{
  Blynk.run();
}

Here is the output of the log screen :

[2130] Connecting to Avatar2012
[14969] Getting IP…
[15713] IP: 192.168.1.41
[15714] GW: 192.168.1.1
[15715] DNS: 195.175.39.40
[15716] Blynk v0.3.7 on Arduino Uno
[15717] Looking for 192.168.1.31

Does the CC3000 work without Blynk? E.g. can you run any other wifi examples and do they work fine?

1 Like

Hi, I just tried Blynk cc3000 example. It acquire ip address but getting following error message.I’ve created two different projects and e-mailed te token codes to avoid typo errors.

[2130] Connecting to Avatar2012
[15210] Getting IP…
[15728] IP: 192.168.1.42
[15729] GW: 192.168.1.1
[15730] DNS: 195.175.39.40
[15744] Blynk v0.3.7 on Arduino Uno
[15782] Looking for blynk-cloud.com
[16041] Connecting to 188.166.177.186
[16595] Invalid auth token
[21319] Connecting to 188.166.177.186
[21874] Invalid auth token
[26598] Connecting to 188.166.177.186
[27151] Invalid auth token

Try to put 188.166.177.186 within app (it may require to create new acc)

Hi, Thanks for the help now I can connect to Blynk web server and managed to control Arduino UNO.

When I tried to run Blynk server on my laptop I still can not reach from Arduino. So CC3000 and network is working properly but can not reach to local server anyhow, Can you advise me what to do?

Thanks

Blynk Server successfully started. I’m using Win10 Please find the Arduino log below.
[2130] Connecting to Avatar2012
[14502] Getting IP…
[15023] IP: 192.168.1.42
[15024] GW: 192.168.1.1
[15025] DNS: 195.175.39.40
[15038] Blynk v0.3.7 on Arduino Uno
[15077] Looking for 192.168.1.39

Is your sketch the same as you posted in the first post?

You may try IPAddress(192,168,1,31) instead of "192.168.1.31"

Hi it has worked kudos to you
:slight_smile:

1 Like