From f0e0915e51a60c913bafc01f52af696c80b7383c Mon Sep 17 00:00:00 2001
From: Heeam-Shin State of the requested progress. This indicates whether the operation is to update an app or not when installing an app. See "resources" object. Resource information. Note: Resources information must be provided as a stringified form of the "resources" object array. Indicates the pipeline status. Possible values are: Possible values are: The error code for the failed operation. Indicates the reason for the failure of the operation. Resource information. Note: Resources information must be provided as a stringified form of one of the "resources" object. Note: Resources information must be provided as a stringified form of the "resources" object array. Indicates the unique identifier of the camera pipeline. A string representation of the "resources" object. Resource information. Note: Resources information must be provided as a stringified form of the "resources" object array. Defines the toast type. Possible values are: Indicates the reason for the failure of the operation. See the "Error Codes Reference" section of this method for details. The error code for the failed operation. Indicates that the system was unable to retrieve the app source id from the System Bus message. Indicates that the JSON message parsing error occured. Indicates that the app is missing from the requested message. Indicates that the system was unable to retrieve the app source id from the System Bus message. Indicates that the app Id given in the requested message does not match with the system bus caller Id. Indicates that the message field in the requested message is empty. Indicates that the message field in the requested message is empty. Indicates that the app Id given in the requested message does not match with the system bus caller Id. Indicates the timestamp string. This parameter is retired. Indicates the action to be performed on failure to create an alert. An Activity can have the state shown in the diagram above. What the Activity does for each state is as follows. Error Description It indicates that json parsing error: json: error parsing prop name It indicates that app is system (built-in) application or external application It indicates that app is system (built-in) application or downloadable application. id was not found OR Unsupported Application Type application is not running application is not running id was not found OR Unsupported Application Type Possible values are: Possible values are: Possible values are: Possible values are: Possible values are: Possible values are: Possible values are: Possible values are: Indicates the audio output device. Possible values are: Example scenario # luna-send -n 1 luna://com.webos.service.audiooutput/audio/setSoundOut '{"soundOut":"alsa"}' # luna-send -n 1 luna://com.webos.service.audiooutput/audio/setSoundOut '{"soundOut":"ALSA"}' Response: { Indicates the audio output device. Possible values are: Example scenario # luna-send -n 1 luna://com.webos.service.audiooutput/audio/volume/muteSoundOut '{"soundOutput":"alsa","mute":false}' # luna-send -n 1 luna://com.webos.service.audiooutput/audio/volume/muteSoundOut '{"soundOutput":"ALSA","mute":false}' Response: { Indicates the audio output device. Possible values are: Example scenario # luna-send -n 1 luna://com.webos.service.audiooutput/audio/volume/set '{"soundOutput":"alsa","volume":10}' # luna-send -n 1 luna://com.webos.service.audiooutput/audio/volume/set '{"soundOutput":"ALSA","volume":10}' Response: { Example scenario # luna-send -n 1 luna://com.webos.service.audiooutput/audio/volume/up '{"soundOutput":"alsa"}' # luna-send -n 1 luna://com.webos.service.audiooutput/audio/volume/up '{"soundOutput":"ALSA"}' Response: { Indicates the audio source. Note: Returns empty string if no source and sink are connected. Possible values are: Note: Returns empty string if no source and sink are connected. Indicates the audio sink. Note: Returns empty string if no source and sink are connected. Possible values are: Note: Returns empty string if no source and sink are connected. Indicates if the audio is muted. Possible values are: Indicates if the audio is muted. Possible values are: Indicates the audio output device. Note: Returns "null" string if no output device is set. Possible values are: Note: Returns "null" string if no output device is set. Indicates the audio output device. Possible values are: Indicates if subscribed to get notifications. Note: Set to true, since caller must subscribe to this method. Possible values are: Note: Set subscribe to true. The caller must subscribe to this method. Indicates the status of the operation. Possible values are: Contains information of all the adapters currently available in the system. Note: The error code for the failed operation. Example code # luna-send -i -f luna://com.webos.service.bluetooth2/adapter/queryAvailable '{ # luna-send -i -f luna://com.webos.service.bluetooth2/adapter/queryAvailable '{"subscribe":true}' Response: { Subscription return: Subscription response: { Indicates the address of the adapter. Indicates if subscribed to get notifications. Indicates if subscribed to get notifications. Indicates the address (bdaddr) of the remote device. Indicates the address of the adapter. Indicates the unique ID of a request. See the API Error Codes Reference section. The Bluetooth adapter is turned off. For details of a specific error code, see the API Error Codes Reference section. Indicates the address of the adapter. Indicates if subscribed to get notifications. Indicates if subscribed to get notifications. Indicates the address (bdaddr) of the remote device. Indicates the address of the adapter. Indicates the unique ID of a request. See the API Error Codes Reference section. The Bluetooth adapter is turned off. For details of an error code, see the API Error Codes Reference section. Indicates the address of the adapter. Indicates if subscribed to get notifications. Indicates if subscribed to get notifications. Indicates whether the remote device or the local user initiated the disconnection. Indicates the address of the adapter. See the API Error Codes Reference section. The remote Bluetooth device is already connecting to AVRCP profile, so another connection cannot be opened. The remote Bluetooth device is not paired, so AVRCP connection cannot be opened. The remote Bluetooth device cannot be connected to AVRCP profile. The remote Bluetooth device is already connected to the adapter's AVRCP profile, so another connection cannot be opened. For details of an error code, see the API Error Codes Reference section. Indicates the address of the adapter. See the API Error Codes Reference section. The AVRCP connection with the remote Bluetooth device could not be closed. For details of an error code, see the API Error Codes Reference section. Indicates if subscribed to get notifications. Possible values are: Indicates whether the connection request is currently being processed. Indicates if the connection is open. Indicates the address of the adapter. Indicates if subscribed to get notifications. Indicates whether the connection request is currently being processed. Indicates if the connection is open. Indicates the address of the adapter. See the API Error Codes Reference section. The AVRCP connection status of the remote Bluetooth device cannot be retrieved. For details of an error code, see the API Error Codes Reference section. Indicates the address of the adapter. Indicates the unique ID of a request. See API Error Codes Reference. requestId parameter is missing in arguments. The TG (Target) is not awaiting for media play status request. The supplied requestId does not exist, hence the method cannot be completed. For details of an error code, see API Error Codes Reference section. Response for a successful call: Response: { Response for a failed call: If the supplied requestId does not exist { Indicates the address of the adapter. The unique ID of a request. See API Error Codes Reference. requestId parameter is missing in arguments. The TG (Target) is not waiting for media playstatus request. The supplied requestId does not exist, hence the method cannot be completed. For details of an error code, see the API Error Codes Reference section.details
-
update
- Optional
- Boolean
-
-
-
client
Optional
diff --git a/content/en/docs/reference/ls2-api/com-webos-bootmanager.html b/content/en/docs/reference/ls2-api/com-webos-bootmanager.html
index 977c4380..62aadfb3 100644
--- a/content/en/docs/reference/ls2-api/com-webos-bootmanager.html
+++ b/content/en/docs/reference/ls2-api/com-webos-bootmanager.html
@@ -1,7 +1,7 @@
---
title: com.webos.bootManager
-date: 2024-05-27
-api_level: 29
+date: 2024-10-30
+api_level: 30
weight: 20
toc: true
---
diff --git a/content/en/docs/reference/ls2-api/com-webos-media.html b/content/en/docs/reference/ls2-api/com-webos-media.html
index a131fcf2..ac1a32c6 100644
--- a/content/en/docs/reference/ls2-api/com-webos-media.html
+++ b/content/en/docs/reference/ls2-api/com-webos-media.html
@@ -1,7 +1,7 @@
---
title: com.webos.media
-date: 2024-05-27
-api_level: 29
+date: 2024-10-30
+api_level: 30
weight: 30
toc: true
---
@@ -59,9 +59,10 @@ Parameters
resources
Required
- Object array: resources
+ String
-
@@ -1551,7 +1552,7 @@
- Parameters
String
Call Returns
-
- errorCode
- Optional
- Number
-
-
-
-
errorText
- Optional
- String
-
-
- Example
pause
API level 11
Parameters
resources
Required
- Object array: resources
+ String
@@ -3221,7 +3206,7 @@
Call Returns
mediaId
- Required
+ Optional
String
Parameters
Required
String
-
diff --git a/content/en/docs/reference/ls2-api/com-webos-notification.html b/content/en/docs/reference/ls2-api/com-webos-notification.html
index 1042d122..421fc22d 100644
--- a/content/en/docs/reference/ls2-api/com-webos-notification.html
+++ b/content/en/docs/reference/ls2-api/com-webos-notification.html
@@ -1,7 +1,7 @@
---
title: com.webos.notification
-date: 2024-05-27
-api_level: 29
+date: 2024-10-30
+api_level: 30
weight: 40
toc: true
---
@@ -799,6 +799,10 @@
Parameters
String
+
@@ -873,6 +877,14 @@
+ Call Returns
+
errorCode
+ Optional
+ Number
+
+
+ Error Codes Reference
-
- None
- Unknown Source
-
-
-
-
None
+ 100
Message is not parsed
Error Codes Reference
-
None
- Invalid id specified
+ 103
+ Unknown Source
-
-
None
- Invalid source id specified
+ 105
+ Message can't be empty
-
-
@@ -1279,7 +1284,7 @@ None
- Message can't be empty
+ 111
+ Invalid source id specified
-
Subscription Returns
diff --git a/content/en/docs/reference/ls2-api/com-webos-service-activitymanager.html b/content/en/docs/reference/ls2-api/com-webos-service-activitymanager.html
index ccfa9a6b..b96efc74 100644
--- a/content/en/docs/reference/ls2-api/com-webos-service-activitymanager.html
+++ b/content/en/docs/reference/ls2-api/com-webos-service-activitymanager.html
@@ -1,7 +1,7 @@
---
title: com.webos.service.activitymanager
-date: 2024-05-27
-api_level: 29
+date: 2024-10-30
+api_level: 30
weight: 70
toc: true
---
@@ -20,27 +20,27 @@ timestamp
- Required
+ Optional
String
Subscription Returns
Optional
Object: onFailAction
+
Overview of the API
Overview of the API
-
API Error Codes Reference
+
-1990
+ json: error parsing prop name at
+
+
+
@@ -6512,16 +6512,16 @@ -1000
Internal error
diff --git a/content/en/docs/reference/ls2-api/com-webos-service-alarm.html b/content/en/docs/reference/ls2-api/com-webos-service-alarm.html
index 18590f34..ad1a4daa 100644
--- a/content/en/docs/reference/ls2-api/com-webos-service-alarm.html
+++ b/content/en/docs/reference/ls2-api/com-webos-service-alarm.html
@@ -1,7 +1,7 @@
---
title: com.webos.service.alarm
-date: 2024-05-27
-api_level: 29
+date: 2024-10-30
+api_level: 30
weight: 85
toc: true
---
diff --git a/content/en/docs/reference/ls2-api/com-webos-service-applicationmanager.html b/content/en/docs/reference/ls2-api/com-webos-service-applicationmanager.html
index 8da57a62..33c7a46c 100644
--- a/content/en/docs/reference/ls2-api/com-webos-service-applicationmanager.html
+++ b/content/en/docs/reference/ls2-api/com-webos-service-applicationmanager.html
@@ -1,7 +1,7 @@
---
title: com.webos.service.applicationmanager
-date: 2024-06-05
-api_level: 29
+date: 2024-10-30
+api_level: 30
weight: 90
toc: true
---
@@ -6162,8 +6162,8 @@ appInfo
Optional
Boolean
-
- if true means , application is an built-in else it is an external applicatiion
+
+ if true means , application is an built-in else it is an downloadable application.
API Error Codes Reference
2
- id was not found OR Unsupported Application Type
+ application is not running
-
2
- application is not running
+ id was not found OR Unsupported Application Type
-
diff --git a/content/en/docs/reference/ls2-api/com-webos-service-audio.html b/content/en/docs/reference/ls2-api/com-webos-service-audio.html
index 145788a3..dd0ea95a 100644
--- a/content/en/docs/reference/ls2-api/com-webos-service-audio.html
+++ b/content/en/docs/reference/ls2-api/com-webos-service-audio.html
@@ -1,7 +1,7 @@
---
title: com.webos.service.audio
-date: 2024-05-27
-api_level: 29
+date: 2024-10-30
+api_level: 30
weight: 100
toc: true
---
@@ -8413,7 +8413,7 @@
@@ -8439,7 +8439,7 @@ deviceList
deviceList
@@ -8539,7 +8539,7 @@ sourceObject
@@ -8561,7 +8561,7 @@ sourceObject
@@ -8574,7 +8574,7 @@ sourceObject
@@ -8654,7 +8654,7 @@ streamObject
@@ -8676,7 +8676,7 @@ streamObject
@@ -8689,7 +8689,7 @@ streamObject
diff --git a/content/en/docs/reference/ls2-api/com-webos-service-audiooutput.html b/content/en/docs/reference/ls2-api/com-webos-service-audiooutput.html
index 4ba37aba..276fd31e 100644
--- a/content/en/docs/reference/ls2-api/com-webos-service-audiooutput.html
+++ b/content/en/docs/reference/ls2-api/com-webos-service-audiooutput.html
@@ -1,7 +1,7 @@
---
title: com.webos.service.audiooutput
-date: 2024-05-27
-api_level: 29
+date: 2024-10-30
+api_level: 30
weight: 105
toc: true
---
@@ -413,7 +413,7 @@ Example
"source":"AMIXER",
"sink":"ALSA",
"muted":false,
- "outputMode":"alsa"
+ "outputMode":"ALSA"
}
],
"returnValue":true
@@ -621,7 +621,7 @@ Parameters
@@ -691,10 +691,10 @@
-
Example
- "soundOut":"alsa",
+ "soundOut":"ALSA",
"returnValue":true
}
Example
{
"muted":false,
"volume":10,
- "soundOutput":"alsa"
+ "soundOutput":"ALSA"
}
]
}
@@ -950,7 +950,7 @@ Parameters
@@ -1041,11 +1041,11 @@
-
Example
"returnValue":true,
- "soundOutput":"alsa",
+ "soundOutput":"ALSA",
"mute":true
}
Parameters
@@ -1174,10 +1174,10 @@
-
Example
- "soundOutput":"alsa",
+ "soundOutput":"ALSA",
"volume":10,
"returnValue":true
}
@@ -1298,10 +1298,10 @@ Example
- "soundOutput":"alsa",
+ "soundOutput":"ALSA",
"volume":11,
"returnValue":true
}
@@ -1338,11 +1338,11 @@ audio
String
-
@@ -1351,11 +1351,11 @@
audio
String
-
@@ -1363,10 +1363,11 @@
@@ -1376,11 +1377,11 @@ audio
Optional
Boolean
-
-
audio
String
@@ -1437,7 +1438,7 @@
-
- volumeStatus
-
diff --git a/content/en/docs/reference/ls2-api/com-webos-service-bluetooth2.html b/content/en/docs/reference/ls2-api/com-webos-service-bluetooth2.html
index 2930f5ec..82731b9c 100644
--- a/content/en/docs/reference/ls2-api/com-webos-service-bluetooth2.html
+++ b/content/en/docs/reference/ls2-api/com-webos-service-bluetooth2.html
@@ -1,7 +1,7 @@
---
title: com.webos.service.bluetooth2
-date: 2024-05-27
-api_level: 29
+date: 2024-10-30
+api_level: 30
weight: 110
toc: true
---
@@ -1462,12 +1462,12 @@ Parameters
Boolean
@@ -1499,8 +1499,8 @@
-
- Call Returns
-
@@ -2767,7 +2767,7 @@ Subscription Returns
adapters
Required
- Object array: bluetooth2AdapterStatus
+ Object array: bluetooth2Adapter
Subscription Returns
errorCode
Optional
- String
+ Number
@@ -2827,10 +2827,7 @@ Example
- "subscribe":true
- }'
-
"subscribed":false,
@@ -2850,7 +2847,7 @@ Example
"returnValue":true
}
-
"subscribed":false,
"adapters":[
@@ -4052,7 +4049,7 @@ Call Returns
adapterAddress
- Required
+ Optional
String
Call Returns
subscribed
- Required
+ Optional
Boolean
Subscription Returns
subscribed
- Required
+ Optional
Boolean
Subscription Returns
address
- Required
+ Optional
String
Subscription Returns
adapterAddress
- Required
+ Optional
String
Subscription Returns
requestId
- Required
+ Optional
String
Error Codes Reference
-
- 101, 103, 104, 143, 144
- See API Error Codes Reference
-
-
-
-
@@ -4334,7 +4324,7 @@ 161
- Adapter is turned off
+ 101, 103, 104, 143, 144, 161, 162
+ Depends on error code
-
Call Returns
adapterAddress
- Required
+ Optional
String
Call Returns
subscribed
- Required
+ Optional
Boolean
Subscription Returns
subscribed
- Required
+ Optional
Boolean
Subscription Returns
address
- Required
+ Optional
String
Subscription Returns
adapterAddress
- Required
+ Optional
String
Subscription Returns
requestId
- Required
+ Optional
String
Error Codes Reference
-
- 101, 103, 104, 143, 144
- See API Error Codes Reference
-
-
-
-
@@ -6088,7 +6071,7 @@ 161
- Adapter is turned off
+ 101, 103, 104, 143, 144, 161, 162
+ Depends on error code
-
Call Returns
adapterAddress
- Required
+ Optional
String
Call Returns
subscribed
- Required
+ Optional
Boolean
Subscription Returns
subscribed
- Required
+ Optional
Boolean
Subscription Returns
disconnectByRemote
- Required
+ Optional
String
Subscription Returns
adapterAddress
- Required
+ Optional
String
Error Codes Reference
-
- 102, 103, 105, 106, 127, 143, 144
- See API Error Codes Reference
-
-
-
-
- 128
- Device is already connecting
-
-
-
-
- 129
- Device is not paired
+ 102, 103, 105, 106, 127, 128, 129, 130, 131, 143, 144
+ Depends on error code
-
-
-
- 130
- Failed to connect with remote device
-
-
-
-
@@ -6375,7 +6330,7 @@ 131
- Already connected
-
-
Call Returns
adapterAddress
- Required
+ Optional
String
Error Codes Reference
-
- 102, 105, 106, 127, 143, 144
- See API Error Codes Reference
+ 102, 105, 106, 127, 132, 143, 144
+ Depends on error code
-
-
-
@@ -8046,9 +7994,22 @@ 132
- Failed to disconnect from remote device
-
-
Call Returns
+
+
subscribed
+ Optional
+ Boolean
+
+
+
+
+
connecting
- Required
+ Optional
Boolean
Call Returns
connected
- Required
+ Optional
Boolean
Call Returns
adapterAddress
- Required
+ Optional
String
Subscription Returns
subscribed
- Required
+ Optional
Boolean
Subscription Returns
connecting
- Required
+ Optional
Boolean
Subscription Returns
connected
- Required
+ Optional
Boolean
Subscription Returns
adapterAddress
- Required
+ Optional
String
Error Codes Reference
-
- 102, 105, 106, 127, 143, 144
- See API Error Codes Reference
+ 102, 105, 106, 127, 133, 143, 144
+ Depends on error code
-
-
-
@@ -10145,7 +10099,7 @@ 133
- Failed to retrieve state for remote device
-
-
Call Returns
adapterAddress
- Required
+ Optional
String
Call Returns
requestId
- Required
+ Optional
String
Error Codes Reference
-
- 127, 143, 144
- See API Error Codes Reference
+ 127, 143, 144, 186, 187, 188
+ Depends on error code
-
-
-
- 186
- Required 'requestId' parameter is not supplied
-
-
-
-
- 187
- Request is currently not allowed
-
-
-
-
@@ -10238,26 +10171,18 @@ 188
- The supplied requestId does not exist
-
-
Example
"album":"disney frozen",
"genre":"pop",
"trackNumber":1,
+ "trackCount":3,
"duration":225
}
}'
-
"requestId":"001",
"adapterAddress":"00:00:c5:99:f5:87",
"returnValue":true
}
- "errorCode":188,
- "returnValue":false,
- "errorText":"The supplied requestId does not exist"
- }
- avrcp/supplyMediaPlayStatus
@@ -10353,7 +10278,7 @@ Call Returns
adapterAddress
- Required
+ Optional
String
Call Returns
requestId
- Required
+ Optional
String
Error Codes Reference
-
- 127, 143, 144
- See API Error Codes Reference
+ 127, 143, 144, 186, 187, 188
+ Depends on error code
-
-
-
- 186
- Required 'requestId' parameter is not supplied
-
-
-
-
- 187
- Request is currently not allowed
-
-
-
-
@@ -10447,22 +10351,13 @@ 188
- The supplied requestId does not exist
-
-
Example
}
}'
-
Response for a successful call:
+Response:
{
"requestId":"001",
"adapterAddress":"00:00:c5:99:f5:87",
"returnValue":true
}
-
Response for a failed call: If the supplied requestId does not exist
-{
- "errorCode":188,
- "returnValue":false,
- "errorText":"The supplied requestId does not exist"
- }
-
Indicates if subscribed to get notifications.
-Possible values are:
+Subscribe to this method if you require notifications about any changes in its response
+Possible values are:
Default: false
Indicates if subscribed to get notifications.
-Possible values are:
-Indicates status of subscription (check 'subscribe' parameter).
Indicates the status of the operation.
+Indicates status of method execution.
Possible values are:
Note: returnValue will always contain true unless the request for subscription fails.
Contains status information of all the devices known to the system, not just the ones whose status has been changed.
The error code for the failed operation.
-Indicates the reason for the failure of the operation. See the "Error Codes Reference" section of this method for details.
-Indicates if subscribed to get notifications.
-Possible values are:
-Indicates status of subscription (check 'subscribe' parameter).
Indicates the status of the operation.
-Possible values are:
-Note: returnValue will always contain true unless the request for subscription fails.
+Indicates status of method execution.
Contains the status information of all the devices known to the system, and not just the ones whose status has been changed.
The error code for the failed operation.
-Indicates the reason for the failure of the operation. See the "Error Codes Reference" section of this method for details.
-See API Error Codes Reference.
+For details of specific error code, see the 'API Error codes Reference' table
Indicates whether to set a remote device as a trusted device. Possible values are:
+Indicates whether to set a remote device as a trusted device.
+Possible values are:
Default value: false
Indicates whether to block (if set) or unblock (if reset) a remote device for pairing and profile connections. Possible values are:
+Indicates whether to block (if set) or unblock (if reset) a remote device for pairing and profile connections.
+Possible values are:
Default value: false
Indicates the status of operation.
Possible values are:
The error code for the failed operation.
-Indicates the reason for the failure of the operation. See the "Error Codes Reference" section of this method for details.
+Indicates the address of the adapter.
See API Error Codes Reference.
-Either no parameters are supplied to the device/setState method or the parameters have no state change from their earlier value.
-The Bluetooth stack fails to set the supplied device properties for the given device.
+For details of specific error code, see the 'API Error codes Reference' table.
Response:
-{
+
{
"returnValue":true
}
Start the broadcasting of the Bluetooth Low Energy advertisement.
+Starts broadcasting the Bluetooth Low Energy advertisement.
txPower | -Required | +Optional | Number |
Indicates the transmission power level of the remote device. @@ -33672,7 +33495,7 @@bluetooth2DeviceStatus |
manufacturerData | Required | -Number (uint8_t) array | +Object: bluetooth2GattManufacturerData |
Indicates manufacturer-specific company ID and data (if advertised from the remote device, else it will be blank). |
@@ -33841,6 +33664,55 @@
Indicates manufacturer-specific company ID and data (if advertised from the remote device, else it will be blank) and scanResponse data
+Note: If defined SCAN_RECORD only companyId and data will be available, if not all parameters visible
+
+ Name + |
+
+ Required + |
+
+ Type + |
+
+ Description + |
+
---|---|---|---|
companyId | +Optional | +Number (int8_t) array | +
+ Company identifier assigned by the Bluetooth SIG + |
+
data | +Optional | +Number (int8_t) array | +
+ Data of the advertiser + |
+
scanRecord | +Optional | +Number (int8_t) array | +
+ Indicates the service data of the remote device (if advertised from the remote device, else it will be blank). + |
+
Object containing information about the permissions allowed for a client to use a particular characteristic value.
@@ -34491,6 +34363,7 @@Contains information about a media metadata value.
+Note : string parameters accepts empty string as some meta data doesn't have particular info, and number parameters accepts non negative numbers
title | -Optional | +Required | String |
Indicates the title of the media. @@ -34518,7 +34391,7 @@bluetooth2MediaMetaData |
artist | -Optional | +Required | String |
Indicates the name of the artist. @@ -34526,7 +34399,7 @@bluetooth2MediaMetaData |
album | -Optional | +Required | String |
Indicates the name of album. @@ -34534,7 +34407,7 @@bluetooth2MediaMetaData |
genre | -Optional | +Required | String |
Indicates the genre of the media. @@ -34542,7 +34415,7 @@bluetooth2MediaMetaData |
trackNumber | -Optional | +Required | Number |
Indicates the track number of the media. @@ -34550,7 +34423,7 @@bluetooth2MediaMetaData |
trackCount | -Optional | +Required | Number |
Indicates the total number of tracks in the album. @@ -34558,7 +34431,7 @@bluetooth2MediaMetaData |
duration | -Optional | +Required | Number |
Indicates the playing time of the media in milliseconds. @@ -35218,7 +35091,7 @@bluetooth2PlayStatus |
duration | -Optional | +Required | Number |
Indicates the number representing the current track length in milliseconds. @@ -35226,7 +35099,7 @@bluetooth2PlayStatus |
position | -Optional | +Required | Number |
Indicates the number representing the current playing time in milliseconds. @@ -35234,7 +35107,7 @@bluetooth2PlayStatus |
status | -Optional | +Required | String |
Indicates the string representing the play status. @@ -35444,7 +35317,7 @@bluetooth2ServiceClass |
category | -Required | +Optional | String |
Indicates the LS2 category methods that can access the service class. @@ -35704,9 +35577,51 @@API Error Codes ReferenceThe SIL (Stack Interface Layer) module used doesn't provide any implementation for the profile. |
128 | +Device is already connecting | +
+ Indicates that the remote Bluetooth device is already connected to the profile, hence another connection cannot be opened. + |
+ ||
129 | +Device is not paired | +
+ The remote Bluetooth device is not paired, so connection cannot be opened. + |
+ ||
130 | +Failed to connect with remote device | +
+ The remote Bluetooth device cannot be connected to the profile. + |
+ ||
131 | +Already connected | +
+ The remote Bluetooth device is already connected to the adapter's <profilename> profile, so another connection cannot be opened. + |
+ ||
132 | +Failed to disconnect from remote device | +
+ Indicates that the connection with the remote Bluetooth device could not be closed. + |
+ ||
133 | +Failed to retrieve state for remote device | +
+ The connection status of the remote Bluetooth device cannot be retrieved. + |
+ ||
136 | -Device is not connected | +Device is not connected to profile |
The remote Bluetooth device is not connected to our Bluetooth adapter via the profile. |
@@ -35740,6 +35655,27 @@ |
148 | +No property state has changed | +
+ Either no parameters are supplied to the device/setState method or the parameters have no state change from their earlier value. + |
+ ||
149 | +Failed to set device properties | +
+ The Bluetooth stack fails to set the supplied device properties for the given device. + |
+ ||
161 | +Adapter is turned off | +
+ The Bluetooth adapter is turned off. + |
+ ||
162 | Adapter Address is not valid | @@ -35831,6 +35767,27 @@|||
186 | +Required 'requestId' parameter is not supplied | +
+ requestId parameter is missing in arguments. + |
+ ||
187 | +Request is currently not allowed | +
+ The TG (Target) is not awaiting for media play status request. + |
+ ||
188 | +The supplied requestId does not exist | +
+ The supplied requestId does not exist, hence the method cannot be completed. + |
+ ||
213 | Failed to configure advertisement | diff --git a/content/en/docs/reference/ls2-api/com-webos-service-bugreport.html b/content/en/docs/reference/ls2-api/com-webos-service-bugreport.html index ebd6de3c..6c183b5b 100644 --- a/content/en/docs/reference/ls2-api/com-webos-service-bugreport.html +++ b/content/en/docs/reference/ls2-api/com-webos-service-bugreport.html @@ -1,7 +1,7 @@ --- title: com.webos.service.bugreport -date: 2024-05-27 -api_level: 29 +date: 2024-10-30 +api_level: 30 weight: 115 toc: true --- diff --git a/content/en/docs/reference/ls2-api/com-webos-service-bus.html b/content/en/docs/reference/ls2-api/com-webos-service-bus.html index 6ba0ad55..da26a01f 100644 --- a/content/en/docs/reference/ls2-api/com-webos-service-bus.html +++ b/content/en/docs/reference/ls2-api/com-webos-service-bus.html @@ -1,7 +1,7 @@ --- title: com.webos.service.bus -date: 2024-05-27 -api_level: 29 +date: 2024-10-30 +api_level: 30 weight: 117 toc: true --- @@ -103,21 +103,14 @@Required | Boolean |
- Indicates the status of operation. Possible values are: +Indicates status of method execution. +Possible values are:
|
errorText | -Optional | -String | -
- Indicates the reason for the failure in operation. - |
-
Indicates the status of operation. Possible values are:
+Indicates status of method execution.
+Possible values are:
errorText | -Optional | -String | +
+ Error Code + |
+
+ Error Text + |
+
+ Error Description + |
+
---|---|---|---|---|---|
-1 | +"Schema error. 19: Missing required key" | +
+ Required Parameter is missing + |
+ |||
-1 | +"Schema error. 13: Not string" |
- Indicates the reason for the failure in operation +If parameter is not string type + |
+ |||
-1 | +"Manifest " " parse error: "Invalid parameters error. Can't open file: "" | +
+ When invalid prefix or file path is given this error appears . +*Note - the file path will vary in the error text depending upon the file name. |
Required | Boolean |
- True in case of success, false if input list contains invalid names. +Indicates status of method execution. +Possible values are: +
|
+ Error Code + |
+
+ Error Text + |
+
+ Error Description + |
+
---|---|---|
-1 | +"Schema error. 3: Not array" | +
+ When type is not array . + |
+
-1 | +Schema error. 19: Missing required key" | +
+ When required parameter is missing. + |
+
Example : When unknown service is provided in input
@@ -441,35 +504,25 @@Indicates the status of operation. Possible values are:
+Indicates status of method execution.
+Possible values are:
True if call is allowed, otherwise false. Will not be returned if returnValue is false.
-Error code is returned if returnValue is false else no error code is returned if returnValue is true.
-Indicates the reason for the failure in operation.
+Indicates if call is allowed.
+Possible values are:
+Indicates the status of operation. Possible values are:
+Indicates status of method execution.
+Possible values are:
The error code for the failed operation.
-Indicates the reason for the failure of the operation. See the "Error Codes Reference" section of this method for details.
-Invalid payload format, error message describes the details
When required parameter is missing
+When parameter is not string type
+Indicates the status of operation. Possible values are:
+Indicates status of method execution.
+Possible values are:
Indicates the reason for the failure in operation
-Indicates the status of operation. Possible values are:
+Indicates status of method execution.
+Possible values are:
errorText | -Optional | -String | +
+ Error Code + |
+
+ Error Text + |
+
+ Error Description + |
+ ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
-1 | +"Schema error. 13: Not string" | +
+ When parameter is not string type. + |
+ |||||||||||||
-1 | +"Schema error. 19: Missing required key" |
- Indicates the reason for the failure in operation +When required parameter is missing. |
Required | Boolean |
- If the signal/addmatch method succeeds then the returnValue will contain true. Indicates status of method execution. +Possible values are: +
|
@@ -1141,7 +1213,7 @@ ||||||||||
category name | +categoryname | Optional | String array |
@@ -1315,4 +1387,39 @@ Example+ +Objects+
+
\ No newline at end of file
diff --git a/content/en/docs/reference/ls2-api/com-webos-service-config.html b/content/en/docs/reference/ls2-api/com-webos-service-config.html
index 3ea7c0f3..ca5a09b6 100644
--- a/content/en/docs/reference/ls2-api/com-webos-service-config.html
+++ b/content/en/docs/reference/ls2-api/com-webos-service-config.html
@@ -1,7 +1,7 @@
---
title: com.webos.service.config
-date: 2024-05-27
-api_level: 29
+date: 2024-10-30
+api_level: 30
weight: 130
toc: true
---
diff --git a/content/en/docs/reference/ls2-api/com-webos-service-configurator.html b/content/en/docs/reference/ls2-api/com-webos-service-configurator.html
index 7b3362c3..0e87838b 100644
--- a/content/en/docs/reference/ls2-api/com-webos-service-configurator.html
+++ b/content/en/docs/reference/ls2-api/com-webos-service-configurator.html
@@ -1,7 +1,7 @@
---
title: com.webos.service.configurator
-date: 2024-05-27
-api_level: 29
+date: 2024-10-30
+api_level: 30
weight: 140
toc: true
---
diff --git a/content/en/docs/reference/ls2-api/com-webos-service-connectionmanager.html b/content/en/docs/reference/ls2-api/com-webos-service-connectionmanager.html
index ccc6782c..0d9abdc7 100644
--- a/content/en/docs/reference/ls2-api/com-webos-service-connectionmanager.html
+++ b/content/en/docs/reference/ls2-api/com-webos-service-connectionmanager.html
@@ -1,7 +1,7 @@
---
title: com.webos.service.connectionmanager
-date: 2024-06-05
-api_level: 29
+date: 2024-10-30
+api_level: 30
weight: 150
toc: true
---
@@ -203,12 +203,12 @@ ApiPermissionsObject+
+
Describe the group to which methods of the service belong. The properties of this object serve as patterns for methods (including their categories) and the values for these properties are set of groups for the methods matching the patterns. +
+
+
Parameters | Optional | Boolean |
- Subscribe to this method to get notified on changes to the status of the network connection. Possible values are: +Subscribe to this method to get notified on changes to the status of the network connection. +Possible values are:
Default value: false |
||||||||
errorCode | -Optional | -Number | -
- The error code for the failed operation. - |
- ||||||||||||
errorText | -Optional | -String | -
- Indicates the reason for the failure of the operation. See the "Error Codes Reference" section of this method for details. - |
-
# luna-send -n 1 -f luna://com.webos.service.connectionmanager/getStatus '{}'
-
Response:
{
"returnValue": true,
@@ -484,12 +467,12 @@
Subscribe to be notified of changes in interfaces. Possible values are:
+Subscribe to be notified of changes in interfaces.
+Possible values are:
Default value: false
Information about the Wi-Fi interface.
Information about the Wi-Fi interface.
The error code for the failed operation.
-Indicates the reason for the failure of the operation. See the "Error Codes Reference" section of this method for details.
-The error code for the failed operation.
-Indicates the reason for the failure of the operation. See the "Error Codes" section of this method for details.
-The time duration for sampling data activity in msec.
+The time duration for sampling data activity (in milliseconds).
Indicates the data activity for the wired interface.
@@ -882,7 +833,7 @@Indicates the data activity for the Wi-Fi interface.
@@ -1225,29 +1176,14 @@Indicates the status of operation. Possible values are:
+Indicates the status of operation.
+Possible values are:
The error code for the failed operation.
-Indicates the reason for the failure of the operation. See the "Error Codes Reference" section of this method for details.
-Indicates the status of operation. Possible values are:
+Indicates the status of operation.
+Possible values are:
The error code for the failed operation.
-Indicates the reason for the failure of the operation. See the "Error Codes Reference" section of this method for details.
-Indicates the status of operation. Possible values are:
+Indicates the status of operation.
+Possible values are:
The error code for the failed operation.
-Indicates the reason for the failure of the operation. See the "Error Codes" section of this method for details.
-Indicates the status of operation.
Possible values are:
The error code for the failed operation.
-Indicates the reason for the failure of the operation. See the "Error Codes" section of this method for details.
-Example scenario
+# luna-send -n 1 -f luna://com.webos.service.connectionmanager/setipv4 '{
+ "ssid": "Connectivity",
+ "method": "manual",
+ "address": "192.168.1.42",
+ "netmask": "255.255.255.0",
+ "gateway": "192.168.1.1",
+ "interfaceName" : "eth0"
+ }'
+
Response:
+{
+ "returnValue": true
+ }
+
Indicates the status of operation. Possible values are:
+Indicates the status of operation.
+Possible values are:
The error code for the failed operation.
-Indicates the reason for the failure of the operation. See the "Error Codes Reference" section of this method for details.
-Indicates the status of operation. Possible values are:
+Indicates the status of operation.
+Possible values are:
The error code for the failed operation.
-Indicates the reason for the failure of the operation. See the "Error Codes Reference" section of this method for details.
-The object containing the MAC address of the wired interface.
-An example would look like:
-{
- "macAddress":"aa:bb:cc:dd:ee",
- "interfaces":[
- {
- "name":"eth0",
- "macAddress":"DC:A6:32:AF:7C:3B"
- },
- {
- "name":"eth1",
- "macAddress":"DC:A6:32:AF:7C:3C"
- }
- ]
- }
-
22 | +"invalid parameters: caller='com.palm.configurator' error='invalid type for property 'query'' | +
+ When Invalid Parameters are passed. + |
+
Returns a list of active attached media, and shards.
+Returns a list of active attached media, and shards.
None
- Owner of the kind. Only the owner has permission to modify the kind. Depending on whether service/app ID is provided, use one of the following:
+Owner of the kind. Only the owner has permission to modify the kind. Depending on whether service/app ID is provided, use one of the following:
Returns the state of developer mode. Possible values are:
+Returns the state of developer mode.
+Possible values are:
Indicates the status of operation. Possible values are:
+Indicates the status of operation.
+Possible values are:
The error code for the failed operation.
-Indicates the reason for the failure of the operation. See the "Error Codes Reference" section of this method for details.
+The passphrase.
The status of developer mode. Possible values are:
+Status of developer mode.
+Possible values are:
Indicates the status of operation. Possible values are:
+Indicates the status of operation.
+Possible values are:
The error code for the failed operation.
-Indicates the reason for the failure of the operation. See the "Error Codes Reference" section of this method for details.
-# luna-send -n 1 luna://com.webos.service.devmode/setDevMode '{"enabled":false}'
-
Response:
{
"returnValue":true
diff --git a/content/en/docs/reference/ls2-api/com-webos-service-downloadmanager.html b/content/en/docs/reference/ls2-api/com-webos-service-downloadmanager.html
index 9253d7fe..c97e4df8 100644
--- a/content/en/docs/reference/ls2-api/com-webos-service-downloadmanager.html
+++ b/content/en/docs/reference/ls2-api/com-webos-service-downloadmanager.html
@@ -1,7 +1,7 @@
---
title: com.webos.service.downloadmanager
-date: 2024-05-27
-api_level: 29
+date: 2024-10-30
+api_level: 30
weight: 190
toc: true
---
@@ -114,35 +114,41 @@
+ Error Code + |
+
+ Error Text + |
+
+ Error Description + |
+
---|---|---|
None | +Missing required key is required but it is missing | +
+ Missing required key is required but it is missing + |
+
Example code
Example response for a successful call :
-
- / # luna-send -n 1 -f luna://com.webos.service.downloadmanager/allow1x '{"value" : true}'
-
- {
-
- "returnValue": true,
-
- "value": true
-
- }
-
-
-
- Example response for a failed call : parameter missing
-
- / # luna-send -n 1 -f luna://com.webos.service.downloadmanager/allow1x '{}'
-
- {
-
- "returnValue": false,
-
- "errorText": "Missing required key is required but it is missing"
-
+
# luna-send -n 1 -f luna://com.webos.service.downloadmanager/allow1x '{"value" : true}'
+Response:
+{
+ "returnValue": true,
+ "value": true
}
Example code
Example response for a successful call :
-
- / # luna-send -n 1 -f luna://com.webos.service.downloadmanager/cancelAllDownloads '{}'
-
- {
-
- "returnValue": true
-
- }
-
-
-
- Example response for a failed call : always return "true"
+
# luna-send -n 1 -f luna://com.webos.service.downloadmanager/cancelAllDownloads '{}'
+Response:
+{
+ "returnValue": true
+ }
Refer to the completionStatusCode parameter above.
+Missing required key is required but it is missing
+Example code
Example response for successful call :
-
- / # luna-send -n 1 -f luna://com.webos.service.downloadmanager/cancelDownload '{"ticket" : 1}'
-
- {
-
- "ticket": 1,
-
- "aborted": true,
-
- "completionStatusCode": 12,
-
- "returnValue": true,
-
- "completed": false
-
- }
-
-
-
- Example response for a failed call : missing parameter
-
- / # luna-send -n 1 -f luna://com.webos.service.downloadmanager/cancelDownload '{}'
-
- {
-
- "ticket": 0,
-
- "returnValue": false,
-
- "errorText": "Missing required key is required but it is missing"
-
+
# luna-send -n 1 -f luna://com.webos.service.downloadmanager/cancelDownload '{"ticket" : 1}'
+Response:
+{
+ "ticket": 1,
+ "aborted": true,
+ "completionStatusCode": 12,
+ "returnValue": true,
+ "completed": false
}
Refer to the completionStatusCode parameter above.
+Missing required key is required but it is missing
+Example code
Example response for a successful call :
-
- / # luna-send -n 1 -f luna://com.webos.service.downloadmanager/cancelUpload '{"ticket" : 1}'
-
- {
-
- "ticket": 1,
-
- "aborted": true,
-
- "completionStatusCode": 12,
-
- "returnValue": true,
-
- "completed": false
-
- }
-
-
-
- Example response for a failed call : missing parameter
-
- / # luna-send -n 1 -f luna://com.webos.service.downloadmanager/cancelUpload '{}'
-
- {
-
- "ticket": 0,
-
- "returnValue": false,
-
- "errorText": "Missing required key is required but it is missing"
-
+
# luna-send -n 1 -f luna://com.webos.service.downloadmanager/cancelUpload '{"ticket" : 1}'
+Response:
+{
+ "ticket": 1,
+ "aborted": true,
+ "completionStatusCode": 12,
+ "returnValue": true,
+ "completed": false
}
Fail to find owner
+Example code
Example response for a successful call :
-
- / # luna-send -n 1 -f luna://com.webos.service.downloadmanager/clearHistory '{"owner" : "/var/run/ls2/5Htp9Q"}'
-
- {
-
- "returnValue": true
-
- }
-
-
-
- Example response for a failed call :
-
- / # luna-send -n 1 -f luna://com.webos.service.downloadmanager/clearHistory '{"owner" : "invalid"}'
-
- {
-
- "errorCode": 3,
-
- "returnValue": false,
-
- "errorText": "Fail to find owner"
-
+
# luna-send -n 1 -f luna://com.webos.service.downloadmanager/clearHistory '{"owner" : "/var/run/ls2/5Htp9Q"}'
+Response:
+{
+ "returnValue": true
}
+ Error Code + |
+
+ Error Text + |
+
+ Error Description + |
+
---|---|---|
None | +requested download record not found | +
+ requested download record not found + |
+
Example code
Example response for a successful call :
-
- / # luna-send -n 1 -f luna://com.webos.service.downloadmanager/deleteDownloadedFile '{"ticket" : 124}'
-
- {
-
- "ticket": 124,
-
- "returnValue": true
-
- }
-
-
-
- Example response for a failed call : ticket is not in download history
-
- / # luna-send -n 1 -f luna://com.webos.service.downloadmanager/deleteDownloadedFile '{"ticket" : 999}'
-
- {
-
- "ticket": 999,
-
- "errorCode": "requested download record not found",
-
- "returnValue": false
-
+
# luna-send -n 1 -f luna://com.webos.service.downloadmanager/deleteDownloadedFile '{"ticket" : 124}'
+Response:
+{
+ "ticket": 124,
+ "returnValue": true
}
Example code
Example response for a successful call :
-
- /media/internal/downloads # luna-send -f -i luna://com.webos.service.downloadmanager/download '{"target" : "http://www.google.co.kr"}'
-
- {
-
- "ticket": 18,
-
- "url": "http://www.google.co.kr",
-
- "target": "/media/internal/downloads/fileeAErBg",
-
- "subscribed": false,
-
- "returnValue": true
-
- }
-
- Example response for a failed call : file system full
-
- /media/internal/downloads # luna-send -f -i luna://com.webos.service.downloadmanager/download '{"target" : "http://www.google.co.kr"}'
-
- {
-
- "subscribed": false,
-
- "errorCode": "-4",
-
- "returnValue": false,
-
- "errorText": "start returned with an error code"
-
+
# luna-send -f -i luna://com.webos.service.downloadmanager/download '{"target" : "http://www.google.co.kr"}'
+Response:
+{
+ "ticket": 18,
+ "url": "http://www.google.co.kr",
+ "target": "/media/internal/downloads/fileeAErBg",
+ "subscribed": false,
+ "returnValue": true
}
Note: The location service provider is also called a location source and location handler.
-
Google Geocoding API Key
To use the GeoCoding functionality, you must have the Geocoding API keys to authenticate requests associated with your project for usage and billing purposes. You must perform the following steps:
+ $ echo "GEOCODING_KEY" | base64
+ <<ENCRYPTED_GEOCODING_KEY>>
+
{
- "wpsName": "google",
- "apiKey": "ENCRYPTED_GEOCODING_KEY",
- "services": [
- {
- "features": ["geocode", "reverseGeocode"],
- "url": "https://maps.googleapis.com/maps/api/geocode/json?"
- }
- ]
- }
-
{
+ "wpsName": "google",
+ "apiKey": "ENCRYPTED_GEOCODING_KEY",
+ "services": [
+ {
+ "features": ["geocode", "reverseGeocode"],
+ "url": "https://maps.googleapis.com/maps/api/geocode/json?"
+ }
+ ]
+ }
+
+ # luna-send -f -n 1 luna://com.webos.service.location/setState '{"Handler":"network","state":true}' +
+API level 30
Gets the satellite information.
+Prerequisite: The GPS feature of the device has to be powered ON.
+
+ Name + |
+
+ Required + |
+
+ Type + |
+
+ Description + |
+
---|---|---|---|
subscribe | +Optional | +Boolean | +
+ Indicates whether to subscribe to related events. +Possible values are: +
Default: true + |
+
+ Name + |
+
+ Required + |
+
+ Type + |
+
+ Description + |
+
---|---|---|---|
returnValue | +Required | +Boolean | +
+ Indicates the status of the operation. +Possible values are: +
|
+
errorCode | +Required | +Number | +
+ The error code for the failed operation. + |
+
visibleSatellites | +Optional | +Number | +
+ Indicates the number of visible (detectable) satellites. + |
+
satellites | +Optional | +Object array: satellite | +
+ Contains each satellite's information in an object array. + |
+
errorText | +Optional | +String | +
+ Indicates the reason for the failure of the operation. See the "API Error Codes Reference" section for details. + |
+
+ Name + |
+
+ Required + |
+
+ Type + |
+
+ Description + |
+
---|---|---|---|
returnValue | +Required | +Boolean | +
+ Indicates the status of the operation. +Possible values are: +
|
+
errorCode | +Required | +Number | +
+ The error code for the failed operation. + |
+
visibleSatellites | +Optional | +Number | +
+ Indicates the number of visible (i.e., detectable) satellites. + |
+
satellites | +Optional | +Object array: satellite | +
+ Contains each satellite's information in an object array. + |
+
errorText | +Optional | +String | +
+ Indicates the reason for the failure of the operation. See the "Error Codes" section of this method for details. + |
+
Example code
+# luna-send -f -n 1 luna://com.webos.service.location/getGpsSatelliteData '{}'
+Response:
+{
+ "visibleSatellites":25,
+ "satellites":[
+ {
+ "prn":1,
+ "index":0,
+ "azimuth":64,
+ "snr":0,
+ "elevation":15,
+ "usedInFix":false,
+ "hasAlmanac":true,
+ "hasEphemeris":true
+ },
+ {
+ "prn":2,
+ "index":1,
+ "azimuth":265,
+ "snr":0,
+ "elevation":11,
+ "usedInFix":false,
+ "hasAlmanac":true,
+ "hasEphemeris":true
+ },
+ {
+ "prn":68,
+ "index":24,
+ "azimuth":49,
+ "snr":0,
+ "elevation":49,
+ "usedInFix":false,
+ "hasAlmanac":false,
+ "hasEphemeris":false
+ }
+ ],
+ "errorCode":0,
+ "returnValue":true
+ }
+
API level 30
Gets a NMEA sentence from a GPS receiver.
+
+ Name + |
+
+ Required + |
+
+ Type + |
+
+ Description + |
+
---|---|---|---|
subscribe | +Optional | +Boolean | +
+ Indicates whether to subscribe to related events. +
Default: true + |
+
+ Name + |
+
+ Required + |
+
+ Type + |
+
+ Description + |
+
---|---|---|---|
returnValue | +Required | +Boolean | +
+ Indicates the status of the operation. +Possible values are: +
|
+
errorCode | +Required | +Number | +
+ The error code for the failed operation. + |
+
timestamp | +Optional | +Number (int64_t) | +
+ Indicates the time when a raw NMEA sentence is received from the satellite(in milliseconds). + |
+
nmea | +Optional | +String | +
+ Contains the NMEA sentence. + |
+
errorText | +Optional | +String | +
+ Indicates the reason for the failure of the operation. See the "API Error Codes Reference" section for details. + |
+
+ Name + |
+
+ Required + |
+
+ Type + |
+
+ Description + |
+
---|---|---|---|
returnValue | +Required | +Boolean | +
+ Indicates the status of the operation. +Possible values are: +
|
+
errorCode | +Required | +Number | +
+ The error code for the failed operation. + |
+
timestamp | +Optional | +Number (int64_t) | +
+ Indicates the time when a raw NMEA sentence is received from the satellite(in milliseconds). + |
+
nmea | +Optional | +String | +
+ Contains the NMEA sentence. + |
+
errorText | +Optional | +String | +
+ Indicates the reason for the failure of the operation. See the "API Error Codes Reference" section for details. + |
+
Example code
+# luna-send -f -n 1 luna://com.webos.service.location/getNmeaData '{}'
+Response:
+{
+ "timestamp":1410848850316,
+ "nmea":"$GPGSV,4,1,13,01,13,067,,02,13,268,,04,33,060,,06,46,286,*7A",
+ "errorCode":0,
+ "returnValue":true
+ }
+
Subscription response:
+ {
+ "timestamp":1410848850316,
+ "nmea":"$GPGSV,4,1,13,01,13,067,,02,13,268,,04,33,060,,06,46,286,*7A",
+ "errorCode":0,
+ "returnValue":true
+ }
+
{
+ "timestamp":1410848862346,
+ "nmea":"$GPGSV,4,2,13,01,13,069,,02,13,265,,04,33,060,,03,46,286,*7A",
+ "errorCode":0,
+ "returnValue":true
+ }
+
+ # luna-send -f -n 1 luna://com.webos.service.location/setState '{"Handler":"network","state":true}' +
+Contains satellite information.
+
+ Name + |
+
+ Required + |
+
+ Type + |
+
+ Description + |
+
---|---|---|---|
index | +Required | +Number | +
+ Indicates the index of the satellite. + |
+
azimuth | +Required | +Number (double) | +
+ Indicates the azimuth value of the satellite(in degrees). + |
+
elevation | +Required | +Number (double) | +
+ Indicates the elevation of the satellite(in degrees). + |
+
prn | +Required | +Number | +
+ Indicates the PRN (pseudo-random number) for the satellite. + |
+
snr | +Required | +Number (double) | +
+ Indicates the signal to noise ratio for the satellite. + |
+
hasAlmanac | +Required | +Boolean | +
+ Indicates whether the GPS engine has almanac data for the satellite. +Possible values are : +
|
+
hasEphemeris | +Required | +Boolean | +
+ Indicates whether the GPS engine has ephemeris data for the satellite. +
|
+
usedInFix | +Required | +Boolean | +
+ Indicates whether the satellite was used by the GPS engine in calculating the most recent GPS fix. +
|
+
API level 30
Downloads requested cover art URI and provides downloaded path.
+
+ Name + |
+
+ Required + |
+
+ Type + |
+
+ Description + |
+
---|---|---|---|
displayId | +Required | +Number | +
+ Display ID. + |
+
src | +Required | +String array | +
+ Source URIs of cover art images. + |
+
subscribe | +Optional | +Boolean | +
+ Indicates if subscribed to get notifications. +Possible values are: +
|
+
+ Name + |
+
+ Required + |
+
+ Type + |
+
+ Description + |
+
---|---|---|---|
returnValue | +Required | +Boolean | +
+ Indicates the status of the operation. +Possible values are: +
|
+
coverArtPathInfo | +Required | +Object array: coverArtPathInfo | +
+ Provides cover art source and download path. + |
+
subscribed | +Required | +Boolean | +
+ Indicates if subscribed to get notifications. +Possible values are: +
|
+
+ Name + |
+
+ Required + |
+
+ Type + |
+
+ Description + |
+
---|---|---|---|
src | +Required | +String | +
+ Source URI of Requested downloaded cover Art image. + |
+
srcPath | +Required | +String | +
+ Provides cover art source and downloaded path. + |
+
returnValue | +Required | +Boolean | +
+ Indicates the status of the operation. +Possible values are: +
|
+
subscribed | +Required | +Boolean | +
+ Indicates if subscribe to get notifications. +Possible values are: +
|
+
+ Error Code + |
+
+ Error Text + |
+
+ Error Description + |
+
---|---|---|
2 | +Check error details | +
+ For details of a specific error, see the 'API Error codes Reference' table. + |
+
Example scenario
+# luna-send -n 3 -f luna://com.webos.service.mediacontroller/getMediaCoverArtPath '{
+ "displayId":0,
+ "src":["https://storage.googleapis.com/media-session/sintel/artwork-128.png"],
+ "subscribe":true
+ }'
+
Response:
+{
+ "subscribed": true,
+ "returnValue": true,
+ "coverArtPathInfo": [
+ {
+ "src": "https://storage.googleapis.com/media-session/sintel/artwork-128.png",
+ "srcPath": "/media/internal/.media-session/artwork-128.png"
+ }
+ ]
+ }
+
Subscription :
+{
+ "subscribed": true,
+ "returnValue": true,
+ "src": "https://storage.googleapis.com/media-session/sintel/artwork-128.png",
+ "srcPath": "/media/internal/.media-session/artwork-128.png"
+ }
+
Indicates the displayId for which the media play status is required.
+Display for which the media play status is required.
Possible values are:
Indicates the status for the required subscription response.
-Possible values are :
+Indicates the status for the required event type.
+Note: If not set, eventType will send all the possible values as the response.
+Possible values are:
Note: If not set, eventType will send all the possible values as the response.
Indicates if subscribed to get notifications.
Possible values are:
Indicates the status of the operation.
Possible values are:
Indicates if subscribed to get notifications.
-Possible values are:
-Indicates if subscribed to get notifications (check subscribe parameter).
Indicates the displayId for the required media play status.
+Display ID for the required media play status.
Possible values are:
Indicates the status for the required subscription response.
-Possible values are :
+Note: If not set, eventType will send all the possible values as the response.
+Possible values are:
Note: If not set, eventType will send all the possible values as the response.
Indicates the current play status of the media.
+Note: Available only if eventType is playStatus.
Possible values are:
Note: The information will be sent if the eventType is playStatus.
Indicates the current status of the media.
+Note: Available only if eventType is muteStatus.
Possible values are:
Note: The information will be sent if the eventType is muteStatus.
Indicates the current play position of the media.
-Note: The information will be sent if the eventType is playPosition.
+Note: Available only if eventType is playPosition.
Indicates the metadata information for the playback.
-Note: The information will be sent if the eventType is mediaMetaData.
+Note: Available only if eventType is mediaMetaData.
The error code for the failed operation.
+Details of media cover art.
+Note: Available only if eventType is coverArt.
Indicates the reason for the failure of the operation. See the "Error Codes" section of this method for details.
+List of supported actions that are specified in setSupportedActions method.
+Note: Available only if eventType is supportedActions.
Indicates the status of the operation.
-Possible values are:
-Indicates if subscribed to get notifications.
-Possible values are:
-Indicates if subscribed to get notifications (check subscribe parameter).
Indicates the displayId for the required media play status.
+Display ID for the required media play status.
Possible values are:
Indicates the status for the required subscription response.
-Possible values are :
+Note: If not set, eventType will send all the possible values as the response.
+Possible values are:
Note: If not set, eventType will send all the possible values as the response.
Indicates the current play status of the media.
+Note: Available only if eventType is playStatus.
Possible values are:
Note: The information will be sent if eventType is playStatus.
Indicates the current status of the media.
+Note: Available only if eventType is muteStatus.
Possible values are:
Note: The information will be sent if the eventType is muteStatus
Indicates the current play position of the media playback.
-Note: The information will be sent if the eventType is playPosition.
+Note: Available only if eventType is playPosition.
Indicates the metadata information for the playback.
-Note: The information will be sent if the eventType is mediaMetaData.
+Note: Available only if eventType is mediaMetaData.
The error code for the failed operation
+Details of media cover art.
+Note: Available only if eventType is coverArt.
Indicates the reason for the failure of the operation. See the "Error Codes" section of this method for details.
+List of supported actions that are specified in setSupportedActions method.
+Note: Available only if eventType is supportedActions.
See the API Error Codes Reference section
@@ -1538,50 +1768,94 @@Example scenario
# luna-send -n 1 -f luna://com.webos.service.mediacontroller/receiveMediaPlaybackInfo '{
+
# luna-send -n 1 -f luna://com.webos.service.mediacontroller/receiveMediaPlaybackInfo '{
"displayId":0,
+ "eventType":"supportedActions",
"subscribe":true
}'
Response:
{
- "returnValue":true,
- "displayId":0,
- "playStatus":"PLAYSTATE_PLAYING",
- "muteStatus":"unmute",
- "playPosition":"10.10",
- "metaData":{
- "title":"Big Bang Theory",
- "artist":"BIGBANG",
- "totalDuration":"20.15",
- "album":"BBT",
- "genre":"drama",
- "trackNumber":2
- }
+ "subscribed": true,
+ "displayId": 0,
+ "returnValue": true,
+ "supportedActions": [
+ "play",
+ "pause",
+ "stop",
+ "seekTo",
+ "scrubTo",
+ "enterPictureInPicture",
+ "exitPictureInPicture"
+ ],
+ "eventType": "supportedActions"
}
With eventType as playStatus
+Example scenario
# luna-send -n 1 -f luna://com.webos.service.mediacontroller/receiveMediaPlaybackInfo '{
"displayId":0,
- "eventType":"playStatus",
"subscribe":true
}'
Response:
{
- "returnValue":true,
+ "returnValue": true,
+ "coverArt": [
+ {
+ "sizes": [
+ {
+ "width": 128,
+ "height": 128
+ }
+ ],
+ "src": "https://storage.googleapis.com/media-session/sintel/artwork-128.png",
+ "type": "image/png"
+ }
+ ],
+ "displayId": 0,
+ "playPosition": "1.0",
+ "subscribed": true,
+ "mediaMetaData": {
+ "artist": "BigBang",
+ "trackNumber": 2,
+ "album": "BBT",
+ "totalDuration": "20.15",
+ "title": "BigBangTheory",
+ "volume": 100,
+ "genre": "drama"
+ },
+ "playStatus": "PLAYSTATE_PLAYING",
+ "muteStatus": "mute"
+ }
+
+
Example : For eventType as playStatus
+# luna-send -n 1 -f luna://com.webos.service.mediacontroller/receiveMediaPlaybackInfo '{
"displayId":0,
"eventType":"playStatus",
- "playStatus":"PLAYSTATE_PLAYING"
+ "subscribe":true
+ }'
+
Response:
+{
+ "playStatus": "PLAYSTATE_PLAYING",
+ "displayId": 0,
+ "returnValue": true,
+ "subscribed": true,
+ "eventType": "playStatus"
}
With eventType as muteStatus
+Example : For eventType as muteStatus
# luna-send -n 1 -f luna://com.webos.service.mediacontroller/receiveMediaPlaybackInfo '{
@@ -1592,15 +1866,16 @@
Response:
{
- "returnValue":true,
- "displayId":0,
- "eventType":"muteStatus",
- "muteStatus":"unmute"
+ "subscribed": true,
+ "displayId": 0,
+ "returnValue": true,
+ "muteStatus": "mute",
+ "eventType": "muteStatus"
}
With eventType as playPosition
+Exameple : For eventType as playPosition
# luna-send -n 1 -f luna://com.webos.service.mediacontroller/receiveMediaPlaybackInfo '{
@@ -1611,15 +1886,16 @@
Response:
{
- "returnValue":true,
- "displayId":0,
- "eventType":"playPosition",
- "playPosition":"10.10"
+ "playPosition": "1.0",
+ "displayId": 0,
+ "returnValue": true,
+ "subscribed": true,
+ "eventType": "playPosition"
}
With eventType as metaData
+Example : For eventType as metaData
# luna-send -n 1 -f luna://com.webos.service.mediacontroller/receiveMediaPlaybackInfo '{
@@ -1630,28 +1906,61 @@
Response:
{
- "returnValue":true,
- "displayId":0,
- "eventType":"mediaMetaData",
- "metaData":{
- "title":"Big Bang Theory",
- "artist":"BIGBANG",
- "totalDuration":"20.15",
- "album":"BBT",
- "genre":"drama",
- "trackNumber":2
- }
+ "subscribed": true,
+ "displayId": 0,
+ "returnValue": true,
+ "mediaMetaData": {
+ "artist": "BigBang",
+ "trackNumber": 2,
+ "album": "BBT",
+ "totalDuration": "20.15",
+ "title": "BigBangTheory",
+ "volume": 100,
+ "genre": "drama"
+ },
+ "eventType": "mediaMetaData"
}
API level 12
Example : For eventType as coverArt
+# luna-send -n 1 -f luna://com.webos.service.mediacontroller/receiveMediaPlaybackInfo '{
+ "displayId":0,
+ "eventType":"coverArt",
+ "subscribe":true
+ }'
+
Response:
+{
+ "coverArt": [
+ {
+ "sizes": [
+ {
+ "width": 128,
+ "height": 128
+ }
+ ],
+ "src": "https://storage.googleapis.com/media-session/sintel/artwork-128.png",
+ "type": "image/png"
+ }
+ ],
+ "displayId": 0,
+ "returnValue": true,
+ "subscribed": true,
+ "eventType": "coverArt"
+ }
+
API level 12
Registers media sessions, subscribes to receive AVRCP key events.
@@ -1928,6 +2237,150 @@API level 30
Sets the cover art data for media session.
+
+ Name + |
+
+ Required + |
+
+ Type + |
+
+ Description + |
+
---|---|---|---|
mediaId | +Required | +String | +
+ Media ID of the registered session. + |
+
coverArt | +Required | +Object array: coverArtInfo | +
+ Cover art information of the media session. + |
+
+ Name + |
+
+ Required + |
+
+ Type + |
+
+ Description + |
+
---|---|---|---|
returnValue | +Required | +Boolean | +
+ Indicates the status of the operation. +Possible values are: +
|
+
+ Error Code + |
+
+ Error Text + |
+
+ Error Description + |
+
---|---|---|
0, 2 | +Check error details | +
+ For details of a specific error, see the 'API Error codes Reference' table. + |
+
Example scenario
+# luna-send -n 1 -f luna://com.webos.service.mediacontroller/setMediaCoverArt '{
+ "mediaId":"xDFNUI",
+ "coverArt":[
+ {
+ "src":"https://storage.googleapis.com/media-session/sintel/artwork-96.png",
+ "type":"image/png",
+ "sizes":[
+ {
+ "height":96,
+ "width":96
+ }
+ ]
+ },
+ {
+ "src":"https://storage.googleapis.com/media-session/sintel/artwork-128.png",
+ "type":"image/png",
+ "sizes":[
+ {
+ "height":128,
+ "width":128
+ }
+ ]
+ }
+ ]
+ }'
+
Response:
+{
+ "returnValue": true,
+ }
+
API level 31
Sets the list of supported media actions.
+
+ Name + |
+
+ Required + |
+
+ Type + |
+
+ Description + |
+
---|---|---|---|
mediaId | +Required | +String | +
+ Media ID of the registered session. + |
+
supportedActions | +Required | +String array | +
+ List of actions to be supported. It can include values such as: +
|
+
+ Name + |
+
+ Required + |
+
+ Type + |
+
+ Description + |
+
---|---|---|---|
returnValue | +Required | +Boolean | +
+ Indicates the status of the operation. +Possible values are: +
|
+
+ Error Code + |
+
+ Error Text + |
+
+ Error Description + |
+
---|---|---|
0, 2 | +Check error details. | +
+ For details of a specific error, see the API Error Codes Reference table. + |
+
Example : Set play, pause, and next as supported actions
+# luna-send -n 1 -f luna://com.webos.service.mediacontroller/setSupportedActions '{"mediaId":"xDFNUI", "supportedActions":["play", "pause", "next"]}'
+Response:
+{
+ "returnValue": true
+ }
+
Details of media cover art.
+
+ Name + |
+
+ Required + |
+
+ Type + |
+
+ Description + |
+
---|---|---|---|
src | +Required | +String | +
+ Source URI of cover Art image. + |
+
type | +Optional | +String | +
+ Type of image format. + |
+
sizes | +Optional | +Object array: sizes | +
+ Size of images. + |
+
Provides cover art source URI and downloaded path.
+
+ Name + |
+
+ Required + |
+
+ Type + |
+
+ Description + |
+
---|---|---|---|
src | +Required | +String | +
+ Source URI of cover art image. + |
+
srcPath | +Required | +String | +
+ Provides downloaded cover art source path + |
+
Contains the mediaMetaData information.
@@ -2776,6 +3444,46 @@Provides possible sizes for each cover art
+
+ Name + |
+
+ Required + |
+
+ Type + |
+
+ Description + |
+
---|---|---|---|
width | +Optional | +Number | +
+ Indicates the width of the image. + |
+
height | +Optional | +Number | +
+ Indicates the height of the image. + |
+
Indicates No Error
Indicates invalid displayid
+Indicates invalid event
+Indicates the status of the operation.
-Possible values are:
+Possible values are:
The error code for the failed operation.
+Telegraf configurations, converted to a JSON object.
+Similar to telegraf.conf, available @ https://docs.influxdata.com/telegraf/v1.21/administration/configuration/.
+Note: Besides the configs that are configured using setConfig method, this method also returns some read-only configurations.
errorText | -Optional | -String | -
- The reason for the failure of the operation. See the 'API Error Codes Reference' section for details. - |
+
+ Error Code + |
+
+ Error Text + |
+
+ Error Description + |
---|---|---|---|---|---|---|
config | -Optional | -Object | +3, 4 | +Check error details |
- Telegraf configurations, converted to a JSON object. -Similar to telegraf.conf, available @ https://docs.influxdata.com/telegraf/v1.21/administration/configuration/. -Note: Besides the configs that are configured using setConfig method, this method also returns some read-only configurations. +For details of a specific error, see the API Error Codes Reference table. |
Boolean |
Indicates the status of the operation. -Possible values are: +Possible values are:
|
errorCode | +dataArray | Optional | -Number | +Object array |
- The error code for the failed operation. +JSON object with data about the specified input. +More details on output data: +For more details: +
|
errorText | -Optional | -String | -
- The reason for the failure of the operation. See the 'API Error Codes Reference' section for details. - |
+
+ Error Code + |
+
+ Error Text + |
+
+ Error Description + |
---|---|---|---|---|---|---|
dataArray | -Optional | -Object array | +3, 4 | +Check error details |
- JSON object with data about the specified input. +For details of a specific error, see the API Error Codes Reference table. |
Boolean |
Indicates the status of the operation. -Possible values are: +Possible values are:
|
-
errorCode | -Optional | -Number | -
- The error code for the failed operation. - |
- |||
errorText | -Optional | -String | -
- The reason for the failure of the operation. See the 'API Error Codes Reference' section for details. - |
- |||
status | -Optional | +Required | String |
Indicates the status of the Telegraf service. Possible values are:
|
+ Error Code + |
+
+ Error Text + |
+
+ Error Description + |
+
---|---|---|
3 | +Check error details | +
+ For details of a specific error, see the API Error Codes Reference table. + |
+
Example scenario
@@ -461,27 +511,36 @@Indicates the status of the operation.
-Possible values are:
+Possible values are:
errorCode | -Optional | -Number | -
- The error code for the failed operation. - |
+
+ Error Code + |
+
+ Error Text + |
+
+ Error Description + |
---|---|---|---|---|---|---|
errorText | -Optional | -String | +3 | +Check error details. |
- The reason for the failure of the operation. See the 'API Error Codes Reference' section for details. +For details of a specific error, see the API Error Codes Reference table. |
Boolean |
Indicates the status of the operation. -Possible values are: +Possible values are:
|
+
+
errorCode | -Optional | -Number | -
- The error code for the failed operation. - |
+
+ Error Code + |
+
+ Error Text + |
+
+ Error Description + |
---|---|---|---|---|---|---|
errorText | -Optional | -String | +2, 3 ,4, 5 | +Check error details |
- The reason for the failure of the operation. See the 'API Error Codes Reference' section for details. +For details of a specific error, see the API Error Codes Reference table. |
errorCode | -Optional | -Number | -
- The error code for the failed operation. - |
+
+ Error Code + |
+
+ Error Text + |
+
+ Error Description + |
---|---|---|---|---|---|---|
errorText | -Optional | -String | +3 | +Check error details |
- The reason for the failure of the operation. See the 'API Error Codes Reference' section for details. +For details of a specific error, see the API Error Codes Reference table. |
Boolean |
Indicates the status of the operation. -Possible values are: +Possible values are:
|
+
+
errorCode | -Optional | -Number | -
- The error code for the failed operation. - |
+
+ Error Code + |
+
+ Error Text + |
+
+ Error Description + |
---|---|---|---|---|---|---|
errorText | -Optional | -String | +2, 3 | +Check error details |
- The reason for the failure of the operation. See the 'API Error Codes Reference' section for details. +For details of a specific error, see the API Error Codes Reference table. |
Boolean |
Indicates the status of the operation. -Possible values are: +Possible values are:
|
+
+
errorCode | -Optional | -Number | -
- The error code for the failed operation. - |
+
+ Error Code + |
+
+ Error Text + |
+
+ Error Description + |
---|---|---|---|---|---|---|
errorText | -Optional | -String | +3 | +Check error details |
- The reason for the failure of the operation. See the 'API Error Codes Reference' section for details. +For details of a specific error, see the API Error Codes Reference table. |
Required | String |
- Reason for the shutdown. Possible reasons are: +Reason for the shutdown. +Possible values are:
|
@@ -1427,21 +1427,14 @@ Required | Boolean |
- Indicates the status of operation. Possible values are: +Indicates the status of operation. +Possible values are:
|
-
errorText | -Optional | -String | -
- Indicates the reason for the failure of the operation. See the "Error Codes Reference" section of this method for details. - |
-
# luna-send -n 1 luna://com.webos.service.sleep/shutdown/machineOff '{"reason":"remoteKey"}'
-
Response:
{
"returnValue":true
@@ -1517,11 +1509,12 @@
The reason why caller wants to reboot the system. Possible reasons are:
+The reason why caller wants to reboot the system.
+Possible values are:
Indicates the status of operation. Possible values are:
+Indicates the status of operation.
+Possible values are:
Indicates the reason for the failure of the operation. See the "Error Codes Reference" section of this method for details.
-# luna-send -n 1 luna://com.webos.service.sleep/shutdown/machineReboot '{"reason":"reset"}'
-
Response:
{
"returnValue":true
@@ -1670,21 +1655,14 @@
Indicates the status of operation. Possible values are:
+Indicates the status of operation.
+Possible values are:
Indicates the reason for the failure of the operation. See the "Error Codes Reference" section of this method for details.
-The clientId parameter was not provided
+Client is not registered.
+# luna-send -n 1 luna://com.webos.service.sleep/shutdown/shutdownApplicationsAck '{"clientId":"/var/run/ls2/T4fb64.4"}'
-
Response:
{
"returnValue":true
@@ -1789,10 +1773,11 @@
Indicates the status of operation. Possible values are:
+Indicates the status of operation.
+Possible values are:
This is a unique token generated for this client by this method, which should be used by the caller for acknowledging the shutdownApplications signal later.
-Indicates the reason for the failure of the operation. See the "Error Codes Reference" section of this method for details.
-# luna-send -n 1 luna://com.webos.service.sleep/shutdown/shutdownApplicationsRegister '{"clientName":"facebook app"}'
-
Response:
{
"returnValue":true,
- "clientId":"/var/run/ls2/T4fb64.4"
+ "clientId":"5zUn94NP.2"
}
Indicates the status of operation. Possible values are:
+Indicates the status of operation.
+Possible values are:
Indicates the reason for the failure of the operation. See the "Error Codes Reference" section of this method for details.
-The clientId parameter was not provided
+The clientId parameter is not provided.
+Client is not registered.
Example scenario
# luna-send -n 1 luna://com.webos.service.sleep/shutdown/shutdownServicesAck '{"clientId":"/var/run/ls2/T4fb64.5"}'
-+
# luna-send -n 1 luna://com.webos.service.sleep/shutdown/shutdownServicesAck '{"clientId":"5zUn94NP.2"}'
Response:
{
"returnValue":true
@@ -2036,10 +2011,11 @@
Indicates the status of operation. Possible values are:
+Indicates the status of operation.
+Possible values are:
This is a unique token generated for this client by this method, which should be used by the caller for acknowledging the shutdownApplications signal later.
-Indicates the reason for the failure of the operation. See the "Error Codes Reference" section of this method for details.
-The clientName parameter was not provided
+The clientName parameter is not provided.
# luna-send -n 1 luna://com.webos.service.sleep/shutdown/shutdownServicesRegister '{"clientName":"facebook service"}'
-
Response:
{
"returnValue":true,
- "clientId":"/var/run/ls2/T4fb64.5"
+ "clientId":"5zUn94NP.2"
}
API level 29
API level 30
Removes an alarm by id.
+
+ Name + |
+
+ Required + |
+
+ Type + |
+
+ Description + |
+
---|---|---|---|
alarmId | +Required | +number | +id of the alarm to be removed. | +
+ Name + |
+
+ Required + |
+
+ Type + |
+
+ Description + |
+
---|---|---|---|
returnValue | +Required | +Boolean | +
+
|
+
+ Error Code + |
+
+ Error Text + |
+
+ Error Description + |
+
---|---|---|
-1 | +Malformed json. | +
+ InValid json format provided. + |
+
Example scenario
+1. luna-send -n 1 luna://com.webos.service.sleep/time/alarmRemove '{"alarmId":10}'
+Response:
+ {"returnValue":false}
+
2. luna-send -n 1 luna://com.webos.service.sleep/time/alarmRemove '{"alarmId":29}'
+
+ Response:
+ {"returnValue":true}
+
3. luna-send -n 1 luna://com.webos.service.sleep/time/alarmRemove '{"alarmId":""}'
+Response:
+ {"returnValue":false}
+
4. luna-send -n 1 luna://com.webos.service.sleep/time/alarmRemove '{}'
+Response:
+ {"returnValue":false}
+
5. luna-send -n 1 luna://com.webos.service.sleep/time/alarmRemove '{""}'
+Response:
+ {"returnValue":false, "errorCode":-1,"errorText":"Malformed json."}
+
6. luna-send -n 1 luna://com.webos.service.sleep/time/alarmRemove '{''}'
+Response:
+ {"returnValue":false}
+
7. luna-send -n 1 luna://com.webos.service.sleep/time/alarmRemove '{[]}'
+Response:
+ {"returnValue":false, "errorCode":-1,"errorText":"Malformed json."}
+
8. luna-send -n 1 luna://com.webos.service.sleep/time/alarmRemove '{"key":"k1"}'
+Response:
+ {"returnValue":false}
+
Called when an RTC alarm is fired.
None
Indicates the status of operation. Possible values are:
+Indicates the status of operation.
+Possible values are:
Unique identifier for the alarm
-Indicates the reason for the failure of the operation. See the "Error Codes Reference" section of this method for details.
-Example scenario
# luna-send -n 1 luna://com.webos.service.sleep/timeout/clear '{
- "key":"com.webos.service.activitymanager.wakeup"
- }'
-
+
# luna-send -n 1 luna://com.webos.service.sleep/timeout/clear '{"key":"com.webos.service.activitymanager.wakeup"}'
Response:
{
"returnValue":true,
@@ -3073,16 +3165,17 @@
Indicates the status of operation. Possible values are:
+Indicates the status of operation.
+Possible values are:
Unique key used to identify the alarm
@@ -3096,14 +3189,6 @@If the existing alarms have been kept
Indicates the reason for the failure of the operation.
-Error Description
+Invalid format of parameters.
+
Response:
{
"returnValue":true,
diff --git a/content/en/docs/reference/ls2-api/com-webos-service-systemservice.html b/content/en/docs/reference/ls2-api/com-webos-service-systemservice.html
index a1f03a56..f1b92120 100644
--- a/content/en/docs/reference/ls2-api/com-webos-service-systemservice.html
+++ b/content/en/docs/reference/ls2-api/com-webos-service-systemservice.html
@@ -1,7 +1,7 @@
---
title: com.webos.service.systemservice
-date: 2024-05-30
-api_level: 29
+date: 2024-10-30
+api_level: 30
weight: 310
toc: true
---
@@ -1805,21 +1805,14 @@
Indicates the status of operation. Possible values are:
+Indicates the status of operation.
+Possible values are:
Indicates the reason for the failure of the operation. See the "Error Codes Reference" section of this method for details.
-input file specification does not support non-local files (use file:///path/file or /path/file format)
Can not find file at current path
Failed to copy ringtone to media partition.
Note: The ringtone file needs to be copied manually to the target first.
@@ -1948,21 +1941,14 @@Indicates the status of operation. Possible values are:
+Indicates the status of operation.
+Possible values are:
Indicates the reason for the failure of the operation. See the "Error Codes Reference" section of this method for details.
-Specified file doesn't exist
specified file to path does not contain the name of file (for example "foo/bar/" but not "foo/bar.mp3")
Note: The ringtone file must be present in the location
@@ -5061,9 +5047,12 @@API level 11
API level 30
API level 30
API level 11
API level 30
API level 30
API level 11
API level 30
API level 30
+
Required | Boolean |
+ Indicates status of method execution. +Possible values are:
The method may fail because of one the error conditions described in the Error Codes Reference table of this method. See the Error Code Reference table for more information. - |
-
- ||
errorCode | -Optional | -Number | -
- errorCode contains the error code if the method fails. The method will return errorCode only if it fails. -See the Error Codes Reference of this method for more details. - |
- |
errorText | -Optional | -String | -
- errorText contains the error text if the method fails. The method will return errorText only if it fails. -See the Error Codes Reference of this method for more details. |
|
4 | -Connman service unavailable | +4, 5, 106, 107 | +Check error details |
- Error when webos-connman-adapter is not able to commmunicate with the connman daemon. - |
-
5 | -WiFi technology unavailable | -
- Error when the Wi-Fi technology is not available. -This could occur either because the wpa-supplicant daemon is not running, or connman is not able to communicate with wpa-supplicant or the device does not have Wi-Fi support. - |
- ||
106 | -No service is connecting currently | -
- There is no connection in progress, so this error indicates there is no connection to cancel. - |
- ||
107 | -Failed to disconnect currently connecting service | -
- Not able to disconnect currently connecting service due to unknown reasons. +For details of a specific error, see the 'API Error codes Reference' table. |
Required | Boolean |
+ Indicates status of method execution. +Possible values are:
The method may fail because of one the error conditions described in the Error Codes Reference table of this method. See the Error Code Reference table for more information. - |
-
-
errorCode | -Optional | -Number | -
- errorCode contains the error code if the method fails. The method will return errorCode only if it fails. -See the Error Codes Reference of this method for more details. - |
- |
errorText | -Optional | -String | -
- errorText contains the error text if the method fails. The method will return errorText only if it fails. -See the Error Codes Reference of this method for more details. |
|
4 | -Connman service unavailable | +4, 5, 110 | +Check error details |
- Error when webos-connman-adapter is not able to communicate with the connman daemon. - |
-
5 | -WiFi technology unavailable | -
- Error when the Wi-Fi technology is not available |
- ||
110 | -Error in cancelling WPS connection | -
- Error in the actual call for cancelling the WPS connection process. +For details of a specific error, see the 'API Error codes Reference' table. |
Required | Boolean |
- Indicates the status of operation. Possible values are: +Indicates the status of operation. +Possible values are:
|
-
errorCode | -Optional | -Number | -
- The error code for the failed operation. - |
- |
errorText | -Optional | -String | -
- Indicates the reason for the failure of the operation. See the "Error Codes Reference" section of this method for details. - |
-
Some unknown error in changing the passkey.
-Error when webos-connman-adapter is not able to talk to the connman daemon.
-Error when the Wi-Fi technology is not available.
-This could happen either because the wpa-supplicant daemon is not running, connman is not able to communicate with wpa-supplicant or the device does not have Wi-Fi support.
-Profile with the given profileId was not found.
+For details of a specific error, see the 'API Error codes Reference' table.
Indicates the status of operation. Possible values are:
+Indicates the status of operation.
+Possible values are:
The error code for the failed operation.
-Indicates the reason for the failure of the operation. See the "Error Codes Reference" section of this method for details.
-Connect failed due to unknown reasons.
-Error when neither the parameter SSID nor profileId was specified in the connect method call.
-Error when webos-connman-adapter is not able to communicate to the connman daemon.
-Error when the Wi-Fi technology is not available.
-This could happen either because the wpa-supplicant daemon is not running, connman is not able to communicate with wpa-supplicant or the device doesn't have Wi-Fi support.
+For details of a specific error, see the 'API Error codes Reference' table.
Indicates status of method execution.
+Possible values are:
The method may fail because of one the error conditions described in the Error Codes Reference table of this method. See the Error Code Reference table for more information.
-errorCode contains the error code if the method fails. The method will return errorCode only if it fails.
-See the Error Codes Reference of this method for more details.
-errorText contains the error text if the method fails. The method will return errorText only if it fails.
-See the Error Codes Reference of this method for more details.
An internal error occurred when parsing the JSON object being prepared as a response (extremely unlikely).
-Error when webos-connman-adapter is not able to communicate with the connman daemon.
-Error when the Wi-Fi technology is not available.
- This could happen either because the wpa-supplicant daemon is not running, or connman is not able to communicate with wpa-supplicant or the device does not have Wi-Fi support.
-
Error in opening /dev/urandom for random pin generation.
+For details of a specific error, see the 'API Error codes Reference' table.
Indicates the status of operation. Possible values are:
+Indicates the status of operation.
+Possible values are:
The error code for the failed operation.
-Indicates the reason for the failure of the operation. See the "Error Codes Reference" section of this method for details.
-Error when webos-connman-adapter is not able to communicate with the connman daemon.
-Error when the Wi-Fi technology is not available.
-This could happen either because the wpa-supplicant daemon is not running, or connman is not able to communicate with wpa-supplicant or the device does not have Wi-Fi support.
-Profile with the given profileId was not found.
+For details of a specific error, see the 'API Error codes Reference' table.
Subscribe for notifications of change in the list of found networks. Possible values are:
+Subscribe for notifications of change in the list of found networks.
+Possible values are:
Default value: false
Indicates if subscribed to get notifications. Possible values are:
+Indicates if subscribed to get notifications.
+Possible values are:
Indicates the status of operation. Possible values are:
+Indicates the status of operation.
+Possible values are:
The error code for the failed operation.
-Indicates the reason for the failure of the operation. See the "Error Codes Reference" section of this method for details.
-Indicates the status of operation. Possible values are:
+Indicates the status of operation.
+Possible values are:
Indicates if subscribed to get notifications. Possible values are:
+Indicates if subscribed to get notifications.
+Possible values are:
An internal error occurred when parsing the JSON object being prepared as a response (extremely unlikely).
-Error when webos-connman-adapter is not able to talk to the connman daemon.
-Error when the Wi-Fi technology is not available.
-This error can occur either because the wpa-supplicant daemon is not running, or connman is not able to communicate with wpa-supplicant or the device does not have Wi-Fi support.
-Error when Wi-Fi interface is down.
+For details of a specific error, see the 'API Error codes Reference' table.
API level 11
Subscribe for notifications of change in the list of found networks. Possible values are:
+Subscribe for notifications of change in the list of found networks.
+Possible values are:
Indicates the status of operation. Possible values are:
+Indicates the status of operation.
+Possible values are:
The error code for the failed operation
-Indicates the reason for the failure of the operation. See the "Error Codes Reference" section of this method for details.
-Indicates if subscribed to get notifications. Possible values are:
+Indicates if subscribed to get notifications.
+Possible values are:
Indicates the status of operation. Possible values are:
+Indicates the status of operation.
+Possible values are:
Indicates if subscribed to get notifications. Possible values are:
+Indicates if subscribed to get notifications.
+Possible values are:
An internal error occurred when parsing the JSON object being prepared as a response (extremely unlikely).
-Error when webos-connman-adapter is not able to communicate with the connman daemon.
-Error when the Wi-Fi technology is not available.
-This error can occur either because the wpa-supplicant daemon is not running, connman is not able to communicate with wpa-supplicant or the device does not have Wi-Fi support.
-Error when Wi-Fi interface is down.
+For details of a specific error, see the 'API Error codes Reference' table.
API level 11
Indicates the status of operation. Possible values are:
+Indicates the status of operation.
+Possible values are:
The error code for the failed operation.
-Indicates the reason for the failure of the operation. See the "Error Codes Reference" section of this method for details.
-An internal error occurred when parsing the JSON object being prepared as a response (extremely unlikely).
-Error when webos-connman-adapter is not able to communicate with the connman daemon.
-Error when the Wi-Fi technology is not available.
-This could happen either because the wpa-supplicant daemon is not running, or connman is not able to communicate with wpa-supplicant or the device does not have Wi-Fi support.
-A profile with the given profileId was not found.
+For details of a specific error, see the 'API Error codes Reference' table.
API level 11
Indicates the status of operation. Possible values are:
+Indicates the status of operation.
+Possible values are:
The error code for the failed operation.
-Indicates the reason for the failure of the operation. See the "Error Codes Reference" section of this method for details.
-An internal error occurred when parsing the JSON object being prepared as a response (extremely unlikely).
-Error when webos-connman-adapter is not able to communicate with the connman daemon.
-Error when the Wi-Fi technology is not available.
-This could happen either because the wpa-supplicant daemon is not running, or connman is not able to communicate with wpa-supplicant or the device does not have Wi-Fi support.
--
There are no stored Wi-Fi profiles on the system.
+For details of a specific error, see the 'API Error codes Reference' table.
Subscribe for notifications when Wi-Fi connection status changes. Possible values are:
+Subscribe for notifications when Wi-Fi connection status changes.
+Possible values are:
Indicates the status of the Wi-Fi. Possible values are:
+Indicates the status of the Wi-Fi.
+Possible values are:
Indicates if subscribed to get notifications. Possible values are:
+Indicates if subscribed to get notifications.
+Possible values are:
Indicates the status of operation. Possible values are:
+Indicates the status of operation.
+Possible values are:
The error code for the failed operation.
-Indicates the reason for the failure of the operation. See the "Error Codes Reference" section of this method for details.
-An internal error occurred when parsing the JSON object being prepared as a response (extremely unlikely).
-Error when webos-connman-adapter is not able to communicate with the connman daemon.
-Error when the Wi-Fi technology is not available.
-This could happen either because the wpa-supplicant daemon is not running, or connman is not able to communicate with wpa-supplicant or the device does not have Wi-Fi support.
+For details of a specific error, see the 'API Error codes Reference' table.
Indicates status of method execution.
+Possible values are:
The method may fail because of one the error conditions described in the Error Codes Reference table of this method. See the Error Code Reference table for more information.
-errorCode contains the error code if the method fails. The method will return errorCode only if it fails.
-See the Error Codes Reference of this method for more details.
-errorText contains the error text if the method fails. The method will return errorText only if it fails.
-See the Error Codes Reference of this method for more details.
API level 13
API level 13
API level 13
API level 13
API level 13
API level 13
API level 13
API level 13
Indicates the status of operation. Possible values are:
+Indicates the status of operation.
+Possible values are:
Indicates the reason for the failure of the operation. See the "Error Codes Reference" section of this method for details.
-The error code for the failed operation.
-An internal error occurred when parsing the JSON object being prepared as a response (extremely unlikely).
-Error when webos-connman-adapter is not able to communicate with the connman daemon.
-Error when the Wi-Fi technology is not available.
-This error can occur because the wpa-supplicant daemon is not running, connman is not able to communicate with wpa-supplicant or the device does not have Wi-Fi support.
-Error when Wi-Fi interface is down.
-Error occurred when trying to scan the Wi-Fi interface for networks.
-This error is returned when the scan method is called while clients are subscribed to the findnetworks method.
+For details of a specific error, see the 'API Error codes Reference' table.
Indicates whether to enable Wi-Fi. Possible values are:
+Indicates whether to enable Wi-Fi.
+Possible values are:
Note: Any other value will result in an error.
Indicates the status of operation. Possible values are:
+Indicates the status of operation.
+Possible values are:
The error code for the failed operation.
-Indicates the reason for the failure of the operation. See the "Error Codes Reference" section of this method for details.
-Error when webos-connman-adapter is not able to communicate with the connman daemon.
-Error when the Wi-Fi technology is not available.
-This could occur either because the wpa-supplicant daemon is not running, connman is not able to communicate with the wpa-supplicant or the device does not have Wi-Fi support.
-Error message when setting the state to enabled if the Wi-Fi is already enabled.
-Error message when setting the state to disabled if the Wi-Fi is already disabled.
+For details of a specific error, see the 'API Error codes Reference' table.
Indicates status of method execution.
+Possible values are:
The method may fail because of one the error conditions described in the Error Codes Reference table of this method. See the Error Code Reference table for more information.
-errorCode contains the error code if the method fails. The method will return errorCode only if it fails.
-See the Error Codes Reference of this method for more details.
-errorText contains the error text if the method fails. The method will return errorText only if it fails.
-See the Error Codes Reference of this method for more details.
Error in starting the WPS authentication process.
-Error when webos-connman-adapter is not able to communicate with the connman daemon.
-Error when the Wi-Fi technology is not available.
- This could happen either because the wpa-supplicant daemon is not running, or connman is not able to communicate with wpa-supplicant or the device does not have Wi-Fi support.
-
For details of a specific error, see the 'API Error codes Reference' table.
API level 11
API level 11
Error Description
+Some unknown error in changing the passkey.
+One or more parameters supplied were invalid.
Error when webos-connman-adapter is not able to communicate to the connman daemon.
+Error when the Wi-Fi technology is not available.
+This could happen either because the wpa-supplicant daemon is not running, connman is not able to communicate with wpa-supplicant, or the device doesn't have Wi-Fi support.
+Error when Wi-Fi interface is down.
+If the parameters passed to any method are not following the schema format.
Error message when setting the state to enabled if the Wi-Fi is already enabled.
+Error message when setting the state to disabled if the Wi-Fi is already disabled.
+Profile with the given profileId was not found.
+There is no connection in progress, so this error indicates there is no connection to cancel.
+Not able to disconnect currently connecting service due to unknown reasons.
+Error occurred when trying to scan the Wi-Fi interface for networks.
+Error in opening /dev/urandom for random pin generation.
+Error in the actual call for cancelling the WPS connection process.
+This error is returned when the scan method is called while clients are subscribed to the findnetworks method.
+Platform Version
Release Date
31
webOS OSE 2.27.0
November 01, 2024
30
Queue (Ref. Platform)
August 30, 2024
29
webOS OSE 2.26.0
Luna-service2 (LS2) provides a bus-based IPC mechanism used between components in webOS. It is composed of:
Sample Client Usage (calling the 'listContacts()' method from a registered service):
bool retVal; bool retVal;
+
LSError lserror;
LSErrorInit (&lserror);
LSMessageToken token = LSMESSAGE_TOKEN_INVALID;
@@ -23,11 +22,12 @@ Overview of the API
retVal = LSCallOneReply (serviceHandle, "luna://com.webos.contacts/category/listContacts","{\"json payload\"}", listContactsHandler, userData, &token, &lserror);
if (!retVal) goto done;
LSGmainAttach (serviceHandle, loop, &lserror);
- g_main_loop_run(loop);
Sample Service Usage
//callback //callback retVal = LSRegisterCategory (serviceHandle, "/category" , ipcMethods, NULL, NULL, &lserror); retVal = LSCategorySetData (serviceHandle, "/category" , userData, &lserror); retVal = LSGmainAttach (serviceHandle, mainLoop, &lserror); g_main_loop_run(mainLoop);
+
static bool listContacts( LSHandle *sh, LSMessage *message, void *categoryContext)
{
bool retVal;
@@ -50,43 +50,47 @@ Overview of the API
LSErrorInit (&lserror);
LSHandle *serviceHandle = NULL;
retVal = LSRegister ( "com.webos.contacts" , &serviceHandle, &lserror);
- if (!retVal) goto error;
- if (!retVal) goto error;
- if (!retVal) goto error;
- if (!retVal) goto error;
retVal = LSRegisterCategory (serviceHandle, "/category" , ipcMethods, NULL, NULL, &lserror);
+ if (!retVal) goto error;
+
retVal = LSCategorySetData (serviceHandle, "/category" , userData, &lserror);
+ if (!retVal) goto error;
+
retVal = LSGmainAttach (serviceHandle, mainLoop, &lserror);
+ if (!retVal) goto error;
+
g_main_loop_run(mainLoop);
+
Storing a message for replying in another thread.
Indicates process information object.
+None
LSCallCancel(LSHandle * sh, LSMessageToken token, LSError * lserror)
None
LSErrorInit(LSError * lserror)
None
LSMessageGetUniqueToken(LSMessage * message)
None
LSMessageIsHubErrorMessage(LSMessage * message)
None
LSMessagePrint(LSMessage * message, FILE * out)
Adds a subscription to a list associated with 'key'.
Note: The call may fail if the client has been disconnected. However, if the call succeeds, the code can install callback to get notification about client
- disconnection or call cancel via LSSubscriptionSetCancelFunction().
LSSubscriptionAdd(LSHandle * sh, const char * key, LSMessage * message, LSError * lserror)
None
LSSubscriptionHasNext(LSSubscriptionIter * iter)
None
LSSubscriptionRelease(LSSubscriptionIter * iter)
None
LSSubscriptionReply(LSHandle * sh, const char * key, const char * payload, LSError * lserror)
This API facilitates proxy luna calls.
Note: It is valid only for services that wish to act as mediators.
LSCallProxy(typedef LSHandle sh, const char * callee_exe, const char * callee_id , const char * callee_name, const char * uri, const char * payload, typedef LSFilterFunc callback, void * ctx, typedef LSMessageToken ret_token, struct LSError * lserror)
+LSCallProxy(typedef LSHandle sh, const char * callee_exe, const char * callee_id, const char * callee_name, const char * uri, const char * payload, typedef LSFilterFunc callback, void * ctx, typedef LSMessageToken ret_token, struct LSError * lserror)
callee_id | +callee_id | Required | const char * |
@@ -7750,4 +7763,4 @@ Returns |
None
+None
\ No newline at end of file diff --git a/content/en/docs/tools/sdk/cli/cli-release-notes.md b/content/en/docs/tools/sdk/cli/cli-release-notes.md index da981e9c..34a334f0 100644 --- a/content/en/docs/tools/sdk/cli/cli-release-notes.md +++ b/content/en/docs/tools/sdk/cli/cli-release-notes.md @@ -1,7 +1,7 @@ --- title: Release Notes display_title: Command-Line Interface Release Notes -date: 2024-09-10 +date: 2024-10-30 weight: 20 toc: true two_depth_toc: true @@ -42,7 +42,10 @@ The following table shows the compatibility between webOS OSE and CLI.3.1.0
3.0.2
3.0.2 or later
2.27.0
2.26.0
The config file is generated in your project folder. You can check the API level in the config file.
-If the API level in the config file is not supported by the current profile, an error notification will be displayed. Currently supported API levels in the OSE profile are 20, 21, 22, 23, 24, 25, 27, 28, 29. See also, API Levels
+If the API level in the config file is not supported by the current profile, an error notification will be displayed. Currently supported API levels in the OSE profile are 20-25, 27-29, and 31. See also, API Levels