Giter Club home page Giter Club logo

Comments (4)

MightyPork avatar MightyPork commented on July 22, 2024

Hi, yes that is implemented and works, but I didn't get around to merge it yet.

See #474

Everything relating to Schedule and Calendar should be supported on that branch. If you don't mind it's a few months stale, you can try it

from bacnet-stack.

IgorIIV avatar IgorIIV commented on July 22, 2024

Thanks, it's working.
Is the write supported too?
When is it scheduled to be merged to the master branch?

from bacnet-stack.

MightyPork avatar MightyPork commented on July 22, 2024

Yes, writing works. I'm not sure if it's implemented in the example apps that come with bacnet stack though - I am using it as a statically linked library and call the API directly.

there is no schedule or plan for merging, it will happen, but I didn't have time for that yet

from bacnet-stack.

IgorIIV avatar IgorIIV commented on July 22, 2024

Thank you for the answer.
I also found out that the SCALE property of the Accumulator object is not processed - it returns the MAX_BACNET_APPLICATION_TAG type.
I added an implementation to my code. Here is my implementation in file bacapp.c:
In the func;
BACNET_APPLICATION_TAG function bacapp_context_tag_type(BACNET_PROPERTY_ID property, uint8_t tag_number)
add code:

        PROP_SCALE case:
            switch (tag_number) {
                case 0:
                    tag = BACNET_APPLICATION_TAG_REAL;
                    break;
                case 1:
                    tag = BACNET_APPLICATION_TAG_SIGNED_INT;
                    break;

            }

And in the function:
**int bacapp_decode_known_property(uint8_t apdu, int max_apdu_len, BACNET_APPLICATION_DATA_VALUE value, BACNET_OBJECT_TYPE object_type, BACNET_PROPERTY_ID property)

        case PROP_SCALE: //new prop
        case PROP_TRACKING_VALUE:
        case PROP_PRESENT_VALUE:
            if (object_type == OBJECT_COLOR) {

Please add to your code as well.
Thanks.

from bacnet-stack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.