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

Body json format for post requests #244

Open
jayprojects opened this issue Feb 7, 2024 · 1 comment
Open

Body json format for post requests #244

jayprojects opened this issue Feb 7, 2024 · 1 comment

Comments

@jayprojects
Copy link

Hi thank you for this awesome project.

Im able to execute commands that doesn't require any options parameters. and im getting response data as expected.
However when try commands with parameter its not returning data

Works:
data= await onStar.getChargingProfile();

doesn't work

data=  await onStar.diagnostics({
            "diagnosticItem": ["ODOMETER","TIRE PRESSURE"]
          });

or 

data=  await onStar.diagnostics({
            diagnosticItem: ["ODOMETER","TIRE PRESSURE"]
          });

response status is success but data is undefined.

Any idea what im doing wrong?
Thanks

@jayprojects
Copy link
Author

looks like i figured out. on the first request it return a url instead of data, data is returned after executing the url return by the first request.

Q, anyone know any way to set/update max charge limit number?

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

1 participant