<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[NODEMANAGER OTA CONFIGURATION per java script]]></title><description><![CDATA[<p dir="auto">Hello everybody,</p>
<p dir="auto">I'm new here. At first big thanks for the great mycontroller!!!</p>
<p dir="auto">I want to use the Nodemanager OTA configuration feature. I think the right methode is mcApi.sensor().sendRawMessage(message). But I haven't any idea how define the message. The Syntax of the mesesage looks like: &lt;node_id&gt;;&lt;configuration_child_id&gt;;&lt;req&gt;;0;&lt;V_CUSTOM&gt;;&lt;child_id&gt;,&lt;function_id&gt;,&lt;value&gt;<br />
for example: 100;200;2;0;48;0,4,10</p>
<p dir="auto">Have any one an example script?</p>
<p dir="auto">Best regards,<br />
TRex-600</p>
]]></description><link>http://forum.mycontroller.org/topic/462/nodemanager-ota-configuration-per-java-script</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Jul 2026 00:44:41 GMT</lastBuildDate><atom:link href="http://forum.mycontroller.org/topic/462.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 28 May 2020 21:32:15 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to NODEMANAGER OTA CONFIGURATION per java script on Sun, 25 Oct 2020 19:00:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jkandasa" aria-label="Profile: jkandasa">@<bdi>jkandasa</bdi></a> Thanks a lot for the example. The delay doesn't matter. I had already found a solution. But I didn't think this was good enough to publish. I take advantage of the fact that the mysensors nodes do not necessarily need a request message for the Ota function. So I got along with mcApi.sensor (). SendPayload ().</p>
<p dir="auto">When I have time again I'll try your better solution.</p>
]]></description><link>http://forum.mycontroller.org/post/2897</link><guid isPermaLink="true">http://forum.mycontroller.org/post/2897</guid><dc:creator><![CDATA[TRex-600]]></dc:creator><pubDate>Sun, 25 Oct 2020 19:00:45 GMT</pubDate></item><item><title><![CDATA[Reply to NODEMANAGER OTA CONFIGURATION per java script on Wed, 02 Sep 2020 17:43:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/trex-600" aria-label="Profile: TRex-600">@<bdi>TRex-600</bdi></a> Sorry for the delayed response.</p>
<p dir="auto">This script might help you. But I didn't test this. Please let me know if you see an issue.<br />
Type and SubType details are available in <a href="https://github.com/mycontroller-org/mycontroller-v1-legacy/blob/1.5.0.Final/modules/core/src/main/java/org/mycontroller/standalone/provider/mysensors/MySensors.java" rel="nofollow ugc">mycontroller source code</a></p>
<pre><code class="language-javascript">var myImports = new JavaImporter(java.lang, java.util, org.mycontroller.standalone.utils.McUtils, org.mycontroller.standalone.message.IMessage);

with(myImports) {
  // get your gateway via uuid
  var myGateway = mcApi.uidTag().getByUid("my-test-gateway").getResource();
  
  // Import message type
  var Message = Java.type("org.mycontroller.standalone.message.IMessage")
  
  // create message object
  var message = Message.getInstance()
  
  // set gateway id.
  message.setGatewayId(myGateway.id)
  
  // set node EUI
  message.setNodeEui("100")
    
  // set sensor id
  message.setSensorId("200")
  
  // set message type
  message.setType("Request")
  
  // set message sub type
  message.setSubType("Custom")
  
  // set acknowledgement
  message.setAck(0)
  
  // set payload
  message.setPayload("0,4,10")
  
  // send Raw Message
  mcApi.sensor().sendRawMessage(message);
}

</code></pre>
]]></description><link>http://forum.mycontroller.org/post/2852</link><guid isPermaLink="true">http://forum.mycontroller.org/post/2852</guid><dc:creator><![CDATA[jkandasa]]></dc:creator><pubDate>Wed, 02 Sep 2020 17:43:54 GMT</pubDate></item><item><title><![CDATA[Reply to NODEMANAGER OTA CONFIGURATION per java script on Fri, 05 Jun 2020 15:19:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jkandasa" aria-label="Profile: jkandasa">@<bdi>jkandasa</bdi></a><br />
That sounds great! I'm really looking forward to an example. Thank you in advance for your effort.</p>
]]></description><link>http://forum.mycontroller.org/post/2814</link><guid isPermaLink="true">http://forum.mycontroller.org/post/2814</guid><dc:creator><![CDATA[TRex-600]]></dc:creator><pubDate>Fri, 05 Jun 2020 15:19:53 GMT</pubDate></item><item><title><![CDATA[Reply to NODEMANAGER OTA CONFIGURATION per java script on Fri, 05 Jun 2020 11:51:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/trex-600" aria-label="Profile: TRex-600">@<bdi>TRex-600</bdi></a> Welcome to MyController community. I will report an example soon.</p>
]]></description><link>http://forum.mycontroller.org/post/2813</link><guid isPermaLink="true">http://forum.mycontroller.org/post/2813</guid><dc:creator><![CDATA[jkandasa]]></dc:creator><pubDate>Fri, 05 Jun 2020 11:51:31 GMT</pubDate></item></channel></rss>