Giter Site home page Giter Site logo

Comments (7)

tommymalmqvist avatar tommymalmqvist commented on May 25, 2024 1

Hi @laurst this is nagging me so I'll fix it :) Thanks tho, totally missed this.

from rust-ocpp.

SirVer avatar SirVer commented on May 25, 2024 1

from rust-ocpp.

tommymalmqvist avatar tommymalmqvist commented on May 25, 2024

Hi @laurst, thank you for your input. You are actually correct, the specification states 32-bit so I'd happily take a PR :)

From the specification:

Integer
32 bit (31 bit resolution, 1 sign bit)
No leading 0’s No plus sign
Allowed value examples: 1234, -1234
Not Allowed: 01234, +1234

from rust-ocpp.

laurst avatar laurst commented on May 25, 2024

That was quick, thanks! I have to ask though, in which document do you see this specified? I've searched in both the 1.6 edition 2 spec, the erratas, the json spec, and I might be dense but I didn't see it.

from rust-ocpp.

tommymalmqvist avatar tommymalmqvist commented on May 25, 2024

file: OCPP-2.0.1_part2_specification.pdf

2.1.3. Primitive Datatypes

from rust-ocpp.

SirVer avatar SirVer commented on May 25, 2024

@tommymalmqvist This seems to be only for 2.0.1, is this also specified for 1.6?

from rust-ocpp.

tommymalmqvist avatar tommymalmqvist commented on May 25, 2024

@SirVer No, 1.6 has not defined it. Do you need 64-bit for 1.6? Else I think it'll be more safe to use 32-bit if there are many Pole's running on 32-bit.

from rust-ocpp.

Related Issues (11)

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.