<?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>Unable to reconnect to beacon</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/126372/unable-to-reconnect-to-beacon</link><description>Hello there, 
 I am working on a project which involves nRF52840 to scan and connect to specific BLE beacon. 
 So while scanning, nRF writes scanned data on UART. On same UART, I send MAC of beacon to connect with along with some other data in CSV style</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 05 Jan 2026 17:32:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/126372/unable-to-reconnect-to-beacon" /><item><title>RE: Unable to reconnect to beacon</title><link>https://devzone.nordicsemi.com/thread/557957?ContentTypeID=1</link><pubDate>Mon, 05 Jan 2026 17:32:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee30273b-d381-4ddb-ab6f-963e955cad5b</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Error -22 points to a function being input with invalid argument(s), so the first step would be to find out what function on your end is returning this, and find out what arguments are input that might be incorrect.&lt;/p&gt;
&lt;p&gt;You say there is some authentication, is there a pairing or bonding process when connecting the devices? If so, the most likely issue is that one of the devices delete bonding information upon disconnecting, while the other device thinks it is still bonded and will try to reconnect with the same parameters. In that case you either have to make sure the bonding info is stored on both sides through disconnects, or delete bonding info on both sides when disconnecting.&lt;/p&gt;
&lt;p&gt;Best regards,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>