Skip to content

Commit 92f2a51

Browse files
committed
Update rest client and fix inject node
1 parent 33aacb9 commit 92f2a51

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

arduino-iot-cloud.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,9 +347,13 @@ module.exports = function (RED) {
347347
this.thing = config.thing;
348348
this.propertyId = config.property;
349349
this.propertyName = config.name;
350+
const opts = {}
351+
if (this.organization) {
352+
opts.xOrganization = this.organization;
353+
}
350354
node.on('input', async function () {
351355
try{
352-
const property = await this.arduinoRestClient.getProperty(this.thing, this.propertyId);
356+
const property = await this.arduinoRestClient.getProperty(this.thing, this.propertyId, opts);
353357
this.send(
354358
{
355359
topic: property.name,

package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@arduino/node-red-contrib-arduino-iot-cloud",
3-
"version": "1.0.10",
3+
"version": "1.1.0",
44
"description": "Node-RED nodes to talk to Arduino IoT Cloud",
55
"scripts": {
66
"test": "echo \"Error: no test specified\" && exit 1"

0 commit comments

Comments
 (0)