# How can i read data from integrated sensor

**URL:** https://mangoh.discourse.group/t/how-can-i-read-data-from-integrated-sensor/10334
**Category:** mangOH Yellow
**Created:** [August 24, 2023, 11:43am UTC](https://mangoh.discourse.group/t/how-can-i-read-data-from-integrated-sensor/10334 "2023-08-24T11:43:42Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![iker](https://avatars.discourse-cdn.com/v4/letter/i/a6a055/32.png) [@iker](https://mangoh.discourse.group/u/iker)
#### Post date: [August 24, 2023, 11:43am UTC](https://mangoh.discourse.group/t/how-can-i-read-data-from-integrated-sensor/10334/1 "2023-08-24T11:43:42Z")

</div>

Hello, i would like to know how to read from my yellow board the data of the integrated sensor (for example the geolocation data or the humidity data). How can i do it?

---

<div class="post-metadata">

### Author: ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)
#### Post date: [August 24, 2023, 2:16pm UTC](https://mangoh.discourse.group/t/how-can-i-read-data-from-integrated-sensor/10334/2 "2023-08-24T14:16:48Z")

</div>

See if this helps

> <https://github.com/mangOH/mangOH/blob/master/apps/YellowSensor/components/sensors/imu/Component.cdef>

---

<div class="post-metadata">

### Author: ![iker](https://avatars.discourse-cdn.com/v4/letter/i/a6a055/32.png) [@iker](https://mangoh.discourse.group/u/iker)
#### Post date: [August 24, 2023, 2:21pm UTC](https://mangoh.discourse.group/t/how-can-i-read-data-from-integrated-sensor/10334/3 "2023-08-24T14:21:59Z")

</div>

Could be, thanks!!

how can put thoese files into my yellow board?  
mkapp -t wp70 imu.adef?

and then app start imu ? after connecting via ssh?

thanks

---

<div class="post-metadata">

### Author: ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)
#### Post date: [August 24, 2023, 2:27pm UTC](https://mangoh.discourse.group/t/how-can-i-read-data-from-integrated-sensor/10334/4 "2023-08-24T14:27:23Z")

</div>

Didn’t you use the prebuilt image?

> **[mangOH Yellow Resources - Software - mangOH](https://mangoh.io/mangoh-yellow-resources-software)**
>
> mangOH Yellow Software Resources

---

<div class="post-metadata">

### Author: ![iker](https://avatars.discourse-cdn.com/v4/letter/i/a6a055/32.png) [@iker](https://mangoh.discourse.group/u/iker)
#### Post date: [August 24, 2023, 2:37pm UTC](https://mangoh.discourse.group/t/how-can-i-read-data-from-integrated-sensor/10334/5 "2023-08-24T14:37:10Z")

</div>

i downloaded wp77xx .exe driver (not with octave) and i executed it. Do i need to do something else?

---

<div class="post-metadata">

### Author: ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)
#### Post date: [August 24, 2023, 2:37pm UTC](https://mangoh.discourse.group/t/how-can-i-read-data-from-integrated-sensor/10334/6 "2023-08-24T14:37:56Z")

</div>

Then did you see the sensor driver running properly?

---

<div class="post-metadata">

### Author: ![iker](https://avatars.discourse-cdn.com/v4/letter/i/a6a055/32.png) [@iker](https://mangoh.discourse.group/u/iker)
#### Post date: [August 24, 2023, 2:41pm UTC](https://mangoh.discourse.group/t/how-can-i-read-data-from-integrated-sensor/10334/7 "2023-08-24T14:41:06Z")

</div>

Where i can see if it is running the driver on my board? sorry i am very new here

---

<div class="post-metadata">

### Author: ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)
#### Post date: [August 24, 2023, 2:53pm UTC](https://mangoh.discourse.group/t/how-can-i-read-data-from-integrated-sensor/10334/8 "2023-08-24T14:53:43Z")

</div>

See if there is any proper value in the path

> <https://github.com/mangOH/mangOH/blob/master/apps/YellowSensor/components/sensors/imu/Component.cdef>

/sys/bus/i2c/devices/6-0068/iio:device0/in\_accel\_x\_raw  
/sys/bus/i2c/devices/6-0068/iio:device0/in\_accel\_y\_raw  
/sys/bus/i2c/devices/6-0068/iio:device0/in\_accel\_z\_raw  
/sys/bus/i2c/devices/6-0068/iio:device0/in\_accel\_scale  
/sys/bus/i2c/devices/6-0068/iio:device0/in\_anglvel\_x\_raw  
/sys/bus/i2c/devices/6-0068/iio:device0/in\_anglvel\_y\_raw  
/sys/bus/i2c/devices/6-0068/iio:device0/in\_anglvel\_z\_raw  
/sys/bus/i2c/devices/6-0068/iio:device0/in\_anglvel\_scale  
/sys/bus/i2c/devices/6-0068/iio:device0/in\_temp\_scale  
/sys/bus/i2c/devices/6-0068/iio:device0/in\_temp\_offset  
/sys/bus/i2c/devices/6-0068/iio:device0/in\_temp\_raw

---

<div class="post-metadata">

### Author: ![iker](https://avatars.discourse-cdn.com/v4/letter/i/a6a055/32.png) [@iker](https://mangoh.discourse.group/u/iker)
#### Post date: [August 24, 2023, 2:57pm UTC](https://mangoh.discourse.group/t/how-can-i-read-data-from-integrated-sensor/10334/9 "2023-08-24T14:57:05Z")

</div>

i`ve made a cat in a few path and i see a value. But what i want is to take this value and send it to an external Ip or external Server

---

<div class="post-metadata">

### Author: ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)
#### Post date: [August 24, 2023, 3:00pm UTC](https://mangoh.discourse.group/t/how-can-i-read-data-from-integrated-sensor/10334/10 "2023-08-24T15:00:57Z")

</div>

Then this answers your question on how to read from yellow board the data of the integrated sensor

You need to write an app to upload your data to your server

---

<div class="post-metadata">

### Author: ![iker](https://avatars.discourse-cdn.com/v4/letter/i/a6a055/32.png) [@iker](https://mangoh.discourse.group/u/iker)
#### Post date: [August 24, 2023, 3:30pm UTC](https://mangoh.discourse.group/t/how-can-i-read-data-from-integrated-sensor/10334/11 "2023-08-24T15:30:49Z")

</div>

ok then, very greatfull ypur help. Thanks a lot!!

---

<div class="post-metadata">

### Author: ![iker](https://avatars.discourse-cdn.com/v4/letter/i/a6a055/32.png) [@iker](https://mangoh.discourse.group/u/iker)
#### Post date: [August 24, 2023, 3:32pm UTC](https://mangoh.discourse.group/t/how-can-i-read-data-from-integrated-sensor/10334/12 "2023-08-24T15:32:57Z")

</div>

Do you know a sample app to do this?

---

<div class="post-metadata">

### Author: ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)
#### Post date: [August 24, 2023, 3:35pm UTC](https://mangoh.discourse.group/t/how-can-i-read-data-from-integrated-sensor/10334/13 "2023-08-24T15:35:19Z")

</div>

what protocol are you using?  
HTTP POST?  
FTP PUT?  
simple TCP transfer?

---

<div class="post-metadata">

### Author: ![iker](https://avatars.discourse-cdn.com/v4/letter/i/a6a055/32.png) [@iker](https://mangoh.discourse.group/u/iker)
#### Post date: [August 24, 2023, 3:44pm UTC](https://mangoh.discourse.group/t/how-can-i-read-data-from-integrated-sensor/10334/14 "2023-08-24T15:44:10Z")

</div>

HTTP Post or MQTT, both are ok

---

<div class="post-metadata">

### Author: ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)
#### Post date: [August 24, 2023, 3:51pm UTC](https://mangoh.discourse.group/t/how-can-i-read-data-from-integrated-sensor/10334/15 "2023-08-24T15:51:30Z")

</div>

you can see this for using curl on HTTP POST:  
[https://curl.se/libcurl/c/http-post.html](https://curl.se/libcurl/c/http-post.html)

here is the mqtt sample app:

> <https://github.com/legatoproject/legato-af/tree/master/apps/sample/mqtt>
>
> //github.com/legatoproject/legato-af/tree/master/apps/sample/mqtt

---

<div class="post-metadata">

### Author: ![nayanhn](https://avatars.discourse-cdn.com/v4/letter/n/e47c2d/32.png) [@nayanhn](https://mangoh.discourse.group/u/nayanhn)
#### Post date: [September 22, 2023, 5:13am UTC](https://mangoh.discourse.group/t/how-can-i-read-data-from-integrated-sensor/10334/16 "2023-09-22T05:13:08Z")

</div>

> <https://github.com/legatoproject/legato-af/tree/master/apps/sample/mqtt>
>
> //github.com/legatoproject/legato-af/tree/master/apps/sample/mqtt

sir here mqttsample.sdef is file not present should i create it if i create what content should i add to it

thanks in advance

---

<div class="post-metadata">

### Author: ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)
#### Post date: [September 22, 2023, 5:24am UTC](https://mangoh.discourse.group/t/how-can-i-read-data-from-integrated-sensor/10334/17 "2023-09-22T05:24:37Z")

</div>

how about this in WP76 R13.x?

> <https://github.com/legatoproject/legato-af/tree/19.02-release/apps/sample/mqtt>
>
> //github.com/legatoproject/legato-af/tree/19.02-release/apps/sample/mqtt

---

<div class="post-metadata">

### Author: ![nayanhn](https://avatars.discourse-cdn.com/v4/letter/n/e47c2d/32.png) [@nayanhn](https://mangoh.discourse.group/u/nayanhn)
#### Post date: [September 22, 2023, 5:42am UTC](https://mangoh.discourse.group/t/how-can-i-read-data-from-integrated-sensor/10334/18 "2023-09-22T05:42:17Z")

</div>

thanks sir.  
sir ‘mksys’ and ‘mkapp’ are both same are different as i am using leaf manager for development purpose,i have tried before both creating .update file, just asking which is better.

---

<div class="post-metadata">

### Author: ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)
#### Post date: [September 22, 2023, 5:45am UTC](https://mangoh.discourse.group/t/how-can-i-read-data-from-integrated-sensor/10334/19 "2023-09-22T05:45:56Z")

</div>

normally i just use mkapp for my development

In this case, you need to download two application:

1. mqttPublisher.adef
2. mqttSubscriber.adef

---

<div class="post-metadata">

### Author: ![nayanhn](https://avatars.discourse-cdn.com/v4/letter/n/e47c2d/32.png) [@nayanhn](https://mangoh.discourse.group/u/nayanhn)
#### Post date: [September 22, 2023, 6:01am UTC](https://mangoh.discourse.group/t/how-can-i-read-data-from-integrated-sensor/10334/20 "2023-09-22T06:01:15Z")

</div>

sir wright know i only need to read inbuilt sensor data of temperature ,accelerometer and humidity and no need to send that to mqtt for that any specific apis

thanks in advance

[Next page](https://mangoh.discourse.group/t/how-can-i-read-data-from-integrated-sensor/10334.md?page=2)
