Body json format for post requests
Opened this issue · 1 comments
jayprojects commented
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 commented
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?