I2C program for MangOH Yellow

does your datahub already work?

Yes, that works. Now i can just get the data in an edge action in octave with datahub.read?

Which path do i need to put into my datahub? Or is there something else to do?

you can see here:

If i understand it well i need to write another app with dhub command to override my data every time? And how can i read the data from my file?

here is an example to read file inside C program:

https://www.programmingsimplified.com/c-program-read-file

Thats how i need to do it right? Read the file where the data is located. Then i need to execute the command “dhub set” to send my data to datahub?

I also don’t need a 0x10 as data, Is there no other option as programm?

then what data do you want?
Those I2C command is controlled by you

I’ve got a vma342 velleman sensor. And i want the temperature humidity and pressure. What do i need to change in the command?

I don’t know, you need to check datasheet

When i run my programm i get this error in my logs, how can i fix my permissions?

Jun 28 16:02:32 swi-mdm9x28-wp user.info Legato:  INFO | updateDaemon[944]/updat          eDaemon T=main | app.c app_InstallIndividual() 739 | App batteryReading <4967b81          84c0b9d3c883aa14fb102fdcf> was already installed
Jun 28 16:02:32 swi-mdm9x28-wp user.info Legato:  INFO | updateDaemon[944]/updat          eDaemon T=main | updateDaemon.c ApplyAppUpdate() 963 | App 'batteryReading<4967b          8184c0b9d3c883aa14fb102fdcf>' already installed. Discarded app installation.
Jun 28 16:06:55 swi-mdm9x28-wp user.info Legato:  INFO | supervisor[909]/supervi          sor T=main | app.c app_Stop() 3596 | Stopping app 'batteryReading'
Jun 28 16:06:55 swi-mdm9x28-wp user.info Legato:  INFO | supervisor[909]/supervi          sor T=main | apps.c DeactivateAppContainer() 374 | Application 'batteryReading'           has stopped.
Jun 28 16:06:55 swi-mdm9x28-wp user.info Legato:  INFO | supervisor[909]/supervi          sor T=main | app.c app_Start() 3471 | Starting app 'batteryReading'
Jun 28 16:06:55 swi-mdm9x28-wp user.err Legato: =ERR= | supervisor[909]/supervis          or T=main | app.c SetCfgDevicePermissions() 777 | Failed to set permissions (rw)           for app 'batteryReading' on device '/dev/i2c-0'.

Did you try unsandboxed feature?