That is done and I am using now the version “Intel Curie Board 1.0.7”
I can connect to my device “Aeduino/Genuino101” using BLE
The Projekt is online
I would like just to turn my LED ON and OFF using a Button and BLE Widget not more!!!
Here is the code I’m using:
#define BLYNK_PRINT Serial
#include <BlynkSimpleCurieBLE.h>
#include <CurieBLE.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "536db4ede501472888c698984a0f3aa4";
BLEPeripheral blePeripheral;
void setup()
{
pinMode (13, OUTPUT);
// Debug console
Serial.begin(9600);
delay(1000);
blePeripheral.setLocalName("Blynk");
blePeripheral.setDeviceName("Blynk");
blePeripheral.setAppearance(384);
Blynk.begin(blePeripheral, auth);
blePeripheral.begin();
Serial.println("Waiting for connections...");
}
BLYNK_WRITE(V0) // LED in Pin13 toggled by Button Widget on V0, set as switch or button.
{
int val = param.asInt(); // Get Button Status
if (val == 1) { // If button is ON
digitalWrite(13, HIGH); // Turn ON LED
} else { // Assume Button is OFF
digitalWrite(13, LOW); // Turn OFF LED
} // END else
Serial.println(val); // This should show 1 or 0 in the IDE serial monitor as you toggle the button in the App
} // END Blynk Function
void loop()
{
blePeripheral.poll();
Blynk.run();
}
In the Serial monitor I become Waiting for Connections…
can anyone please help me to know why it can’t turn the LED on pin D7 ON and OFF using the Button included in my Blynk Projekt.