Hi,
I'm working on a poc with IoT foundation, MQTT js, Node-RED. The requirement there is only 1 device publishing to IoT foundation, and the data is supposed to be consumed by a few Node-RED based app via ibmiot input node. The Node-RED apps will be sitting in different bluemix organization. So, the relationship is as below:
1 device/iot foundation : * Node-RED app
I tested with * Node-RED apps in the same bluemix organization with ibmiot input node Bluemix service Authetication and it works just fine. API Key authentication seems for this purpose. But I have no luck setting it up. Anybody tried API Key authentication?
Vincent
Answer by Amit M Mangalvedkar (1199) | Feb 02, 2015 at 11:19 PM
Hi Vincent
So you have an ioT device say having an orgid "abcdef" and device id "0123456789ab", registered in a Bluemix service. You want the device events of the above device to be sent to the other Bluemix service, having an orgid, say "ghijkl". I believe this is you case. If thats the case, I am elaborating the steps below,
Drag and drop the ibmiot in node on the workspace.
Double-click on the above dragged ibmiot node. This opens the node for editing.
For the Authentication drop-down, select "API Key". This would make visible the "API Key" drop-down.
Select the "Add new ibmiot..." from the drop down.
Click the "Pen" button next to the drop-down.
Provide a name and enter the API Key and API Token of the "other" Bluemix service, i.e. API key token of "ghijkl" org.
Click Ok and connect this to debug node.
Save the workspace.
In case this is not what you want, could you please specify with screenshots the exact requirements?
Thanks and regards
Amit M Mangalvedkar
Answer by Vincent Ong (41) | Feb 03, 2015 at 07:12 PM
Thanks Amit. I think the part that I got it different from the steps you provided is step 6. Instead of API key token of "ghijkl" org, I use API Key token from "abcdef" org. My thinking was since I'm sharing IoT data from "abcdef" org, other Node-RED ibmiot input node ("ghijkl", "mnopqr", etc) should all user "abcdef" tokens? Not sure, let me try your steps and see it works this time...:)
Vincent
Hi Vincent,
Did the approach suggested by me resolve your problem? Or are you still facing some issues
Thanks and Regards
Amit M Mangalvedkar
Hi Vincent,
In case the steps that we provided resolved your issue, could you please accept the answer, so that we can close this question?
Thanks and Regards
Amit M Mangalvedkar
Inside Node-Red IbmIot Node does not display Bluemix as an Authentication Option 1 Answer
IoT Node-RED sample not showing debug data 2 Answers
Is there an example showing how to use an HTTP POST with headers in Node-RED? 2 Answers
How many HTTP requests per second can a 512mb RAM Node-RED handle ? 0 Answers
Warnings preventing install of IBM IoT NodeRed node on Raspberry Pi 1 Answer