Skip to content

Commit d300026

Browse files
committed
Merge branch 'release/1.16.5'
2 parents 058e470 + fa4089a commit d300026

File tree

3 files changed

+218
-203
lines changed

3 files changed

+218
-203
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,25 @@ All notable changes to this project will be documented in this file. Dates are d
44

55
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
66

7+
#### [1.16.5](https://github.com/rdkcentral/entservices-apis/compare/1.16.4...1.16.5)
8+
9+
- RDKEMW-3789: refactor ILEDControl plugin interface with proper LED state enum. [`#529`](https://github.com/rdkcentral/entservices-apis/pull/529)
10+
- rebase [`#547`](https://github.com/rdkcentral/entservices-apis/pull/547)
11+
- rebase [`#543`](https://github.com/rdkcentral/entservices-apis/pull/543)
12+
- rebase [`#531`](https://github.com/rdkcentral/entservices-apis/pull/531)
13+
- rebase [`#528`](https://github.com/rdkcentral/entservices-apis/pull/528)
14+
- rebase [`#520`](https://github.com/rdkcentral/entservices-apis/pull/520)
15+
- rebase [`#490`](https://github.com/rdkcentral/entservices-apis/pull/490)
16+
- Merge tag '1.16.4' into develop [`ad0130d`](https://github.com/rdkcentral/entservices-apis/commit/ad0130d7748db0dbe51afe2eda1badacf48ddf21)
17+
- RDKEMW-3789: update the LEDControlPlugin.md [`779375b`](https://github.com/rdkcentral/entservices-apis/commit/779375bf984b7fc83d0371be3e18a8d8b3297bbc)
18+
- RDKEMW-3789: clean up the ILEDControl header [`995545c`](https://github.com/rdkcentral/entservices-apis/commit/995545c8f962a40ecf57f26b84324cf9a70a9abb)
19+
720
#### [1.16.4](https://github.com/rdkcentral/entservices-apis/compare/1.16.3...1.16.4)
821

22+
> 23 September 2025
23+
924
- RDKEMW-6916: Create documentation for AppManager [`#538`](https://github.com/rdkcentral/entservices-apis/pull/538)
25+
- 1.16.4 release changelog updates [`dd0dcd7`](https://github.com/rdkcentral/entservices-apis/commit/dd0dcd7e2d38c2876e422d791b5122faa58bfe89)
1026
- Merge tag '1.16.3' into develop [`7b3edec`](https://github.com/rdkcentral/entservices-apis/commit/7b3edeccb63d476d2d6c2a29f98798101151d2ba)
1127

1228
#### [1.16.3](https://github.com/rdkcentral/entservices-apis/compare/1.16.2...1.16.3)

apis/LEDControl/ILEDControl.h

Lines changed: 28 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,26 +33,42 @@ namespace WPEFramework
3333

3434
using IStringIterator = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
3535

36-
struct EXTERNAL LEDControlState {
37-
string state;
36+
virtual ~ILEDControl() = default;
37+
38+
enum LEDControlState : uint8_t {
39+
LEDSTATE_NONE = 0 /* @text NONE */,
40+
LEDSTATE_ACTIVE /* @text ACTIVE */,
41+
LEDSTATE_STANDBY /* @text STANDBY */,
42+
LEDSTATE_WPS_CONNECTING /* @text WPS_CONNECTING */,
43+
LEDSTATE_WPS_CONNECTED /* @text WPS_CONNECTED */,
44+
LEDSTATE_WPS_ERROR /* @text WPS_ERROR */,
45+
LEDSTATE_FACTORY_RESET /* @text FACTORY_RESET */,
46+
LEDSTATE_USB_UPGRADE /* @text USB_UPGRADE */,
47+
LEDSTATE_DOWNLOAD_ERROR /* @text DOWNLOAD_ERROR */,
48+
LEDSTATE_MAX /* @text MAX */
49+
};
50+
51+
// Struct to wrap LEDControlState for API compatibility
52+
struct EXTERNAL LEDState {
53+
LEDControlState state;
3854
};
3955

4056
// @text getSupportedLEDStates
41-
// @brief Returns all the LED states supported by the platform
42-
// @param supportedLEDStates - out - string [] of supported LED states
43-
// @param success - out - boolean
57+
// @details Returns the list of LED states that are actually supported by the platform at runtime. Possible values include `NONE`, `ACTIVE`, `STANDBY`, `WPS_CONNECTING`, `WPS_CONNECTED`, `WPS_ERROR`, `FACTORY_RESET`, `USB_UPGRADE` and `DOWNLOAD_ERROR`.
58+
// @param supportedLEDStates: string [] of supported LED states. e.g. "['ACTIVE', 'STANDBY', 'WPS_CONNECTING', 'WPS_CONNECTED', 'WPS_ERROR', 'FACTORY_RESET', 'USB_UPGRADE', 'DOWNLOAD_ERROR']"
59+
// @param success: boolean
4460
virtual Core::hresult GetSupportedLEDStates(IStringIterator*& supportedLEDStates /* @out */, bool& success /* @out */) = 0;
4561

4662
// @text getLEDState
47-
// @brief Returns current LED state.
48-
// @param LEDControlState - out
49-
virtual Core::hresult GetLEDState(LEDControlState& ledState /* @out */) = 0;
63+
// @brief Retrieves current state of the LED. e.g. {"state":"WPS_CONNECTING"}
64+
// @param ledState: LEDState
65+
virtual Core::hresult GetLEDState(LEDState& ledState /* @out */) = 0;
5066

5167
// @text setLEDState
52-
// @brief Change the device LED state to one mentioned in the input argument.
53-
// @param state - in - string
54-
// @param success - out - boolean
55-
virtual Core::hresult SetLEDState(const string& state, bool& success /* @out */) = 0;
68+
// @brief Sets the device LED to a requested state from those available in `GetSupportedLEDStates`.
69+
// @param state: LEDControlState. e.g. "FACTORY_RESET"
70+
// @param success: boolean
71+
virtual Core::hresult SetLEDState(const LEDControlState& state, bool& success /* @out */) = 0;
5672
};
5773
} // namespace Exchange
5874
} // namespace WPEFramework

0 commit comments

Comments
 (0)