I can’t use your LinkIt ONE examples. When trying to connect the Linkit board gets unresponsive. I tried the following code:
#include <LWiFi.h>
#include <LWiFiClient.h>
#include <BlynkSimpleLinkItONE.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "my_token";
#define WIFI_SSID "my_ssid"
#define WIFI_PASS "my_pass"
#define WIFI_AUTH LWIFI_WPA
void setup()
{
Serial.begin(9600);
Serial.print("starting WiFi connection...");
Blynk.begin(auth, WIFI_SSID, WIFI_PASS, WIFI_AUTH);
Serial.println("connected.");
// print the SSID of the network you're attached to:
Serial.print("SSID: ");
Serial.println(LWiFi.SSID());
// print your LWiFi shield's IP address:
IPAddress ip = LWiFi.localIP();
Serial.print("IP Address: ");
Serial.println(ip);
// print the received signal strength:
long rssi = LWiFi.RSSI();
Serial.print("signal strength (RSSI):");
Serial.print(rssi);
Serial.println(" dBm");
}
void loop()
{
//Blynk.run();
}
This will connect to the AP and the Linkit gets an IP-address:
starting WiFi connection...connected.
SSID: my_ssid
IP Address: 192.168.2.104
signal strength (RSSI):-80 dBm
But when I uncomment “Blynk.run()” there is no serial output and I can’t get a connect and the board does not show up in my router?!
I am running SDK 1.1.11 from MediaTek and Arduino IDE 1.6.4 on a Mac.
What’s wrong? Any idea?