DeviceSetToXml

Send a new setting to a device returning command's result in Xml format

public XmlDocument DeviceSetToXml(bool <byHttps>, string <userName>, string <password>, DeviceSetParameters <deviceSetParameters>, ref char <messageType>, ref string <message>)

Parameters:

bool <byHttps> Set to true if you want to user https protocol otherwise, if you want to use http, set it to false
string <userName> A string containing the username assigned from MyWakes
string <password> A string containing the password for the MyWakes user
DeviceSetParameters <deviceSetParameters> A DeviceSetParameters object containing command's specific parameters
ref char <messageType> A string containing output parameter that will return the type of message returned in <message> field: I=information, W=warning, E=error
ref string <message> A string containing output parameter with the message content

DeviceSetParameters

int <Consumer> The Consumer Id
string <IMEI> The device IMEI
string <Sender> Can contain the sender telephone number. If used the confirm message from the device will be sent to this number
string <Phone> Telephone number of the SIM into the device
string <Psw> Device password
string <Cmd> The command to execute. Depending of the command and the device it will need more or less parameters
List<string> Parameters A collection of string containing the command's related parameters.

Command's list table reference

Command Parameters Devices
apn
sets APN
APN address for GPRS connection. For Daggy sets also MyWakes service IP address. Daggy
Angelo
APN username (not for Daggy)
Password APN (not for Daggy)
interval
sets interval
If set to 1 (one) enables sampling sending to MyWakes services. Otherwise, if set to 0 (zero) disables this function. Daggy
Angelo
Sets the device to send many grouped sampling (not for Daggy).
server
configure MyWakes services
Connection mode to My Wakes platform, can be: 0 (zero) not connected, 1 (one) sets Server IP and connects to My Wakes platform Angelo
gpson
turns on GPS

 

Daggy
gpsoff
turns off GPS

 

Daggy
geo
set up a virtual fence
Virtual fence latitude in degree and decimal degrees. If the position is in the southern hemisphere the value will be negative so it will be preceded by a minus sign. If virtual fence is a circle this value is the latitude of the center of the circle, otherwise the top left of the area. Daggy
Angelo
Virtual fence longitude in degree and decimal degrees. If the position is in the western hemisphere the value will be negative so it will be preceded by a minus sign. If virtual fence is a circle this value is the latitude of the center of the circle, otherwise the top left of the area.
Virtual fence latitude in degree and decimal degrees. If the position is in the southern hemisphere the value will be negative so it will be preceded by a minus sign. It is the latitude of the bottom right of the area. If the virtual fence is a circle this value represents the radius in meters.
Virtual fence longitude in degree and decimal degrees. If the position is in the western hemisphere the value will be negative so it will be preceded by a minus sign. It is the latitude of the bottom right of the area. This value exists only if the virtual fence is rectangular
centerphone
central telephone number
Phone number to sent SMS and fences alarms to Angelo
phonebook
telephone numbers
First telephone number Angelo
Second telephone number
Third telephone number
alarms
set alarm's actions
Action Id for SOS alarm Angelo
Action Id for GEO fence alarm

Returned Type: XmlDocument

Returns an XML Document with the following structure:

<?xml version="1.0" encoding="utf-8" ?> 
<furesult> 
	<message><![CDATA[ OK ]]></message>
	<smsres>OK</smsres>
	<sms>25</sms>
</furesult>

 

Where

  • <message> contains OK or Error description
  • <smsres> the execution result of the command. In case of success the message will be “OK” otherwise it will be the error
  • <sms> user's number of SMS left
Terms Of Use | Privacy Statement | Company info
  • © Cedac Sistemi srl
  • Head office: Via Toscana, 3 40035 Castiglione dei Pepoli (Italy) Tel.: +39 0534-93811 Fax: +39 0534-93899
  • Branch office: Via del Lavoro, 47 40033 Casalecchio di Reno (Italy)
  • Branch office: Via Parini, 1 40033 Casalecchio di Reno (Italy)
  • Share capital Euro 26,000.00 - Company Register of Bologna / VAT no / fiscal code 01695261204