<?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>coap server with i2c</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/11168/coap-server-with-i2c</link><description>hi there!
i&amp;#39;m struggling with the problem about using i2c with IoT SDK. 
 my project is about transferring sensor data (i2c) through ipv6 over ble , so i used the IoT softdevice s1xx-iot-prototype2_softdevice.hex. 
 i tried to combine my mbed i2c code</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 02 Aug 2016 07:59:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/11168/coap-server-with-i2c" /><item><title>RE: coap server with i2c</title><link>https://devzone.nordicsemi.com/thread/41836?ContentTypeID=1</link><pubDate>Tue, 02 Aug 2016 07:59:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2def29be-3706-4460-97d7-6733286a46fc</guid><dc:creator>samchang</dc:creator><description>&lt;p&gt;HI , GNoB  is the way coap server with i2c works with you ??&lt;/p&gt;
&lt;p&gt;I just combines the CoAP server with the humidity example separately, and I also don&amp;#39;t know how to transfer the sensing data into CoAP packets.&lt;/p&gt;
&lt;p&gt;but I know that we can make it by just designing CoAP packets!&lt;/p&gt;
&lt;p&gt;thanks!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: coap server with i2c</title><link>https://devzone.nordicsemi.com/thread/41838?ContentTypeID=1</link><pubDate>Tue, 02 Aug 2016 07:52:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0c8b481-5c40-4a26-a4d3-7cf43adb5806</guid><dc:creator>samchang</dc:creator><description>&lt;p&gt;hello stian
I want to do the things as same as GNoB  in this example ( \nrf51\examples\iot\coap\ipv6\server)
so do I need to use your sugggestion which you mention in second paragraph (some function in cloud example) to my example ( \nrf51\examples\iot\coap\ipv6\server)   ?
By the way,do you have some DEMO codes about CoAP server with others sensors? Thanks!!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: coap server with i2c</title><link>https://devzone.nordicsemi.com/thread/41837?ContentTypeID=1</link><pubDate>Wed, 13 Jan 2016 10:38:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1413f1ce-6338-4745-bec6-469e01644455</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;It should not be a problem to sample data on the TWI (I2C) and send this data over CoAP.&lt;/p&gt;
&lt;p&gt;Take a look at the example in iot/cloud/coap/data_source, here sensor data is sent in given intervals over CoAP. The data to be sent is prepared in &lt;code&gt;coap_request_send()&lt;/code&gt;. In the example the sensor data is just stored in an array in &lt;code&gt;m_data_points&lt;/code&gt;, but you can easily substitute this with data sampled over TWI.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure how it is to combine your I2C mbed code with the IoT code, but if you take a look at the nRF5 SDK, you can find examples there on how to initialize the TWI and how to sample data. Just copy this code over to the IoT example, and then in the &lt;code&gt;coap_request_send()&lt;/code&gt; you can call the function to read data over TWI.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>