-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
22 lines (19 loc) · 1.02 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css">
<script src="https://unpkg.com/[email protected]/dist/p5.ble.js" type="text/javascript"></script>
<script src="script.js"></script>
<title>Document</title>
</head>
<body>
<p>
This page shows how to connect to a Bluetooth LE peripheral via Web Bluetooth, using the p5.ble library. This is an adaptation of the p5.ble <a href="https://itpnyu.github.io/p5ble-website/docs/read-one-char-callback">Read One characteristic</a> script. This script works with <a href="https://github.com/tigoe/html-for-conndev/tree/main/bluetooth-p5ble/ReadOneCharacteristic/SensorCharacteristic/">this example</a> for the <a href="https://www.arduino.cc/en/Reference/ArduinoBLE">ArduinoBLE library</a>.
</p>
<p>Click the connect button to search for BLE peripherals.</p>
<input type="button" id="connect" value="connect"><br>
<div id="messages"></div>
</body>
</html>