IoTService
The IoTService provides functionality for device discovery and access. Available actions:
createWS
Creates a web service for the device
Returns the endpoint for the web service1
GetDiscoveryInfo
Read the physical discovery information that is associated with the device
Returns: Discovery data encoded in XML string
GetDACEndpoint
Returns the WS endpoint for the local (LinkSmart) Device Application Catalogue (DAC) that has discovered the device.
Returns: The endpoint of the current DAC
GetErrorMessage
Get errormessage for the device
Returns: Latest error message
GetIoTID
Get IoTID for the device
Returns: The HID of the device
GetHasError
Check the device for possible error
Returns: True if error, False otherwise
GetWSEndpoint
Returns the endpoint where the device’s web service is located
GetIoTWSEndpoint
Returns the endpoint where the device’s generic IoT web service is located
GetProperty
Returns a property of the device. A developer can choose any properties she likes to use and set.
Argument: A valid property name (valid XML element name, QNname)
Retunrs: The value of the property<
GetStatus
Query device status
Returns: The status depending on the type of IoTResource
GetWSDL
Returns the WSDL file describing the web service ssociated with the device
SetDACEndpoint
Sets the endpoint of the DAC that has discovered the device
Returns: The endpoint of the device WS
SetIoTID
Sets the IoTID for the device
Argument: IoTID, string
Returns: valid IoTID
SetProperty
Sets a property of the device. A developer can choose any properties she likes to use and set.
Argument: property, a valid property name (valid XML element name, QName)
Argument: value, the value of the property
SetStatus
Sets the status for the device
Argument: Status, a status value choosen by the developer
Stop
Stops the device, which will cause it to be removed from its current DAC. The device can later be re-started.
StopIoTWS
Stops the generic IoT web service of the device.
StopWS
Stops the web service associated with the device.