How to create and save preset using mobile sdk ( javascript)

The creation and saving of PTZ presets is not available via the Mobile Server and respectively the mobile SDK.

Cant we use

XPMobileSDK.sendCommand (commandName, requestParams, options, successCallback, failCallback) ???

SendCommand in sdk library its directly send the command in to the milestone

------------------------------------------------------------------------------------------------------------------

Function =>

 this.sendCommand = function (commandName, requestParams, options, successCallback, failCallback) {

requestParams = requestParams || {};

if (XPMobileSDKSettings.supportsCHAP && self.SecurityEnabled == 'Yes' && self.CHAPSupported == 'Yes') {

var challenge = XPMobileSDK.library.CHAP.calculate();

if (challenge.Challenge && challenge.ChalAnswer) {

requestParams.Challenge = challenge.Challenge;

requestParams.ChalAnswer = challenge.ChalAnswer;

}

}

options = options || {};

if (failCallback) {

options.failCallback = failCallback;

}

console.log('Sending ' + commandName + ' on ' + (new Date()) + 'with ', requestParams);

var connectionRequest = new XPMobileSDK.library.ConnectionRequest(commandName, getNextSequenceID(), requestParams, options, successCallback);

    requests.push(connectionRequest);

    return connectionRequest;

};

No, the Mobile Server(where the mobile SDK sends commands to) does not support this functionality and it will not process such commands.