<?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>we can&amp;#39;t read all bytes from TWIS</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/32886/we-can-t-read-all-bytes-from-twis</link><description>Hi We are making a project where we use Bluetooth mesh, which works fine, but we have a problem with TWI (slave), the problem is when we want to read what is on the slave where we would like to read 3 bytes , but when we read we only get first and last</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 05 Apr 2018 16:22:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/32886/we-can-t-read-all-bytes-from-twis" /><item><title>RE: we can't read all bytes from TWIS</title><link>https://devzone.nordicsemi.com/thread/127114?ContentTypeID=1</link><pubDate>Thu, 05 Apr 2018 16:22:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82eb325c-521b-4c4e-b428-0231acfd74d0</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;Those arrays would be on the stack, and possibly overwritten by the time the data is actually read by TWIS.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: we can't read all bytes from TWIS</title><link>https://devzone.nordicsemi.com/thread/127106?ContentTypeID=1</link><pubDate>Thu, 05 Apr 2018 15:47:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:026cd141-5b7a-4de0-9b43-b7459d861723</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I think part of the problem here is that you are using &amp;#39;int firstbyte[1]&amp;#39; instead of &amp;#39;uint8_t firstbyte[1]&amp;#39;. I expect the&amp;nbsp;sizeof(firstbyte) is not 1 if you use int, thereby you get into many problems.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: we can't read all bytes from TWIS</title><link>https://devzone.nordicsemi.com/thread/126552?ContentTypeID=1</link><pubDate>Mon, 02 Apr 2018 23:50:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3c3e77b-6ab8-4af1-9753-7e74ce562bac</guid><dc:creator>lesher</dc:creator><description>&lt;p&gt;Is there a reason you can&amp;#39;t use:&amp;nbsp;uint8_t buftest[3]; ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>