Skip to content

Commit 6bcbda8

Browse files
committed
BPId add example
1 parent 033a6d9 commit 6bcbda8

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

examples/boardID/boardID.ino

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
This file is part of the Arduino_CloudUtils library.
3+
4+
Copyright (c) 2024 Arduino SA
5+
6+
This Source Code Form is subject to the terms of the Mozilla Public
7+
License, v. 2.0. If a copy of the MPL was not distributed with this
8+
file, You can obtain one at http://mozilla.org/MPL/2.0/.
9+
*/
10+
11+
#include <Arduino_BPId.h>
12+
13+
void setup() {
14+
Serial.begin(9600);
15+
while (!Serial);
16+
17+
#ifdef ARDUINO_OPTA
18+
Ethernet.begin(NULL,0,0);
19+
#endif
20+
21+
}
22+
23+
void loop() {
24+
Serial.println(arduino::bpid::get());
25+
delay(2000);
26+
}

0 commit comments

Comments
 (0)