<?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>Nrf52840 Bme680 mesh problem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/100725/nrf52840-bme680-mesh-problem</link><description>Dear Support Team, 
 I hope this email finds you well. I am reaching out to seek urgent assistance with an issue I am facing regarding my NRF52840DK board and the BME680 sensor. 
 I have successfully flashed the &amp;quot;zephyr/samples/sensor/bme680&amp;quot; application</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 14 Jun 2023 13:52:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/100725/nrf52840-bme680-mesh-problem" /><item><title>RE: Nrf52840 Bme680 mesh problem</title><link>https://devzone.nordicsemi.com/thread/431043?ContentTypeID=1</link><pubDate>Wed, 14 Jun 2023 13:52:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98025dc6-ef44-4ed7-8444-164a37f85fd7</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]I have successfully flashed the &amp;quot;zephyr/samples/sensor/bme680&amp;quot; application onto the board, and I am able to read sensor data such as temperature and pressure from the terminal, which is working as expected.[/quote]
&lt;p&gt;This is how the bme680 sensor sample works, yes.&lt;/p&gt;
[quote user=""]However, when I load the &amp;quot;nrf/samples/bluetooth/mesh/sensor_server&amp;quot; application onto the same board, and then load the &amp;quot;nrf/samples/bluetooth/mesh/sensor_client&amp;quot; application on my NRF52840DK board, I am only able to retrieve the CPU temperature instead of the BME680 temperature.[/quote]
&lt;p&gt;This is how the mesh sensor server sample works. In order to use temperature readings from the BME680 you must do some modifications.&lt;/p&gt;
&lt;p&gt;The &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/libraries/bluetooth_services/mesh/sensor.html#basic-example"&gt;basic mesh sensor example&lt;/a&gt; fetches the temperature through the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/hardware/peripherals/sensor.html#sensor-api"&gt;Zephyr sensor API&lt;/a&gt;, and the temperature device is configured with the line&lt;br /&gt;&lt;code&gt;static const struct device *dev = DEVICE_DT_GET_ONE(nordic_nrf_temp);&lt;/code&gt;&lt;br /&gt;of that example. It should be possible to just exchange the nordic_nrf_temp with the bme680 temperature sensor device, provided that the latter is already defined in the project (which from what I understand it is in the bme680 sensor sample which you use for reference.)&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>