Skip to content

Commit d55545f

Browse files
committed
add copyright
1 parent 8de6016 commit d55545f

File tree

6 files changed

+90
-29
lines changed

6 files changed

+90
-29
lines changed

arduino-cloud.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
<!--
2+
/*
3+
* Copyright 2019 ARDUINO SA (http://www.arduino.cc/)
4+
* This file is part of node-red-contrib-arduino-cloud.
5+
* Copyright (c) 2019
6+
*
7+
* This software is released under:
8+
* The GNU General Public License, which covers the main part of
9+
* node-red-contrib-arduino-cloud
10+
* The terms of this license can be found at:
11+
* https://www.gnu.org/licenses/gpl-3.0.en.html
12+
*
13+
* You can be released from the requirements of the above licenses by purchasing
14+
* a commercial license. Buying such a license is mandatory if you want to modify or
15+
* otherwise use the software for commercial activities involving the Arduino
16+
* software without disclosing the source code of your own applications. To purchase
17+
* a commercial license, send an email to [email protected].
18+
*
19+
*/
20+
-->
121
<script type="text/javascript">
222
window.connectionManager = [];
323

arduino-cloud.js

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
/*
2+
* Copyright 2019 ARDUINO SA (http://www.arduino.cc/)
3+
* This file is part of node-red-contrib-arduino-cloud.
4+
* Copyright (c) 2019
5+
*
6+
* This software is released under:
7+
* The GNU General Public License, which covers the main part of
8+
* node-red-contrib-arduino-cloud
9+
* The terms of this license can be found at:
10+
* https://www.gnu.org/licenses/gpl-3.0.en.html
11+
*
12+
* You can be released from the requirements of the above licenses by purchasing
13+
* a commercial license. Buying such a license is mandatory if you want to modify or
14+
* otherwise use the software for commercial activities involving the Arduino
15+
* software without disclosing the source code of your own applications. To purchase
16+
* a commercial license, send an email to [email protected].
17+
*
18+
*/
119
const connectionManager = require("./utils/arduino-connection-manager");
220
const moment = require("moment");
321

@@ -66,7 +84,12 @@ module.exports = function (RED) {
6684
this.on('input', async function (msg) {
6785
try {
6886
await this.arduinoRestClient.setProperty(this.thing, this.propertyId, msg.payload);
69-
const s = getStatus(msg.payload);
87+
var s;
88+
if (typeof msg.payload !== "object") {
89+
s = getStatus(msg.payload);
90+
}else{
91+
s="Object Sent"
92+
}
7093
if (s != undefined)
7194
this.status({ fill: "grey", shape: "dot", text: s });
7295
else

arduino-iot-client-mqtt/ArduinoCloudError.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
/*
2-
* Copyright 2018 ARDUINO SA (http://www.arduino.cc/)
3-
* This file is part of arduino-iot-js.
4-
* Copyright (c) 2018
5-
* Authors: Fabrizio Mirabito
2+
* Copyright 2019 ARDUINO SA (http://www.arduino.cc/)
3+
* This file is part of node-red-contrib-arduino-cloud.
4+
* Copyright (c) 2019
65
*
76
* This software is released under:
87
* The GNU General Public License, which covers the main part of
9-
* arduino-iot-js
8+
* node-red-contrib-arduino-cloud
109
* The terms of this license can be found at:
1110
* https://www.gnu.org/licenses/gpl-3.0.en.html
1211
*

arduino-iot-client-mqtt/arduino-iot-client-mqtt.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
/*
2-
* Copyright 2018 ARDUINO SA (http://www.arduino.cc/)
3-
* This file is part of arduino-iot-js.
4-
* Copyright (c) 2018
5-
* Authors: Fabrizio Mirabito
2+
* Copyright 2019 ARDUINO SA (http://www.arduino.cc/)
3+
* This file is part of node-red-contrib-arduino-cloud.
4+
* Copyright (c) 2019
65
*
76
* This software is released under:
87
* The GNU General Public License, which covers the main part of
9-
* arduino-iot-js
8+
* node-red-contrib-arduino-cloud
109
* The terms of this license can be found at:
1110
* https://www.gnu.org/licenses/gpl-3.0.en.html
1211
*

utils/arduino-cloud-api-wrapper.js

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
1-
// MIT License
2-
// Copyright (c) 2019 ilcato
3-
// Permission is hereby granted, free of charge, to any person obtaining a copy
4-
// of this software and associated documentation files (the "Software"), to deal
5-
// in the Software without restriction, including without limitation the rights
6-
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7-
// copies of the Software, and to permit persons to whom the Software is
8-
// furnished to do so, subject to the following conditions:
9-
// The above copyright notice and this permission notice shall be included in all
10-
// copies or substantial portions of the Software.
11-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12-
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13-
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14-
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15-
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16-
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17-
// SOFTWARE.
1+
/*
2+
* Copyright 2019 ARDUINO SA (http://www.arduino.cc/)
3+
* This file is part of node-red-contrib-arduino-cloud.
4+
* Copyright (c) 2019
5+
*
6+
* This software is released under:
7+
* The GNU General Public License, which covers the main part of
8+
* node-red-contrib-arduino-cloud
9+
* The terms of this license can be found at:
10+
* https://www.gnu.org/licenses/gpl-3.0.en.html
11+
*
12+
* You can be released from the requirements of the above licenses by purchasing
13+
* a commercial license. Buying such a license is mandatory if you want to modify or
14+
* otherwise use the software for commercial activities involving the Arduino
15+
* software without disclosing the source code of your own applications. To purchase
16+
* a commercial license, send an email to [email protected].
17+
*
18+
*/
1819

1920
// Arduino cloud api
2021
'use strict';

utils/arduino-connection-manager.js

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,30 @@
1+
/*
2+
* Copyright 2019 ARDUINO SA (http://www.arduino.cc/)
3+
* This file is part of node-red-contrib-arduino-cloud.
4+
* Copyright (c) 2019
5+
*
6+
* This software is released under:
7+
* The GNU General Public License, which covers the main part of
8+
* node-red-contrib-arduino-cloud
9+
* The terms of this license can be found at:
10+
* https://www.gnu.org/licenses/gpl-3.0.en.html
11+
*
12+
* You can be released from the requirements of the above licenses by purchasing
13+
* a commercial license. Buying such a license is mandatory if you want to modify or
14+
* otherwise use the software for commercial activities involving the Arduino
15+
* software without disclosing the source code of your own applications. To purchase
16+
* a commercial license, send an email to [email protected].
17+
*
18+
*/
19+
120
const request = require("async-request");
221
const ArduinoClientHttp = require('./arduino-cloud-api-wrapper');
322
const ArduinoClientMqtt = require('../arduino-iot-client-mqtt/arduino-iot-client-mqtt');
423
const accessTokenUri = process.env.NODE_RED_ACCESS_TOKEN_URI || 'https://login.arduino.cc/oauth/token';
524
const accessTokenAudience = process.env.NODE_RED_ACCESS_TOKEN_AUDIENCE || 'https://api2.arduino.cc/iot';
625
const arduinoCloudHost = process.env.NODE_RED_MQTT_HOST || 'wss.iot.arduino.cc';
726
const Mutex = require('async-mutex').Mutex;
8-
/**
27+
/** Connections elem struct
928
* {
1029
* clientId: clientId,
1130
* connectionConfig: connectionConfig,

0 commit comments

Comments
 (0)