<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.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/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Change openthread parameters using BLE</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/96613/change-openthread-parameters-using-ble</link><description>I&amp;#39;m working with NCS 2.2.0 and a nrf52840DK. The project base is this one and it is working in NCP mode. 
 
 I enable multiprotocol with BLE and it&amp;#39;s working but my next objetive is to change a parameter from OpenThreat network (channel for example).</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 14 Feb 2023 12:34:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/96613/change-openthread-parameters-using-ble" /><item><title>RE: Change openthread parameters using BLE</title><link>https://devzone.nordicsemi.com/thread/409849?ContentTypeID=1</link><pubDate>Tue, 14 Feb 2023 12:34:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22ff94bc-1e90-45ae-9431-cdcac61185ef</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""]But why I need to create an instance if openthread is working before adding the code I attached here.[/quote]
&lt;p&gt;I think this is the issue. The otInstance that you just tried to change the channel on is not an actual OpenThread Instance. Try something like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;otInstance *instance = openthread_get_default_instance();
otChannelManagerRequestChannelChange(instance, 20)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;You can see this being used e.g. in coap_client_utils.c.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>