Skip to content

Body json format for post requests #244

@jayprojects

Description

@jayprojects

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions