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

About "Send device control commands" Reponse #360

Open
k-kana-P20008 opened this issue Nov 8, 2024 · 3 comments
Open

About "Send device control commands" Reponse #360

k-kana-P20008 opened this issue Nov 8, 2024 · 3 comments
Assignees
Labels
question Further information is requested

Comments

@k-kana-P20008
Copy link

Current Situation

I used the keypad to create a key, why was there nothing in the body of the response?
POST /v1.1/devices/{deviceId}/commands
{ "statusCode": 100, "body": {}, "message": "success" }

Logs

{
    "statusCode": 100,
    "body": {},
    "message": "success"
}

Configuration

{
    "commandType": "command",
    "command": "createKey",
    "parameter": {
        "name": "Booking",
        "type": "timeLimit",
        "password": "12345678",
        "startTime": 1664640056,
        "endTime": 1665331432
    }
}

Environment

  • OS:
  • Software:
  • Node:
  • npm:

Additional Context

No response

@k-kana-P20008
Copy link
Author

@Minsheng
Have the response specifications changed?

@nya911
Copy link

nya911 commented Nov 14, 2024

I'm having trouble too. #361 is also affected

@Larsene
Copy link

Larsene commented Nov 19, 2024

For this command, this is almost correct (it's just missing the commandId, but this doesn't check if the key is really created on the keypad), as the documention says you need to register a webhook.

Unfortunately, the webhook doesn't seems to work for this command, as #361 so there's no simple way to check if the key is effectively created on the keypad. You have to check the keys on the keypad before then after the command and check the delta to be sure.

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

No branches or pull requests

8 participants