Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 871571e

Browse files
test /
1 parent d9d2f10 commit 871571e

File tree

1 file changed

+9
-9
lines changed
  • content/hardware/06.nicla/boards/nicla-sense-me/tutorials/web-ble-dashboard

1 file changed

+9
-9
lines changed

‎content/hardware/06.nicla/boards/nicla-sense-me/tutorials/web-ble-dashboard/content.md‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: 'Displaying on-Board Sensor Values on a WebBLE Dashboard'
33
coverImage: hero-banner.svg
4-
tags:
4+
tags:
55
- Bluetooth®
66
- WEB-BLE
77
- Bluetooth® Low Energy
@@ -27,9 +27,9 @@ The Arduino® Nicla Sense ME can give you information about the environment such
2727

2828
Thanks to the ANNA B112 Bluetooth® chip and the libraries developed for the Nicla Sense ME, you can easily stream data over Bluetooth® to a device of your choice. By using WebBLE, no additional software other than a compatible browser (Google Chrome is recommended) is required.
2929

30-
To demonstrate this, we prepared a simple sketch and hosted a dashboard so you can try it yourself.
30+
To demonstrate this, we prepared a simple sketch and hosted a dashboard so you can try it yourself.
3131

32-
A [previous version](https://arduino.github.io/ArduinoAI/BLESense-test-dashboard/) of this dashboard was developed to be used with the Arduino® Nano 33 BLE. You can see a video that shows how it looks [here](https://www.facebook.com/official.arduino/videos/ble-sense-test-dashboard/336762167617547/).
32+
A [previous version](https://arduino.github.io/ArduinoAI/BLESense-test-dashboard/) of this dashboard was developed to be used with the Arduino® Nano 33 BLE. You can see a video that shows how it looks [here](https://www.facebook.com/official.arduino/videos/ble-sense-test-dashboard/336762167617547/).
3333

3434
In this tutorial, we will focus on the Arduino® Nicla Sense ME.
3535

@@ -49,9 +49,9 @@ In this tutorial, we will focus on the Arduino® Nicla Sense ME.
4949

5050
### Set up the Board
5151

52-
If you use the Web Editor to upload the [sketch](https://create.arduino.cc/editor/FT-CONTENT/333e2e07-ecc4-414c-bf08-005b611ddd75/preview) you don't need to install any library. They are all included automatically. If you use the Arduino IDE or the CLI, you need to download the **Arduino_BHY2** and the **ArduinoBLE** libraries.
52+
If you use the Web Editor to upload the [sketch](https://create.arduino.cc/editor/FT-CONTENT/333e2e07-ecc4-414c-bf08-005b611ddd75/preview) you don't need to install any library. They are all included automatically. If you use the Arduino IDE or the CLI, you need to download the **Arduino_BHY2** and the **ArduinoBLE** libraries.
5353

54-
These libraries can be found within the Library Manager in the Arduino IDE, or it can be downloaded separately following the links attached within required hardware and software section.
54+
These libraries can be found within the Library Manager in the Arduino IDE, or it can be downloaded separately following the links attached within required hardware and software section.
5555

5656
If you use a local IDE, you can copy & paste the following sketch:
5757
```arduino
@@ -90,7 +90,7 @@ If you use a local IDE, you can copy & paste the following sketch:
9090
9191
BLEFloatCharacteristic bsecCharacteristic(BLE_SENSE_UUID("9001"), BLERead);
9292
BLEIntCharacteristic co2Characteristic(BLE_SENSE_UUID("9002"), BLERead);
93-
BLEUnsignedIntCharacteristic gasCharacteristic(BLE_SENSE_UUID("9003"), BLERead);
93+
BLEUnsignedIntCharacteristic gasCharacteristic(BLE_SENSE_UUID("9003"), BLERead);
9494
9595
// String to calculate the local and device name
9696
String name;
@@ -166,7 +166,7 @@ If you use a local IDE, you can copy & paste the following sketch:
166166
167167
// Disconnect event handler
168168
BLE.setEventHandler(BLEDisconnected, blePeripheralDisconnectHandler);
169-
169+
170170
// Sensors event handlers
171171
temperatureCharacteristic.setEventHandler(BLERead, onTemperatureCharacteristicRead);
172172
humidityCharacteristic.setEventHandler(BLERead, onHumidityCharacteristicRead);
@@ -266,7 +266,7 @@ If you use a local IDE, you can copy & paste the following sketch:
266266
}
267267
```
268268

269-
Once you have these tools, you can select the Nicla Sense ME as target board and its corresponding port. Now you are ready to upload the sketch.
269+
Once you have these tools, you can select the Nicla Sense ME as target board and its corresponding port. Now you are ready to upload the sketch.
270270

271271
### Connect to the Dashboard
272272

@@ -278,7 +278,7 @@ To connect your board to the dashboard, you will need to click on the top left b
278278

279279
![Popup message to connect the device to the browser](assets/arduinoAI_Nicla_dashboard_connectDevice.png)
280280

281-
***For this feature to work, make sure that WebBLE is both supported and enabled! In Google Chrome go to <chrome://flags> and enable "Experimental Web Platform features". Check the website [compatibility list](https://developer.mozilla.org/en-US/docs/Web/API/Web_Bluetooth_API#browser_compatibility) to confirm that your browser supports this feature***
281+
***For this feature to work, make sure that WebBLE is both supported and enabled! In Google Chrome go to [chrome://flags](chrome://flags) and enable "Experimental Web Platform features". Check the website [compatibility list](https://developer.mozilla.org/en-US/docs/Web/API/Web_Bluetooth_API#browser_compatibility) to confirm that your browser supports this feature***
282282

283283
Once it is connected, the button will change its color to green, and the graphs will start to show data in real time. You will be able to verify its operation by trying out the following actions:
284284

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /