Skip to content

Commit 1e4189f

Browse files
committed
library: change license to MPL
1 parent 662678b commit 1e4189f

23 files changed

+533
-941
lines changed

LICENSE

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

src/Arduino_ConnectionHandler.h

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,18 @@
11
/*
2-
This file is part of ArduinoIoTCloud.
2+
This file is part of the Arduino_ConnectionHandler library.
33
4-
Copyright 2019 ARDUINO SA (http://www.arduino.cc/)
4+
Copyright (c) 2019 Arduino SA
55
6-
This software is released under the GNU General Public License version 3,
7-
which covers the main part of arduino-cli.
8-
The terms of this license can be found at:
9-
https://www.gnu.org/licenses/gpl-3.0.en.html
10-
11-
You can be released from the requirements of the above licenses by purchasing
12-
a commercial license. Buying such a license is mandatory if you want to modify or
13-
otherwise use the software for commercial activities involving the Arduino
14-
software without disclosing the source code of your own applications. To purchase
15-
a commercial license, send an email to license@arduino.cc.
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/.
169
*/
1710

1811
#ifndef ARDUINO_CONNECTION_HANDLER_H_
1912
#define ARDUINO_CONNECTION_HANDLER_H_
2013

2114
/******************************************************************************
22-
INCLUDES
15+
INCLUDES
2316
******************************************************************************/
2417

2518
#if !defined(__AVR__)

src/CatM1ConnectionHandler.cpp

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,15 @@
11
/*
2-
This file is part of ArduinoIoTCloud.
2+
This file is part of the Arduino_ConnectionHandler library.
33
4-
Copyright 2019 ARDUINO SA (http://www.arduino.cc/)
4+
Copyright (c) 2023 Arduino SA
55
6-
This software is released under the GNU General Public License version 3,
7-
which covers the main part of arduino-cli.
8-
The terms of this license can be found at:
9-
https://www.gnu.org/licenses/gpl-3.0.en.html
10-
11-
You can be released from the requirements of the above licenses by purchasing
12-
a commercial license. Buying such a license is mandatory if you want to modify or
13-
otherwise use the software for commercial activities involving the Arduino
14-
software without disclosing the source code of your own applications. To purchase
15-
a commercial license, send an email to license@arduino.cc.
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/.
169
*/
1710

1811
/******************************************************************************
19-
INCLUDE
12+
INCLUDE
2013
******************************************************************************/
2114

2215
#include "ConnectionHandlerDefinitions.h"
@@ -25,7 +18,7 @@
2518
#include "CatM1ConnectionHandler.h"
2619

2720
/******************************************************************************
28-
CTOR/DTOR
21+
CTOR/DTOR
2922
******************************************************************************/
3023

3124
CatM1ConnectionHandler::CatM1ConnectionHandler()
@@ -49,7 +42,7 @@ CatM1ConnectionHandler::CatM1ConnectionHandler(
4942
}
5043

5144
/******************************************************************************
52-
PUBLIC MEMBER FUNCTIONS
45+
PUBLIC MEMBER FUNCTIONS
5346
******************************************************************************/
5447

5548
unsigned long CatM1ConnectionHandler::getTime()
@@ -61,7 +54,7 @@ unsigned long CatM1ConnectionHandler::getTime()
6154
}
6255

6356
/******************************************************************************
64-
PROTECTED MEMBER FUNCTIONS
57+
PROTECTED MEMBER FUNCTIONS
6558
******************************************************************************/
6659

6760
NetworkConnectionState CatM1ConnectionHandler::update_handleInit()

src/CatM1ConnectionHandler.h

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,18 @@
11
/*
2-
This file is part of ArduinoIoTCloud.
2+
This file is part of the Arduino_ConnectionHandler library.
33
4-
Copyright 2019 ARDUINO SA (http://www.arduino.cc/)
4+
Copyright (c) 2023 Arduino SA
55
6-
This software is released under the GNU General Public License version 3,
7-
which covers the main part of arduino-cli.
8-
The terms of this license can be found at:
9-
https://www.gnu.org/licenses/gpl-3.0.en.html
10-
11-
You can be released from the requirements of the above licenses by purchasing
12-
a commercial license. Buying such a license is mandatory if you want to modify or
13-
otherwise use the software for commercial activities involving the Arduino
14-
software without disclosing the source code of your own applications. To purchase
15-
a commercial license, send an email to license@arduino.cc.
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/.
169
*/
1710

1811
#ifndef ARDUINO_CATM1_CONNECTION_HANDLER_H_
1912
#define ARDUINO_CATM1_CONNECTION_HANDLER_H_
2013

2114
/******************************************************************************
22-
INCLUDE
15+
INCLUDE
2316
******************************************************************************/
2417

2518
#include "ConnectionHandlerInterface.h"
@@ -33,7 +26,7 @@
3326
#endif
3427

3528
/******************************************************************************
36-
CLASS DECLARATION
29+
CLASS DECLARATION
3730
******************************************************************************/
3831

3932
class CatM1ConnectionHandler : public ConnectionHandler

src/CellularConnectionHandler.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111

1212
/******************************************************************************
13-
INCLUDE
13+
INCLUDE
1414
******************************************************************************/
1515

1616
#include "ConnectionHandlerDefinitions.h"
@@ -19,7 +19,7 @@
1919
#include "CellularConnectionHandler.h"
2020

2121
/******************************************************************************
22-
CTOR/DTOR
22+
CTOR/DTOR
2323
******************************************************************************/
2424
CellularConnectionHandler::CellularConnectionHandler()
2525
: ConnectionHandler(true, NetworkAdapter::CELL) {}
@@ -36,7 +36,7 @@ CellularConnectionHandler::CellularConnectionHandler(const char * pin, const cha
3636
}
3737

3838
/******************************************************************************
39-
PUBLIC MEMBER FUNCTIONS
39+
PUBLIC MEMBER FUNCTIONS
4040
******************************************************************************/
4141

4242
unsigned long CellularConnectionHandler::getTime()
@@ -51,7 +51,7 @@ UDP & CellularConnectionHandler::getUDP()
5151
}
5252

5353
/******************************************************************************
54-
PROTECTED MEMBER FUNCTIONS
54+
PROTECTED MEMBER FUNCTIONS
5555
******************************************************************************/
5656

5757
NetworkConnectionState CellularConnectionHandler::update_handleInit()

src/CellularConnectionHandler.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#define ARDUINO_CELLULAR_CONNECTION_HANDLER_H_
1414

1515
/******************************************************************************
16-
INCLUDE
16+
INCLUDE
1717
******************************************************************************/
1818

1919
#include "ConnectionHandlerInterface.h"
@@ -27,7 +27,7 @@
2727
#endif
2828

2929
/******************************************************************************
30-
CLASS DECLARATION
30+
CLASS DECLARATION
3131
******************************************************************************/
3232

3333
class CellularConnectionHandler : public ConnectionHandler

src/ConnectionHandlerDefinitions.h

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,17 @@
11
/*
2-
This file is part of ArduinoIoTCloud.
2+
This file is part of the Arduino_ConnectionHandler library.
33
4-
Copyright 2019 ARDUINO SA (http://www.arduino.cc/)
4+
Copyright (c) 2024 Arduino SA
55
6-
This software is released under the GNU General Public License version 3,
7-
which covers the main part of arduino-cli.
8-
The terms of this license can be found at:
9-
https://www.gnu.org/licenses/gpl-3.0.en.html
10-
11-
You can be released from the requirements of the above licenses by purchasing
12-
a commercial license. Buying such a license is mandatory if you want to modify or
13-
otherwise use the software for commercial activities involving the Arduino
14-
software without disclosing the source code of your own applications. To purchase
15-
a commercial license, send an email to license@arduino.cc.
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/.
169
*/
1710

1811
#pragma once
1912

2013
/******************************************************************************
21-
INCLUDES
14+
INCLUDES
2215
******************************************************************************/
2316

2417
#if defined __has_include
@@ -154,7 +147,7 @@
154147
#endif // BOARD_HAS_NOTECARD
155148

156149
/******************************************************************************
157-
TYPEDEFS
150+
TYPEDEFS
158151
******************************************************************************/
159152

160153
enum class NetworkConnectionState : unsigned int {
@@ -201,7 +194,7 @@ union TimeoutTable {
201194
};
202195

203196
/******************************************************************************
204-
CONSTANTS
197+
CONSTANTS
205198
******************************************************************************/
206199

207200
constexpr TimeoutTable DefaultTimeoutTable {

src/ConnectionHandlerInterface.cpp

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,21 @@
11
/*
2-
This file is part of ArduinoIoTCloud.
2+
This file is part of the Arduino_ConnectionHandler library.
33
4-
Copyright 2019 ARDUINO SA (http://www.arduino.cc/)
4+
Copyright (c) 2024 Arduino SA
55
6-
This software is released under the GNU General Public License version 3,
7-
which covers the main part of arduino-cli.
8-
The terms of this license can be found at:
9-
https://www.gnu.org/licenses/gpl-3.0.en.html
10-
11-
You can be released from the requirements of the above licenses by purchasing
12-
a commercial license. Buying such a license is mandatory if you want to modify or
13-
otherwise use the software for commercial activities involving the Arduino
14-
software without disclosing the source code of your own applications. To purchase
15-
a commercial license, send an email to license@arduino.cc.
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/.
169
*/
1710

1811
/******************************************************************************
19-
INCLUDE
12+
INCLUDE
2013
******************************************************************************/
2114

2215
#include "ConnectionHandlerInterface.h"
2316

2417
/******************************************************************************
25-
CONSTRUCTOR/DESTRUCTOR
18+
CONSTRUCTOR/DESTRUCTOR
2619
******************************************************************************/
2720

2821
ConnectionHandler::ConnectionHandler(bool const keep_alive, NetworkAdapter interface)
@@ -37,7 +30,7 @@ ConnectionHandler::ConnectionHandler(bool const keep_alive, NetworkAdapter inter
3730
}
3831

3932
/******************************************************************************
40-
PUBLIC MEMBER FUNCTIONS
33+
PUBLIC MEMBER FUNCTIONS
4134
******************************************************************************/
4235

4336
NetworkConnectionState ConnectionHandler::check()

src/ConnectionHandlerInterface.h

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,17 @@
11
/*
2-
This file is part of ArduinoIoTCloud.
2+
This file is part of the Arduino_ConnectionHandler library.
33
4-
Copyright 2019 ARDUINO SA (http://www.arduino.cc/)
4+
Copyright (c) 2024 Arduino SA
55
6-
This software is released under the GNU General Public License version 3,
7-
which covers the main part of arduino-cli.
8-
The terms of this license can be found at:
9-
https://www.gnu.org/licenses/gpl-3.0.en.html
10-
11-
You can be released from the requirements of the above licenses by purchasing
12-
a commercial license. Buying such a license is mandatory if you want to modify or
13-
otherwise use the software for commercial activities involving the Arduino
14-
software without disclosing the source code of your own applications. To purchase
15-
a commercial license, send an email to license@arduino.cc.
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/.
169
*/
1710

1811
#pragma once
1912

2013
/******************************************************************************
21-
INCLUDES
14+
INCLUDES
2215
******************************************************************************/
2316

2417
#if !defined(__AVR__)
@@ -34,13 +27,13 @@
3427
#include <utility>
3528

3629
/******************************************************************************
37-
TYPEDEFS
30+
TYPEDEFS
3831
******************************************************************************/
3932

4033
typedef void (*OnNetworkEventCallback)();
4134

4235
/******************************************************************************
43-
CLASS DECLARATION
36+
CLASS DECLARATION
4437
******************************************************************************/
4538

4639
// forward declaration FIXME
@@ -143,4 +136,3 @@ class ConnectionHandler {
143136

144137
friend GenericConnectionHandler;
145138
};
146-

src/EthernetConnectionHandler.cpp

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,15 @@
11
/*
2-
This file is part of ArduinoIoTCloud.
3-
Copyright 2020 ARDUINO SA (http://www.arduino.cc/)
4-
This software is released under the GNU General Public License version 3,
5-
which covers the main part of arduino-cli.
6-
The terms of this license can be found at:
7-
https://www.gnu.org/licenses/gpl-3.0.en.html
8-
You can be released from the requirements of the above licenses by purchasing
9-
a commercial license. Buying such a license is mandatory if you want to modify or
10-
otherwise use the software for commercial activities involving the Arduino
11-
software without disclosing the source code of your own applications. To purchase
12-
a commercial license, send an email to license@arduino.cc.
2+
This file is part of the Arduino_ConnectionHandler library.
3+
4+
Copyright (c) 2020 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/.
139
*/
1410

1511
/******************************************************************************
16-
INCLUDE
12+
INCLUDE
1713
******************************************************************************/
1814

1915
#include "ConnectionHandlerDefinitions.h"
@@ -22,7 +18,7 @@
2218
#include "EthernetConnectionHandler.h"
2319

2420
/******************************************************************************
25-
CTOR/DTOR
21+
CTOR/DTOR
2622
******************************************************************************/
2723

2824
static inline void fromIPAddress(const IPAddress src, models::ip_addr& dst) {
@@ -65,7 +61,7 @@ EthernetConnectionHandler::EthernetConnectionHandler(
6561
}
6662

6763
/******************************************************************************
68-
PROTECTED MEMBER FUNCTIONS
64+
PROTECTED MEMBER FUNCTIONS
6965
******************************************************************************/
7066

7167
NetworkConnectionState EthernetConnectionHandler::update_handleInit()

0 commit comments

Comments
 (0)