Skip to content

Commit ad44229

Browse files
authored
Merge pull request #572 from pennam/mpl-license
library: change license to MPL
2 parents 5567b6b + a24c35c commit ad44229

File tree

104 files changed

+1333
-2145
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+1333
-2145
lines changed

LICENSE

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

README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,3 @@ Boards can authenticate to the ArduinoIoTCloud servers using 3 methods:
9696
* `DEVICE_CERTIFICATE` and `PRIVATE_KEY`. This values are stored inside the board secure element during the device provisioning phase. Boards that are using this method are: [`MKR 1000`](https://store.arduino.cc/arduino-mkr1000-wifi), [`MKR WiFi 1010`](https://store.arduino.cc/arduino-mkr-wifi-1010), [`MKR GSM 1400`](https://store.arduino.cc/arduino-mkr-gsm-1400-1415), [`MKR NB 1500`](https://store.arduino.cc/arduino-mkr-nb-1500-1413), [`Nano 33 IoT`](https://store.arduino.cc/arduino-nano-33-iot), [`Portenta H7`](https://store.arduino.cc/portenta-h7), [`Nano RP2040 Connect`](https://store.arduino.cc/products/arduino-nano-rp2040-connect), [`Nicla Vision`](https://store.arduino.cc/products/nicla-vision), [`OPTA WiFi`](https://store.arduino.cc/products/opta-wifi), [`OPTA RS485`](https://store.arduino.cc/products/opta-rs485), [`OPTA Lite`](https://store.arduino.cc/products/opta-lite), [`GIGA R1 WiFi`](https://store.arduino.cc/products/giga-r1-wifi), [`Portenta C33`](https://store.arduino.cc/products/portenta-c33)
9797

9898
* `APP_EUI` and `APP_KEY`. This values are defined in the `thingProperties.h` file and included in the Sketch. Boards that are using this method are: [`MKR WAN 1300/1310`](https://store.arduino.cc/mkr-wan-1310)
99-
100-
### License
101-
102-
The ArduinoIoTCloud library is licensed under the GNU General Public License v3.0.
103-
104-
You can be released from the requirements of the above license by purchasing a commercial license. Buying such a license is mandatory if you want to modify or otherwise use the software for commercial activities involving the Arduino software without disclosing the source code of your own applications. To purchase a commercial license, send an email to [email protected]

extras/test/include/Arduino.h

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,38 @@
11
/*
2-
Copyright (c) 2019 Arduino. All rights reserved.
2+
This file is part of the ArduinoIoTCloud library.
3+
4+
Copyright (c) 2019 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/.
39
*/
410

511
#ifndef TEST_ARDUINO_H_
612
#define TEST_ARDUINO_H_
713

814
/******************************************************************************
9-
INCLUDE
15+
INCLUDE
1016
******************************************************************************/
1117

1218
#include <string>
1319
#include <IPAddress.h>
1420

1521
/******************************************************************************
16-
DEFINES
22+
DEFINES
1723
******************************************************************************/
1824
#ifndef min
1925
#define min(a,b) ((a)<(b)?(a):(b))
2026
#endif
2127

2228
/******************************************************************************
23-
TYPEDEF
29+
TYPEDEF
2430
******************************************************************************/
2531

2632
typedef std::string String;
2733

2834
/******************************************************************************
29-
FUNCTION PROTOTYPES
35+
FUNCTION PROTOTYPES
3036
******************************************************************************/
3137

3238
void set_millis(unsigned long const millis);

extras/test/include/IPAddress.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
/*
2-
Copyright (c) 2019 Arduino. All rights reserved.
2+
This file is part of the ArduinoIoTCloud library.
3+
4+
Copyright (c) 2019 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/.
39
*/
410

511
#ifndef TEST_IPADDRESS_H_
Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,38 @@
11
/*
2-
Copyright (c) 2019 Arduino. All rights reserved.
2+
This file is part of the ArduinoIoTCloud library.
3+
4+
Copyright (c) 2019 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/.
39
*/
410

511
#ifndef INCLUDE_CBOR_TESTUTIL_H_
612
#define INCLUDE_CBOR_TESTUTIL_H_
713

8-
/**************************************************************************************
9-
INCLUDE
10-
**************************************************************************************/
14+
/******************************************************************************
15+
INCLUDE
16+
******************************************************************************/
1117

1218
#include <PropertyContainer.h>
1319

1420
#include <vector>
1521

16-
/**************************************************************************************
17-
NAMESPACE
18-
**************************************************************************************/
22+
/******************************************************************************
23+
NAMESPACE
24+
******************************************************************************/
1925

2026
namespace cbor
2127
{
2228

23-
/**************************************************************************************
24-
PROTOTYPES
25-
**************************************************************************************/
29+
/******************************************************************************
30+
PROTOTYPES
31+
******************************************************************************/
2632

2733
std::vector<uint8_t> encode(PropertyContainer & property_container, bool lightPayload = false);
2834
void print(std::vector<uint8_t> const & vect);
2935

30-
/**************************************************************************************
31-
NAMESPACE
32-
**************************************************************************************/
33-
3436
} /* cbor */
3537

3638
#endif /* INCLUDE_CBOR_TESTUTIL_H_ */

extras/test/include/util/PropertyTestUtil.h

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
/*
2-
* Copyright (c) 2020 Arduino. All rights reserved.
3-
*/
2+
This file is part of the ArduinoIoTCloud 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/.
9+
*/
410

511
#ifndef PROPERTY_TEST_UTIL_H_
612
#define PROPERTY_TEST_UTIL_H_
713

8-
/**************************************************************************************
9-
FUNCTION DECLARATION
10-
**************************************************************************************/
14+
/******************************************************************************
15+
FUNCTION DECLARATION
16+
******************************************************************************/
1117

1218
extern "C" unsigned long getTime();
1319

extras/test/src/Arduino.cpp

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,27 @@
11
/*
2-
Copyright (c) 2019 Arduino. All rights reserved.
2+
This file is part of the ArduinoIoTCloud library.
3+
4+
Copyright (c) 2019 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/.
39
*/
410

511
/******************************************************************************
6-
INCLUDE
12+
INCLUDE
713
******************************************************************************/
814

915
#include <Arduino.h>
1016

1117
/******************************************************************************
12-
GLOBAL VARIABLES
18+
GLOBAL VARIABLES
1319
******************************************************************************/
1420

1521
static unsigned long current_millis = 0;
1622

1723
/******************************************************************************
18-
PUBLIC FUNCTIONS
24+
PUBLIC FUNCTIONS
1925
******************************************************************************/
2026

2127
void set_millis(unsigned long const millis)

extras/test/src/test_CloudColor.cpp

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,24 @@
11
/*
2-
Copyright (c) 2019 Arduino. All rights reserved.
2+
This file is part of the ArduinoIoTCloud library.
3+
4+
Copyright (c) 2019 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/.
39
*/
410

5-
/**************************************************************************************
6-
INCLUDE
7-
**************************************************************************************/
11+
/******************************************************************************
12+
INCLUDE
13+
******************************************************************************/
814

915
#include <catch2/catch_test_macros.hpp>
10-
1116
#include <util/CBORTestUtil.h>
12-
1317
#include <property/types/CloudColor.h>
1418

15-
/**************************************************************************************
19+
/******************************************************************************
1620
TEST CODE
17-
**************************************************************************************/
21+
******************************************************************************/
1822

1923
SCENARIO("Arduino Cloud Properties ", "[ArduinoCloudThing::CloudColor]")
2024
{

extras/test/src/test_CloudFloat.cpp

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,24 @@
11
/*
2-
Copyright (c) 2019 Arduino. All rights reserved.
2+
This file is part of the ArduinoIoTCloud library.
3+
4+
Copyright (c) 2019 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/.
39
*/
410

5-
/**************************************************************************************
11+
/******************************************************************************
612
INCLUDE
7-
**************************************************************************************/
13+
******************************************************************************/
814

915
#include <catch2/catch_test_macros.hpp>
10-
1116
#include <CBORDecoder.h>
12-
1317
#include <property/types/CloudFloat.h>
1418

15-
/**************************************************************************************
19+
/******************************************************************************
1620
TEST CODE
17-
**************************************************************************************/
21+
******************************************************************************/
1822

1923
SCENARIO("Arduino Cloud Properties ", "[ArduinoCloudThing::CloudFloat]")
2024
{
@@ -108,5 +112,4 @@ SCENARIO("Arduino Cloud Properties ", "[ArduinoCloudThing::CloudFloat]")
108112

109113
REQUIRE(prop.isDifferentFromCloud() == true);
110114
}
111-
112115
}

extras/test/src/test_CloudLocation.cpp

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
11
/*
2-
Copyright (c) 2019 Arduino. All rights reserved.
2+
This file is part of the ArduinoIoTCloud library.
3+
4+
Copyright (c) 2019 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/.
39
*/
410

5-
/**************************************************************************************
6-
INCLUDE
7-
**************************************************************************************/
11+
/******************************************************************************
12+
INCLUDE
13+
******************************************************************************/
814

915
#include <catch2/catch_test_macros.hpp>
10-
1116
#include <property/types/CloudLocation.h>
1217

13-
/**************************************************************************************
18+
/******************************************************************************
1419
TEST CODE
15-
**************************************************************************************/
20+
******************************************************************************/
1621

1722
SCENARIO("Testing cloud type 'Location' Ctor", "[Location::Location]")
1823
{
@@ -28,7 +33,7 @@ SCENARIO("Testing cloud type 'Location' Ctor", "[Location::Location]")
2833
}
2934
}
3035

31-
/**************************************************************************************/
36+
/******************************************************************************/
3237

3338
SCENARIO("Testing cloud type 'Location' assignment operator", "[Location::operator =]")
3439
{
@@ -45,7 +50,7 @@ SCENARIO("Testing cloud type 'Location' assignment operator", "[Location::operat
4550
}
4651
}
4752

48-
/**************************************************************************************/
53+
/******************************************************************************/
4954

5055
SCENARIO("Testing cloud type 'Location' operator -", "[Location::operator -]")
5156
{
@@ -62,7 +67,7 @@ SCENARIO("Testing cloud type 'Location' operator -", "[Location::operator -]")
6267
}
6368
}
6469

65-
/**************************************************************************************/
70+
/******************************************************************************/
6671

6772
SCENARIO("Testing cloud type 'Location' comparison operator ==", "[Location::operator ==]")
6873
{
@@ -85,7 +90,7 @@ SCENARIO("Testing cloud type 'Location' comparison operator ==", "[Location::ope
8590
}
8691
}
8792

88-
/**************************************************************************************/
93+
/******************************************************************************/
8994

9095
SCENARIO("Testing cloud type 'Location' comparison operator !=", "[Location::operator !=]")
9196
{
@@ -108,7 +113,7 @@ SCENARIO("Testing cloud type 'Location' comparison operator !=", "[Location::ope
108113
}
109114
}
110115

111-
/**************************************************************************************/
116+
/******************************************************************************/
112117

113118
SCENARIO("Testing cloud type 'Location' function distance for calculating Euclidean 2d distance between two points", "[Location::distance]")
114119
{

0 commit comments

Comments
 (0)