_setSWAlarms2User

(API version 2.0)

int _setSWAlarms2User ( string kodf , string username , string pass , int carid , int key , int value )

Description

The function sets the SW alarms by bit for the vehicle and the user

Categories

Parameters

string kodf
Company code
string username
Login username
string pass
Login password
int carid
A unique vehicle identifier
int key
Bit setting

Key = -1 sets the entire bit rate


Values of the key paramater
Alarm = 0
Startup = 1
Turn off engine = 2
Battery disconnection = 3
Vehicle towing = 4
int value
Bit setting value: 0/1

Return value

int

1 - OK, change made
0 - No change required, settings did not change

-1 - User not logged in
-2 - User does not have admin rights

Examples

API version 2.0

$client = new SoapClient('https://api.webdispecink.cz/code/WebDispecinkServiceNet.php?wsdl');
$return = $client->_setSWAlarms2User($kodf, $username, $pass, $carid, $key, $value);

Test

To test the function, enter parameters in form below and press Try it out button.

Company code
Login username
Login password
A unique vehicle identifier
Bit setting

Key = -1 sets the entire bit rate


Values of the key paramater
Alarm = 0
Startup = 1
Turn off engine = 2
Battery disconnection = 3
Vehicle towing = 4
Bit setting value: 0/1

* Required field