Hello,
I am having trouble establishing a connection with the Arduino Nano 33 BLE using the BluetoothLE1 extension. Any help would be appreciated;
NOTE: The final goal is to send a phone number to the arduino, so that way the arduino can use that phone number to send a text to. The number must be sent in a string format.
BluetoothLE Extension Version: 20200828
Date Built: 2020-08-28
My Blocks:
My Arduino Code:
(Text Form):
#include <ArduinoBLE.h>
char character;
BLEService BadgeService("19B10000-E8F2-537E-4F6C-A104768A1214"); // BLE Badge Service
BLEByteCharacteristic switchCharacteristic("19B10001-E8F2-537E-4F6C-A104768A1214", BLERead | BLEWrite);
BLEStringCharacteristic nomCharacteristic("19B10002-E8F2-537E-4F6C-A104768A1214", BLEWrite,20);
BLEStringCharacteristic prenomCharacteristic("19B10003-E8F2-537E-4F6C-A104768A1214", BLEWrite,20);
BLEStringCharacteristic fonctionCharacteristic("19B10004-E8F2-537E-4F6C-A104768A1214", BLEWrite,20);
// put your setup code here, to run once:
void setup() {
BLE.begin();
BLE.setLocalName("CarSeat");
BLE.advertise();
}
void loop() {
// put your main code here, to run repeatedly:
if(Serial.available()) {
character=Serial.read();
Serial.println(character);
} else {
Serial.println("No Serial.available()");
delay(1000);
}
}