You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: bluetooth/secure_temp_sensor/README.md
+23-5Lines changed: 23 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,27 @@
2
2
3
3
This example uses BLE to communicate temperature between a pair of pico Ws. This example is a variant of temp sensor, using LE secure to provide a secure connection.
4
4
5
-
In server.c and client.c there is a variable security_setting which you can change to explore different security options:
5
+
secure_temp_server is a peripheral or server that transmits its temperature to another device
6
+
secure_temp_client is a client that reads a temperature from another device
6
7
7
-
Security setting 0: Just works (pairing), no MITM protection
In server.c and client.c there is a define SECURITY_SETTING which you can change to explore different security options:
9
+
10
+
security setting 0: Just works (pairing), no MITM (Man In The Middle) protection
11
+
client and server have no input or output support
12
+
13
+
security setting 1: Numeric comparison with MITM protection
14
+
client can query yes or no from the user, server has a display only
15
+
server displays passkey
16
+
client displays passkey and user can select Yes or No if they agree the passkey is from the server
17
+
18
+
security setting 2:
19
+
client has a keyboard and display, server has a display only
20
+
server displays passkey
21
+
client user enters the passkey displayed by the server
22
+
23
+
security setting 3:
24
+
client has a display only, server has a display and keyboard
25
+
Client displays passkey
26
+
server user enters the passkey displayed by the server
27
+
28
+
You will need to use the console with both devices to see the passkeys and answer security prompts. Both stdio over UART and USB are enabled so you can use either.
0 commit comments