<?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" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Granulardevelopment on Medium]]></title>
        <description><![CDATA[Stories by Granulardevelopment on Medium]]></description>
        <link>https://medium.com/@granulardevelopment?source=rss-291d2cd4bd51------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*s0bNsq7N3ZEnXlPb.jpg</url>
            <title>Stories by Granulardevelopment on Medium</title>
            <link>https://medium.com/@granulardevelopment?source=rss-291d2cd4bd51------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 11:08:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@granulardevelopment/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Understanding Hexadecimal]]></title>
            <link>https://medium.com/@granulardevelopment/understanding-hexadecimal-b0dd538002a9?source=rss-291d2cd4bd51------2</link>
            <guid isPermaLink="false">https://medium.com/p/b0dd538002a9</guid>
            <category><![CDATA[hexadecimal]]></category>
            <category><![CDATA[c-sharp-programming]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Granulardevelopment]]></dc:creator>
            <pubDate>Mon, 02 Oct 2023 10:18:04 GMT</pubDate>
            <atom:updated>2023-10-02T10:18:04.034Z</atom:updated>
            <content:encoded><![CDATA[<p>Hexadecimal is the base 16 number system. Hexadecimal is used to divide a byte into two values of 4 bits each. Said another way, a byte (8 bits) is two hexadecimal digits ranging from 00 to FF.</p><p>The byte 10111111 is the hexadecimal number BF, and the byte 00100100 is the hexadecimal number 24.</p><figure><img alt="Decimal, Binary, Hexadecimal Table Conversion" src="https://cdn-images-1.medium.com/max/904/1*gtW0yNvgyx6fRobCDUjFNQ.png" /></figure><h3><strong>How to convert hexadecimal string to integer:</strong></h3><h4>C#</h4><pre>string hexString = &quot;8E2&quot;;<br>int number = Int.32.Parse(hexString, System.Globalization.NumberStyles.HexNumber);<br>Console.WriteLine(number);<br>//2274<br><br><br>byte[] vals = {0x01, 0xAA, 0xB1, 0xDC, 0x10, 0xDD}<br>string hexString = Convert.ToHexString(vals);<br>int number = Int.32.Parse(hexString, System.Globalization.NumberStyles.HexNumber);<br>Console.WriteLine(number);<br>//1832640057565</pre><h3>How to convert integer to hexadecimal string:</h3><h4>C#</h4><pre>int number = 200;<br>string hexString = number.ToString(&quot;X&quot;);</pre><p>References:<br><br>Code: The Hidden Language of Computer Hardware and Software, 2nd Edition by Charles Petzold</p><p><a href="https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/types/how-to-convert-between-hexadecimal-strings-and-numeric-types">https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/types/how-to-convert-between-hexadecimal-strings-and-numeric-types</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b0dd538002a9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Arduino Nano 33 BLE]]></title>
            <link>https://medium.com/@granulardevelopment/arduino-nano-33-ble-633fbb626129?source=rss-291d2cd4bd51------2</link>
            <guid isPermaLink="false">https://medium.com/p/633fbb626129</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[ble]]></category>
            <category><![CDATA[arduino]]></category>
            <dc:creator><![CDATA[Granulardevelopment]]></dc:creator>
            <pubDate>Sun, 15 Jan 2023 11:28:18 GMT</pubDate>
            <atom:updated>2023-01-15T11:28:18.436Z</atom:updated>
            <content:encoded><![CDATA[<p>How to set manufacturer specific data on an Arduino Nano 33 BLE?</p><p>The code: <a href="https://github.com/brian-smith723/Arduino/tree/main/BLE">https://github.com/brian-smith723/Arduino/tree/main/BLE</a></p><p>Manufacturer specific data allows you to send custom data per the BLE specification. There are two simple ways to set manufacturer specific data on an Arduino Nano. If your data packet is less than 31 bytes you can add the data like this:</p><pre>BLE.setManufacturerData( packet, sizeof(packet))</pre><p>If your data packet is greater than 31 bytes you have to split the manufacturer data. You add some of the data to the advertising packet and some of the data to the scan response, like this:</p><pre>// Build advertising data packet<br>BLEAdvertisingData advData;<br>advData.setManufacturerData(mData1, sizeof(mData1));<br>BLE.setAdvertisingData(advData);<br><br>// Build scan response data packet<br>BLEAdvertisingData scanData;<br>scanData.setManufacturerData(mData2, sizeof(mData2));<br>BLE.setScanResponseData(scanData);</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=633fbb626129" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>