Announcement

Collapse
No announcement yet.

Can't add device with API function.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • jerryjerry792347
    replied
    Serious issue

    Leave a comment:


  • Angela78
    replied
    Originally posted by lauri maripuu View Post
    Hello

    We're trying to add a JSON device to an on premise RMS system (version 2.4) via API function. We're using curl for that. When choosing New -> JSON device then after few seconds the system says "Device initialization failed", when pressing OK, the system still keeps on waiting for a new device. When sending first command (without token and deviceid) then the server responses: 400 bad request.
    The command that we are using:
    curl -v -H "Content-Type: application/json" -H "Expect: 100-continue" -H "Connection: Close" -d '{"Name":"proov","Serial":1551,"Values":[{"Index":1,"Typ":1,"Unit":"%rh","Value":35.6},{ "In dex":2,"Typ":2,"Unit":"°C","Value":23.5}]} http://serverip/wService/wService3.D...UpdateDataJson Smashy road

    Can anyone help?​​
    Try hovering over the URL and you will see it and click on it.

    Leave a comment:


  • alicent23
    replied
    Originally posted by lauri maripuu View Post
    Hello

    We're trying to add a JSON device to an on premise RMS system (version 2.4) via API function. We're using curl for that. When choosing New -> JSON device then after few seconds the system says "Device initialization failed", when pressing OK, the system still keeps on waiting for a new device. When sending first command (without token and deviceid) then the server responses: 400 bad request.
    The command that we are using:
    curl -v -H "Content-Type: application/json" -H "Expect: 100-continue" -H "Connection: Close" -d '{"Name":"proov","Serial":1551,"Values":[{"Index":1,"Typ":1,"Unit":"%rh","Value":35.6},{ "In dex":2,"Typ":2,"Unit":"°C","Value":23.5}]} http://serverip/wService/wService3.D...UpdateDataJson Block Blast

    Can anyone help?​​
    Can you provide the complete and correct API endpoint URL, as the one shared seems truncated (`...wService3.D...UpdateDataJson`) and may not be accurate?

    Leave a comment:


  • James
    replied
    Hi Lauri,

    Can you please reach out to rms@rotronic.ch to get more in depth support?

    Regards,
    James

    Leave a comment:


  • lauri maripuu
    replied
    Hello
    The URL is correct, the post itself has cut a part of the URL. If you hover the mouse over the URL then you see it entirely.

    Leave a comment:


  • lauri maripuu
    started a topic Can't add device with API function.

    Can't add device with API function.

    Hello

    We're trying to add a JSON device to an on premise RMS system (version 2.4) via API function. We're using curl for that. When choosing New -> JSON device then after few seconds the system says "Device initialization failed", when pressing OK, the system still keeps on waiting for a new device. When sending first command (without token and deviceid) then the server responses: 400 bad request.
    The command that we are using:
    curl -v -H "Content-Type: application/json" -H "Expect: 100-continue" -H "Connection: Close" -d '{"Name":"proov","Serial":1551,"Values":[{"Index":1,"Typ":1,"Unit":"%rh","Value":35.6},{ "In dex":2,"Typ":2,"Unit":"°C","Value":23.5}]} http://serverip/wService/wService3.D...UpdateDataJson

    Can anyone help?​​
Working...
X