Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

terminate called after throwing an instance of 'nlohmann::detail::type_error' #945

Open
phadataretanu opened this issue Jan 20, 2025 · 3 comments

Comments

@phadataretanu
Copy link

I am configuring libocpp for OCPP2.0.1 protocol.

I am able to build the code and generate executable of charge_point.

I am facing issues about 'nlohmann::detail::type_error' after ading config.json of OCPP2.0.1.

Executable getting crashed with following bug :
terminate called after throwing an instance of 'nlohmann::detail::type_error'
what(): [json.exception.type_error.305] cannot use operator[] with a string argument with array
Aborted

Can anyone help with the solution >

@Pietfried
Copy link
Contributor

Hi @phadataretanu , I assume you are using the charge_point test executable. It is just an example that shows how the library can be used and integrated. This example is for OCPP1.6 only and does not work for OCPP2.0.1.

You need to integrate this library yourself with your charging station stack in order to use this library with OCPP2.0.1

@phadataretanu
Copy link
Author

Yes @Pietfried, I am using charge_point exe only. What steps do I need to follow if I want to use libocpp for ocpp2.0.1 implementation ?

@Pietfried
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants