Local API .../device/dim error

Moderator: Telldus

Local API .../device/dim error

Postby kamsvag » Wed Mar 08, 2017 10:52 am

Ok, so I'm having troubles with the 'device/dim' command.

This is my URL;
Code: Select all
http://10.0.100.6/api/device/dim?id=28?statevalue=192


The response I get is;
Code: Select all
{
  "error": "deviceDim() takes exactly 3 arguments (2 given)"
}


What am I missing?
kamsvag
 
Posts: 35
Joined: Thu Mar 12, 2015 1:46 pm

Re: Local API .../device/dim error

Postby micke.prag » Wed Mar 08, 2017 12:20 pm

Separate the parameters with &, not ?
Micke Prag
Software
Telldus Technologies
micke.prag
Site Admin
 
Posts: 2197
Joined: Thu Jul 27, 2006 8:25 pm
Location: Lund

Re: Local API .../device/dim error

Postby kamsvag » Thu Mar 09, 2017 10:08 am

Excellent. Thanks.
kamsvag
 
Posts: 35
Joined: Thu Mar 12, 2015 1:46 pm


Return to Beta testing

Who is online

Users browsing this forum: No registered users and 1 guest