Openhab library for c program

Hi ,

I wanted to interface a sensor to raspberry with the help of openhab.
The point is to fetch the sensor data by a c program for some calculations.

Is there any openhab api/sdk that could be leveraged from the custom c-program to fetch the sensor data.

Welcome to the openHAB forum :raised_hand_with_fingers_splayed::raised_hand_with_fingers_splayed::raised_hand_with_fingers_splayed:

If you can run it from the command-line on the system running openHAB try using the exec binding in order to run the c programme from within openHAB. Mind that it should be runable for the user openHAB!

I am not quite sure which way you want to communicate, but you could use the REST API to interact with Openhab.

1 Like

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.