
PinMode(LED_BUILTIN, OUTPUT) // initialize the built-in LED pinīLE.setLocalName("Nano33BLE") // Set name for connectionīLE.setAdvertisedService(greetingService) // Advertise service Serial.begin(9600) // initialize serial communication Static const char* greeting = "Hello World!" īLEService greetingService("180C") // User defined serviceīLEStringCharacteristic greetingCharacteristic("2A56", // standard 16-bit characteristic UUIDīLERead, 13) // remote clients will only be able to read this Copy the code example below into the IDE windowīLE peripheral with a simple Hello World greeting service that can be viewedĪdapted from Arduino BatteryMonitor example.
#ARDUINO MANAGER APP INSTALL#
Go to Sketch>Include library>Manage Libraries and install ArduinoBLE.The COM or modem port number will vary depending on your host computer. From Tools>Port, select COM (Arduino NANO 33 BLE), on a Mac it will appear as dev/cu.usbmodem14101 (Arduino Nano 33 BLE).Go to Tools>Board and select Arduino 33 BLE from the menu.The green power LED on the Arduino will come on and the orange LED will be flashing, indicating that the board is powered up and running the default Blink sketch which comes pre-installed Connect the Arduino to your host computer using the USB cable.The installation process will take a little while, once finished, click on close.Enter nano 33 ble in the search window and install Arduino nRF528x Boards (Mbed OS).On the main menu of Arduino IDE, go to Tools>Boards>Boards Manager.


