<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Connect to AVNET iotconnect.io with Node-RED - part 4: set up Node-RED and first exchange</title><link>/technologies/industrial-automation-space/b/blog/posts/connect-to-avnet-iotconnect-io-with-node-red---part-4-set-up-node-red-and-first-exchange</link><description>AVNET&amp;#39;s iotconnect.io cloud platform is an online service that you can use to send data to, and then show it on a dashboard*. In this blog series I&amp;#39;m learning how to talk to it with Node-RED.In this post: install the palette and test!. Install t...</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Connect to AVNET iotconnect.io with Node-RED - part 4: set up Node-RED and first exchange</title><link>https://community.element14.com/technologies/industrial-automation-space/b/blog/posts/connect-to-avnet-iotconnect-io-with-node-red---part-4-set-up-node-red-and-first-exchange</link><pubDate>Thu, 08 Apr 2021 20:48:05 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:00070958-2be8-457f-be2e-ad3b476e09a1</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;I&amp;#39;ve added the final Node-RED code to the post.&lt;/p&gt;&lt;p&gt;If you want to reuse it, import it.&lt;/p&gt;&lt;p&gt;Then correct the CPID and Unique ID in the Connection node and all upstream nodes.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;[embed:dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2:3ef06e6b-9b7d-4651-b12d-db8be7f5e991:type=text&amp;amp;text=%5B%0A+++%7B%0A++++++%22id%22%3A%22df3bfead.a2439%22%2C%0A++++++%22type%22%3A%22tab%22%2C%0A++++++%22label%22%3A%22AVNET+IotConnect+e14%22%2C%0A++++++%22disabled%22%3Afalse%2C%0A++++++%22info%22%3A%22%22%0A+++%7D%2C%0A+++%7B%0A++++++%22id%22%3A%22e711923e.ef5d8%22%2C%0A++++++%22type%22%3A%22IoTConnect%22%2C%0A++++++%22z%22%3A%22df3bfead.a2439%22%2C%0A++++++%22cpId%22%3A%22USEYOUROWNCPID%22%2C%0A++++++%22uniqueId%22%3A%22e14nodered1%22%2C%0A++++++%22env%22%3A%22PROD%22%2C%0A++++++%22offlineStorageEnable%22%3Afalse%2C%0A++++++%22sizeLimit%22%3A0%2C%0A++++++%22fileCount%22%3A0%2C%0A++++++%22isSecure%22%3Afalse%2C%0A++++++%22sslKey%22%3A%22%22%2C%0A++++++%22sslCert%22%3A%22%22%2C%0A++++++%22sslCA%22%3A%22%22%2C%0A++++++%22x%22%3A635%2C%0A++++++%22y%22%3A380%2C%0A++++++%22wires%22%3A%5B%0A+++++++++%5B%0A++++++++++++%2277a78d77.1e42a4%22%0A+++++++++%5D%2C%0A+++++++++%5B%0A++++++++++++%2243b9c47.dc8b83c%22%2C%0A++++++++++++%2266d83cd3.f10e34%22%0A+++++++++%5D%2C%0A+++++++++%5B%0A++++++++++++%0A+++++++++%5D%0A++++++%5D%2C%0A++++++%22l%22%3Afalse%0A+++%7D%2C%0A+++%7B%0A++++++%22id%22%3A%223f1d5622.789b8a%22%2C%0A++++++%22type%22%3A%22IoTConnect-Injector%22%2C%0A++++++%22z%22%3A%22df3bfead.a2439%22%2C%0A++++++%22iType%22%3A%22SendData%22%2C%0A++++++%22descText%22%3A%22%22%2C%0A++++++%22payload%22%3A%22%22%2C%0A++++++%22x%22%3A475%2C%0A++++++%22y%22%3A380%2C%0A++++++%22wires%22%3A%5B%0A+++++++++%5B%0A++++++++++++%22e711923e.ef5d8%22%0A+++++++++%5D%0A++++++%5D%2C%0A++++++%22l%22%3Afalse%0A+++%7D%2C%0A+++%7B%0A++++++%22id%22%3A%2293b6ac97.e0525%22%2C%0A++++++%22type%22%3A%22inject%22%2C%0A++++++%22z%22%3A%22df3bfead.a2439%22%2C%0A++++++%22name%22%3A%22%22%2C%0A++++++%22props%22%3A%5B%0A+++++++++%7B%0A++++++++++++%22p%22%3A%22payload%22%0A+++++++++%7D%0A++++++%5D%2C%0A++++++%22repeat%22%3A%22%22%2C%0A++++++%22crontab%22%3A%22%22%2C%0A++++++%22once%22%3Afalse%2C%0A++++++%22onceDelay%22%3A0.1%2C%0A++++++%22topic%22%3A%22%22%2C%0A++++++%22payload%22%3A%22%5B%7B%5C%22uniqueId%5C%22%3A%5C%22e14nodered1%5C%22%2C%5C%22data%5C%22%3A%7B%5C%22Temperature%5C%22%3A%5C%22-1%5C%22%7D%7D%5D%22%2C%0A++++++%22payloadType%22%3A%22json%22%2C%0A++++++%22x%22%3A175%2C%0A++++++%22y%22%3A380%2C%0A++++++%22wires%22%3A%5B%0A+++++++++%5B%0A++++++++++++%223f1d5622.789b8a%22%0A+++++++++%5D%0A++++++%5D%2C%0A++++++%22l%22%3Afalse%0A+++%7D%2C%0A+++%7B%0A++++++%22id%22%3A%2280319059.b447a%22%2C%0A++++++%22type%22%3A%22random%22%2C%0A++++++%22z%22%3A%22df3bfead.a2439%22%2C%0A++++++%22name%22%3A%22random+temperature%22%2C%0A++++++%22low%22%3A%22-10%22%2C%0A++++++%22high%22%3A%2265%22%2C%0A++++++%22inte%22%3A%22true%22%2C%0A++++++%22property%22%3A%22payload%5B0%5D.data.Temperature%22%2C%0A++++++%22x%22%3A235%2C%0A++++++%22y%22%3A420%2C%0A++++++%22wires%22%3A%5B%0A+++++++++%5B%0A++++++++++++%223f1d5622.789b8a%22%0A+++++++++%5D%0A++++++%5D%2C%0A++++++%22l%22%3Afalse%0A+++%7D%2C%0A+++%7B%0A++++++%22id%22%3A%22358a344c.e4788c%22%2C%0A++++++%22type%22%3A%22inject%22%2C%0A++++++%22z%22%3A%22df3bfead.a2439%22%2C%0A++++++%22name%22%3A%22%22%2C%0A++++++%22props%22%3A%5B%0A+++++++++%7B%0A++++++++++++%22p%22%3A%22payload%22%0A+++++++++%7D%0A++++++%5D%2C%0A++++++%22repeat%22%3A%22300%22%2C%0A++++++%22crontab%22%3A%22%22%2C%0A++++++%22once%22%3Atrue%2C%0A++++++%22onceDelay%22%3A0.1%2C%0A++++++%22topic%22%3A%22%22%2C%0A++++++%22payload%22%3A%22%5B%7B%5C%22uniqueId%5C%22%3A%5C%22e14nodered1%5C%22%2C%5C%22data%5C%22%3A%7B%5C%22Temperature%5C%22%3A%5C%220%5C%22%7D%7D%5D%22%2C%0A++++++%22payloadType%22%3A%22json%22%2C%0A++++++%22x%22%3A175%2C%0A++++++%22y%22%3A420%2C%0A++++++%22wires%22%3A%5B%0A+++++++++%5B%0A++++++++++++%2280319059.b447a%22%0A+++++++++%5D%0A++++++%5D%2C%0A++++++%22l%22%3Afalse%0A+++%7D%2C%0A+++%7B%0A++++++%22id%22%3A%22da5174df.fac2b8%22%2C%0A++++++%22type%22%3A%22comment%22%2C%0A++++++%22z%22%3A%22df3bfead.a2439%22%2C%0A++++++%22name%22%3A%22iotconnect.io+%5C%5Cn+send%22%2C%0A++++++%22info%22%3A%22%22%2C%0A++++++%22x%22%3A510%2C%0A++++++%22y%22%3A320%2C%0A++++++%22wires%22%3A%5B%0A+++++++++%0A++++++%5D%0A+++%7D%2C%0A+++%7B%0A++++++%22id%22%3A%22a38ec099.0860e%22%2C%0A++++++%22type%22%3A%22comment%22%2C%0A++++++%22z%22%3A%22df3bfead.a2439%22%2C%0A++++++%22name%22%3A%22iotconnect.io+%5C%5Cn+communicate%22%2C%0A++++++%22info%22%3A%22%22%2C%0A++++++%22x%22%3A690%2C%0A++++++%22y%22%3A320%2C%0A++++++%22wires%22%3A%5B%0A+++++++++%0A++++++%5D%0A+++%7D%2C%0A+++%7B%0A++++++%22id%22%3A%22de5e0d4f.24ad8%22%2C%0A++++++%22type%22%3A%22comment%22%2C%0A++++++%22z%22%3A%22df3bfead.a2439%22%2C%0A++++++%22name%22%3A%22temperature%22%2C%0A++++++%22info%22%3A%22%22%2C%0A++++++%22x%22%3A210%2C%0A++++++%22y%22%3A340%2C%0A++++++%22wires%22%3A%5B%0A+++++++++%0A++++++%5D%0A+++%7D%2C%0A+++%7B%0A++++++%22id%22%3A%22fa433c1a.1f67a%22%2C%0A++++++%22type%22%3A%22IoTConnect-Injector%22%2C%0A++++++%22z%22%3A%22df3bfead.a2439%22%2C%0A++++++%22iType%22%3A%22SendCommandAck%22%2C%0A++++++%22descText%22%3A%22%22%2C%0A++++++%22payload%22%3A%22%22%2C%0A++++++%22x%22%3A715%2C%0A++++++%22y%22%3A460%2C%0A++++++%22wires%22%3A%5B%0A+++++++++%5B%0A++++++++++++%22e711923e.ef5d8%22%0A+++++++++%5D%0A++++++%5D%2C%0A++++++%22l%22%3Afalse%0A+++%7D%2C%0A+++%7B%0A++++++%22id%22%3A%2243b9c47.dc8b83c%22%2C%0A++++++%22type%22%3A%22switch%22%2C%0A++++++%22z%22%3A%22df3bfead.a2439%22%2C%0A++++++%22name%22%3A%22ACK%3F%22%2C%0A++++++%22property%22%3A%22payload.ack%22%2C%0A++++++%22propertyType%22%3A%22msg%22%2C%0A++++++%22rules%22%3A%5B%0A+++++++++%7B%0A++++++++++++%22t%22%3A%22true%22%0A+++++++++%7D%2C%0A+++++++++%7B%0A++++++++++++%22t%22%3A%22false%22%0A+++++++++%7D%0A++++++%5D%2C%0A++++++%22checkall%22%3A%22false%22%2C%0A++++++%22repair%22%3Afalse%2C%0A++++++%22outputs%22%3A2%2C%0A++++++%22x%22%3A610%2C%0A++++++%22y%22%3A460%2C%0A++++++%22wires%22%3A%5B%0A+++++++++%5B%0A++++++++++++%22fa433c1a.1f67a%22%0A+++++++++%5D%2C%0A+++++++++%5B%0A++++++++++++%0A+++++++++%5D%0A++++++%5D%0A+++%7D%2C%0A+++%7B%0A++++++%22id%22%3A%22c8d6826d.93e39%22%2C%0A++++++%22type%22%3A%22comment%22%2C%0A++++++%22z%22%3A%22df3bfead.a2439%22%2C%0A++++++%22name%22%3A%22receipt+mgt%22%2C%0A++++++%22info%22%3A%22%22%2C%0A++++++%22x%22%3A640%2C%0A++++++%22y%22%3A500%2C%0A++++++%22wires%22%3A%5B%0A+++++++++%0A++++++%5D%0A+++%7D%2C%0A+++%7B%0A++++++%22id%22%3A%2277a78d77.1e42a4%22%2C%0A++++++%22type%22%3A%22debug%22%2C%0A++++++%22z%22%3A%22df3bfead.a2439%22%2C%0A++++++%22name%22%3A%22%22%2C%0A++++++%22active%22%3Atrue%2C%0A++++++%22tosidebar%22%3Atrue%2C%0A++++++%22console%22%3Afalse%2C%0A++++++%22tostatus%22%3Afalse%2C%0A++++++%22complete%22%3A%22true%22%2C%0A++++++%22targetType%22%3A%22full%22%2C%0A++++++%22statusVal%22%3A%22%22%2C%0A++++++%22statusType%22%3A%22auto%22%2C%0A++++++%22x%22%3A915%2C%0A++++++%22y%22%3A380%2C%0A++++++%22wires%22%3A%5B%0A+++++++++%0A++++++%5D%2C%0A++++++%22icon%22%3A%22font-awesome%2Ffa-bug%22%2C%0A++++++%22l%22%3Afalse%0A+++%7D%2C%0A+++%7B%0A++++++%22id%22%3A%22ecf3a6a7.18f888%22%2C%0A++++++%22type%22%3A%22comment%22%2C%0A++++++%22z%22%3A%22df3bfead.a2439%22%2C%0A++++++%22name%22%3A%22iotconnect.io+%5C%5Cn+receive%22%2C%0A++++++%22info%22%3A%22%22%2C%0A++++++%22x%22%3A930%2C%0A++++++%22y%22%3A320%2C%0A++++++%22wires%22%3A%5B%0A+++++++++%0A++++++%5D%0A+++%7D%2C%0A+++%7B%0A++++++%22id%22%3A%2266d83cd3.f10e34%22%2C%0A++++++%22type%22%3A%22debug%22%2C%0A++++++%22z%22%3A%22df3bfead.a2439%22%2C%0A++++++%22name%22%3A%22%22%2C%0A++++++%22active%22%3Afalse%2C%0A++++++%22tosidebar%22%3Atrue%2C%0A++++++%22console%22%3Afalse%2C%0A++++++%22tostatus%22%3Afalse%2C%0A++++++%22complete%22%3A%22true%22%2C%0A++++++%22targetType%22%3A%22full%22%2C%0A++++++%22statusVal%22%3A%22%22%2C%0A++++++%22statusType%22%3A%22auto%22%2C%0A++++++%22x%22%3A735%2C%0A++++++%22y%22%3A400%2C%0A++++++%22wires%22%3A%5B%0A+++++++++%0A++++++%5D%2C%0A++++++%22icon%22%3A%22font-awesome%2Ffa-bug%22%2C%0A++++++%22l%22%3Afalse%0A+++%7D%0A%5D]&lt;/p&gt;&lt;div&gt;&lt;/div&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;If you use the same Unique ID as me in your exercise, only change the CPID in the Connect node.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=10952&amp;AppID=141&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Connect to AVNET iotconnect.io with Node-RED - part 4: set up Node-RED and first exchange</title><link>https://community.element14.com/technologies/industrial-automation-space/b/blog/posts/connect-to-avnet-iotconnect-io-with-node-red---part-4-set-up-node-red-and-first-exchange</link><pubDate>Wed, 10 Mar 2021 19:35:17 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:00070958-2be8-457f-be2e-ad3b476e09a1</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;What my post does not show, is that this works well together with the common Node-RED components:&lt;/p&gt;&lt;p&gt;&lt;span&gt;[View:/resized-image/__size/620x80/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-00070958-2be8-457f-be2e-ad3b476e09a1/1104.contentimage_5F00_207849.png:620:80]&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The payload does not have to come from&amp;nbsp; the bespoke IotConnect injector. You can keep it empty and feed it with a payload:&lt;/p&gt;&lt;p&gt;&lt;span&gt;[View:/resized-image/__size/193x168/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-00070958-2be8-457f-be2e-ad3b476e09a1/0508.contentimage_5F00_207850.png:193:168]&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The payload in my little demo here comes as a JSON message from a generic component. In this case a plain Node-RED injector:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span&gt;[View:/resized-image/__size/620x132/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-00070958-2be8-457f-be2e-ad3b476e09a1/3731.contentimage_5F00_207851.png:620:132]&lt;/span&gt;&lt;/p&gt;&lt;p&gt;but it could come from any Node-RED source.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=10952&amp;AppID=141&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>