Skip to content

Commit f57682e

Browse files
committed
mod: now license is MPL
1 parent ae25491 commit f57682e

File tree

8 files changed

+431
-34
lines changed

8 files changed

+431
-34
lines changed

LICENSE

Lines changed: 373 additions & 21 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
In this repo it will be implemented an Arduino library wrapper for RPClite to be run on Arduino UNO Q boards.
22

3-
The desired API is shown in https://github.com/bcmi-labs/Arduino_RouterBridge/blob/main/desired.ino.
4-
5-
This is WIP. Expects changes soon.
6-
73
## The Bridge object ##
84

95
Including Arduino_RouterBridge.h gives the user access to a Bridge object that can be used both as a RPC client and/or server to execute and serve RPCs to/from the CPU Host running a GOLANG router.
@@ -16,6 +12,8 @@ Including Arduino_RouterBridge.h gives the user access to a Bridge object that c
1612

1713

1814
```cpp
15+
#include <Arduino_RouterBridge.h>
16+
1917
bool set_led(bool state) {
2018
digitalWrite(LED_BUILTIN, state);
2119
return state;
@@ -50,7 +48,5 @@ void loop() {
5048
};
5149

5250
Bridge.notify("signal", 200);
53-
54-
//Bridge.update(); // Thread-unsafe update execution is granted in its own thread. It can be called manually with caution
5551
}
5652
```

examples/monitor/monitor.ino

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
/*
2+
This file is part of the Arduino_RouterBridge library.
3+
4+
Copyright (c) 2025 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+
112
#include <Arduino_RouterBridge.h>
213

314

@@ -16,7 +27,6 @@ String greet() {
1627

1728
void setup() {
1829
Serial.begin(115200);
19-
while (!Serial);
2030

2131
if (!Bridge.begin()) {
2232
Serial.println("cannot setup Bridge");
@@ -51,7 +61,5 @@ void loop() {
5161
Monitor.println(input);
5262
}
5363

54-
Bridge.update();
55-
5664
delay(500);
5765
}

examples/simple_bridge/simple_bridge.ino

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
1+
/*
2+
This file is part of the Arduino_RouterBridge library.
3+
4+
Copyright (c) 2025 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+
112
#include <Arduino_RouterBridge.h>
213

3-
//BridgeClass Bridge(Serial1);
414

515
bool set_led(bool state) {
616
digitalWrite(LED_BUILTIN, state);
@@ -42,6 +52,4 @@ void loop() {
4252
};
4353

4454
Bridge.notify("signal", 200);
45-
46-
//Bridge.update(); // Thread-unsafe update execution is granted in its own thread. It can be called manually with caution
4755
}

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"maintainer": true
1313
},
1414
"version": "0.1.2",
15-
"license": "MIT",
15+
"license": "MPL2.0",
1616
"frameworks": "arduino",
1717
"platforms": "*",
1818
"dependencies":

src/Arduino_RouterBridge.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
/*
2+
This file is part of the Arduino_RouterBridge library.
3+
4+
Copyright (c) 2025 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+
112
#ifndef ARDUINO_ROUTER_BRIDGE_H
213
#define ARDUINO_ROUTER_BRIDGE_H
314

src/bridge.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
/*
2+
This file is part of the Arduino_RouterBridge library.
3+
4+
Copyright (c) 2025 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+
112
#pragma once
213

314
#ifndef ROUTER_BRIDGE_H

src/monitor.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
/*
2+
This file is part of the Arduino_RouterBridge library.
3+
4+
Copyright (c) 2025 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+
112
#pragma once
213

314
#ifndef BRIDGE_MONITOR_H

0 commit comments

Comments
 (0)