C-Gate C Library Linux

Discussion in 'C-Gate Developers' started by andrew12, Jun 1, 2017.

  1. andrew12

    andrew12

    Joined:
    Mar 23, 2017
    Messages:
    10
    Likes Received:
    4
    Location:
    Australia
    Just thought I would share a library I've been working on.

    There are various methods to access C-Bus and cgate such as CBM library, MQTT and DBUS but I wanted a wanted to access C-Gate directly and not tie up a PCI with the CBM library. I do really like the the CBM library though.

    So here it is, a C Library for Linux to access C-Bus through C-Gate, It only supports lighting and measurement events through a callback, similar to cbm. I am no expert programmer so probably a bit rough, constructive criticism welcome.

    Documentation is lacking and I will try to add some in the next few days plus provide an example. I use it successfully to control some RF blinds I got from spotlight.

    https://github.com/Andrewt12/libcgate
     
    andrew12, Jun 1, 2017
    #1
    1. Advertisements

  2. andrew12

    daniel C-Busser Moderator

    Joined:
    Jul 26, 2004
    Messages:
    761
    Likes Received:
    14
    Location:
    Adelaide
    daniel, Jun 5, 2017
    #2
    1. Advertisements

  3. andrew12

    andrew12

    Joined:
    Mar 23, 2017
    Messages:
    10
    Likes Received:
    4
    Location:
    Australia
    Thanks Daniel,

    I have added a licence and a few updates also, I added an example on how I use it to control RF motorised roller blinds I got from spotlight on the cheap and a simple measurement device using a ds18b20 and a OrangePI-Zero and have it display on my eDLT.

    The demos are in there own repository https://github.com/Andrewt12/libcbus-demos
    Hope someone finds it useful.

    Cheers
     
    andrew12, Jun 17, 2017
    #3
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.