@signageos/front-applet 8.2.1 → 8.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/dist/bundle.js +1 -1
  2. package/dist/bundle.js.map +1 -1
  3. package/docs/index.md +9 -9
  4. package/docs/sos/browser.md +11 -3
  5. package/docs/sos/display.md +13 -20
  6. package/docs/sos/fileSystem.md +31 -6
  7. package/docs/sos/hardware/barcodeScanner.md +9 -0
  8. package/docs/sos/hardware/index.md +9 -0
  9. package/docs/sos/native/mdc.md +8 -3
  10. package/docs/sos/osd.md +9 -0
  11. package/docs/sos/video.md +9 -0
  12. package/docs/sos_management/app.md +97 -18
  13. package/docs/sos_management/audio.md +43 -2
  14. package/docs/sos_management/autoRecovery.md +101 -0
  15. package/docs/sos_management/debug.md +84 -1
  16. package/docs/sos_management/firmware.md +64 -1
  17. package/docs/sos_management/index.md +217 -19
  18. package/docs/sos_management/network.md +84 -29
  19. package/docs/sos_management/os.md +59 -4
  20. package/docs/sos_management/package.md +25 -3
  21. package/docs/sos_management/power.md +142 -18
  22. package/docs/sos_management/proxy.md +54 -3
  23. package/docs/sos_management/remoteControl.md +55 -4
  24. package/docs/sos_management/screen.md +140 -29
  25. package/docs/sos_management/security.md +48 -5
  26. package/docs/sos_management/time.md +76 -9
  27. package/docs/sos_management/wifi.md +207 -45
  28. package/es6/FrontApplet/Browser/Browser.d.ts +11 -3
  29. package/es6/FrontApplet/Browser/Browser.js +11 -3
  30. package/es6/FrontApplet/Browser/Browser.js.map +1 -1
  31. package/es6/FrontApplet/Command/Command.js +1 -0
  32. package/es6/FrontApplet/Command/Command.js.map +1 -1
  33. package/es6/FrontApplet/Display/Display.d.ts +14 -19
  34. package/es6/FrontApplet/Display/Display.js +14 -19
  35. package/es6/FrontApplet/Display/Display.js.map +1 -1
  36. package/es6/FrontApplet/FileSystem/FileSystem.d.ts +27 -5
  37. package/es6/FrontApplet/FileSystem/FileSystem.js +27 -5
  38. package/es6/FrontApplet/FileSystem/FileSystem.js.map +1 -1
  39. package/es6/FrontApplet/Hardware/BarcodeScanner/BarcodeScanner.d.ts +9 -0
  40. package/es6/FrontApplet/Hardware/BarcodeScanner/BarcodeScanner.js +9 -0
  41. package/es6/FrontApplet/Hardware/BarcodeScanner/BarcodeScanner.js.map +1 -1
  42. package/es6/FrontApplet/Hardware/Hardware.d.ts +9 -0
  43. package/es6/FrontApplet/Hardware/Hardware.js +9 -0
  44. package/es6/FrontApplet/Hardware/Hardware.js.map +1 -1
  45. package/es6/FrontApplet/Management/App/App.d.ts +53 -17
  46. package/es6/FrontApplet/Management/App/App.js +23 -12
  47. package/es6/FrontApplet/Management/App/App.js.map +1 -1
  48. package/es6/FrontApplet/Management/App/IApp.d.ts +3 -0
  49. package/es6/FrontApplet/Management/Audio/Audio.d.ts +24 -3
  50. package/es6/FrontApplet/Management/Audio/Audio.js +24 -3
  51. package/es6/FrontApplet/Management/Audio/Audio.js.map +1 -1
  52. package/es6/FrontApplet/Management/AutoRecovery/AutoRecovery.d.ts +49 -3
  53. package/es6/FrontApplet/Management/AutoRecovery/AutoRecovery.js +49 -3
  54. package/es6/FrontApplet/Management/AutoRecovery/AutoRecovery.js.map +1 -1
  55. package/es6/FrontApplet/Management/Debug/Debug.d.ts +44 -2
  56. package/es6/FrontApplet/Management/Debug/Debug.js +43 -1
  57. package/es6/FrontApplet/Management/Debug/Debug.js.map +1 -1
  58. package/es6/FrontApplet/Management/Firmware/Firmware.d.ts +41 -4
  59. package/es6/FrontApplet/Management/Firmware/Firmware.js +33 -0
  60. package/es6/FrontApplet/Management/Firmware/Firmware.js.map +1 -1
  61. package/es6/FrontApplet/Management/Management.d.ts +119 -21
  62. package/es6/FrontApplet/Management/Management.js +119 -22
  63. package/es6/FrontApplet/Management/Management.js.map +1 -1
  64. package/es6/FrontApplet/Management/Network/Network.d.ts +44 -25
  65. package/es6/FrontApplet/Management/Network/Network.js +28 -14
  66. package/es6/FrontApplet/Management/Network/Network.js.map +1 -1
  67. package/es6/FrontApplet/Management/OS/IOS.d.ts +3 -0
  68. package/es6/FrontApplet/Management/OS/OS.d.ts +32 -4
  69. package/es6/FrontApplet/Management/OS/OS.js +32 -4
  70. package/es6/FrontApplet/Management/OS/OS.js.map +1 -1
  71. package/es6/FrontApplet/Management/Package/Package.d.ts +18 -3
  72. package/es6/FrontApplet/Management/Package/Package.js +18 -4
  73. package/es6/FrontApplet/Management/Package/Package.js.map +1 -1
  74. package/es6/FrontApplet/Management/Power/IPower.d.ts +3 -0
  75. package/es6/FrontApplet/Management/Power/IPower.js.map +1 -1
  76. package/es6/FrontApplet/Management/Power/Power.d.ts +67 -20
  77. package/es6/FrontApplet/Management/Power/Power.js +70 -24
  78. package/es6/FrontApplet/Management/Power/Power.js.map +1 -1
  79. package/es6/FrontApplet/Management/Proxy/Proxy.d.ts +28 -3
  80. package/es6/FrontApplet/Management/Proxy/Proxy.js +28 -3
  81. package/es6/FrontApplet/Management/Proxy/Proxy.js.map +1 -1
  82. package/es6/FrontApplet/Management/RemoteControl/RemoteControl.d.ts +23 -5
  83. package/es6/FrontApplet/Management/RemoteControl/RemoteControl.js +23 -5
  84. package/es6/FrontApplet/Management/RemoteControl/RemoteControl.js.map +1 -1
  85. package/es6/FrontApplet/Management/Screen/Screen.d.ts +77 -32
  86. package/es6/FrontApplet/Management/Screen/Screen.js +65 -26
  87. package/es6/FrontApplet/Management/Screen/Screen.js.map +1 -1
  88. package/es6/FrontApplet/Management/Security/Security.d.ts +25 -7
  89. package/es6/FrontApplet/Management/Security/Security.js +25 -7
  90. package/es6/FrontApplet/Management/Security/Security.js.map +1 -1
  91. package/es6/FrontApplet/Management/Time/Time.d.ts +47 -11
  92. package/es6/FrontApplet/Management/Time/Time.js +29 -7
  93. package/es6/FrontApplet/Management/Time/Time.js.map +1 -1
  94. package/es6/FrontApplet/Management/Wifi/IWifi.d.ts +3 -0
  95. package/es6/FrontApplet/Management/Wifi/IWifi.js.map +1 -1
  96. package/es6/FrontApplet/Management/Wifi/Wifi.d.ts +137 -42
  97. package/es6/FrontApplet/Management/Wifi/Wifi.js +137 -42
  98. package/es6/FrontApplet/Management/Wifi/Wifi.js.map +1 -1
  99. package/es6/FrontApplet/NativeCommands/MDC/Mdc.d.ts +8 -3
  100. package/es6/FrontApplet/NativeCommands/MDC/Mdc.js +8 -3
  101. package/es6/FrontApplet/NativeCommands/MDC/Mdc.js.map +1 -1
  102. package/es6/FrontApplet/OSD/OSD.d.ts +9 -0
  103. package/es6/FrontApplet/OSD/OSD.js +9 -0
  104. package/es6/FrontApplet/OSD/OSD.js.map +1 -1
  105. package/es6/FrontApplet/Video/Video.d.ts +9 -0
  106. package/es6/FrontApplet/Video/Video.js +9 -0
  107. package/es6/FrontApplet/Video/Video.js.map +1 -1
  108. package/package.json +1 -1
@@ -6,11 +6,23 @@ sidebar_position: 0
6
6
 
7
7
  The `sos.management.time` API groups together methods for working with the system time.
8
8
 
9
+ <details>
10
+ <summary>Time Management Capabilities</summary>
11
+ | Capability | Description |
12
+ |:------------|:-------------|
13
+ | `SET_TIME` | If the device can set the system time. |
14
+ | `SET_TIMEZONE` | If the device can set the system timezone. |
15
+ | `GET_TIMEZONE` | If the device can get the system timezone. |
16
+ | `NTP_TIME` | If the device can set the NTP server and system timezone. |
17
+
18
+ If you want to check if the device supports those capabilities, use [`sos.management.supports()`](https://developers.signageos.io/sdk/sos_management/#supports).
19
+ </details>
20
+
9
21
  ## Methods
10
22
 
11
23
  ### get()
12
24
 
13
- The `get()` method returns currently set time info.
25
+ The `get()` method returns the currently set time from the device.
14
26
 
15
27
  ```ts expandable
16
28
  get(): Promise<IGetTime>;
@@ -23,6 +35,21 @@ interface IGetTime {
23
35
 
24
36
  ```
25
37
 
38
+ #### Return value
39
+
40
+ A promise that resolves to the current time with timezone.
41
+
42
+ #### Possible errors
43
+
44
+ If the time cannot be retrieved.
45
+
46
+ #### Example
47
+
48
+ ```ts
49
+ const currentTime = await sos.management.time.get();
50
+ console.log(`Current time is: ${currentTime.currentDate} in timezone ${currentTime.timezone}`);
51
+ ```
52
+
26
53
  <Separator />
27
54
 
28
55
  ### setManual(dateTime, timezone)
@@ -30,12 +57,10 @@ interface IGetTime {
30
57
  The `setManual()` method sets the system time and the system timezone and disables NTP server settings.
31
58
 
32
59
  :::warning Setting NTP server and timezone has side effects
33
-
34
60
  - **Tizen**: After calling this API, display Reboots!
35
- Tizen has limited set of available timezones. Read more here.
36
- - **RaspberryPi**: After calling this API, RPi Reboots backend server which can take up to 60 seconds! During the reboot no JS API is
61
+ Tizen has a limited set of available timezones. [Read more here](https://docs.signageos.io/hc/en-us/articles/4405381271314-Tizen-Timezones-Limited-List-for-NTP).
62
+ - **RaspberryPi**: After calling this API, RPi Reboots the backend server, which can take up to 60 seconds! During the reboot, no JS API is
37
63
  available. **Always wait for Promise resolution.**
38
-
39
64
  :::
40
65
 
41
66
  ```ts expandable
@@ -62,6 +87,32 @@ interface DateTime {
62
87
  | `dateTime` | `DateTime` | <div>Yes</div> | The date and time to set. |
63
88
  | `timezone` | `string` | <div>Yes</div> | The timezone to set. |
64
89
 
90
+ #### Return value
91
+
92
+ A promise that resolves when the time is successfully set.
93
+
94
+ #### Possible errors
95
+
96
+
97
+ - If `dateTime` is not a valid Date or DateTime object.
98
+ - If `timezone` is not a valid string.
99
+ - If the time cannot be set.
100
+
101
+ #### Example
102
+
103
+ ```ts
104
+ // Set the system time to 2023-10-01T12:00:00 in Europe/Prague timezone
105
+ const dateTime = {
106
+ year: 2023,
107
+ month: 10,
108
+ day: 1,
109
+ hour: 12,
110
+ minute: 0,
111
+ second: 0,
112
+ }
113
+ await sos.management.time.setManual(dateTime, 'Europe/Prague');
114
+ ```
115
+
65
116
  <Separator />
66
117
 
67
118
  ### setNTP()
@@ -69,12 +120,10 @@ interface DateTime {
69
120
  The `setNTP()` method sets the NTP server and the system timezone.
70
121
 
71
122
  :::warning Setting NTP server and timezone has side effects
72
-
73
123
  - **Tizen / WebOS**: After calling this API, display Reboots!
74
- Tizen has limited set of available timezones. Read more here.
75
- - **RaspberryPi**: After calling this API, RPi Reboots backend server which can take up to 60 seconds! During the reboot no JS API is
124
+ Tizen has a limited set of available timezones. [Read more here](https://docs.signageos.io/hc/en-us/articles/4405381271314-Tizen-Timezones-Limited-List-for-NTP).
125
+ - **RaspberryPi**: After calling this API, RPi Reboots the backend server, which can take up to 60 seconds! During the reboot, no JS API is
76
126
  available. **Always wait for Promise resolution.**
77
-
78
127
  :::
79
128
 
80
129
  ```ts expandable
@@ -88,6 +137,24 @@ setNTP(ntpServer: string, timezone: string): Promise<void>;
88
137
  | `ntpServer` | `string` | <div>Yes</div> | The NTP server to set. |
89
138
  | `timezone` | `string` | <div>Yes</div> | The timezone to set. |
90
139
 
140
+ #### Return value
141
+
142
+ A promise that resolves when the NTP server and timezone are successfully set.
143
+
144
+ #### Possible errors
145
+
146
+
147
+ - If `ntpServer` is not a valid string.
148
+ - If `timezone` is not a valid string.
149
+ - If the NTP server and timezone cannot be set.
150
+
151
+ #### Example
152
+
153
+ ```ts
154
+ // Set the NTP server to `pool.ntp.org` and timezone to `Europe/Prague`
155
+ await sos.management.time.setNTP('pool.ntp.org', 'Europe/Prague');
156
+ ```
157
+
91
158
  <Separator />
92
159
 
93
160
  ### ~set()~
@@ -4,40 +4,52 @@ sidebar_position: 0
4
4
 
5
5
  # wifi
6
6
 
7
- The `sos.management.wifi` API groups together methods for managing Wi-Fi.
8
-
9
- :::info
10
-
11
- Use `sos.management.supports('WIFI')` to check if the device supports managing Wi-Fi setup.
12
-
13
- :::
7
+ The `sos.management.wifi` API groups together methods for managing Wi-Fi setup on the device.
14
8
 
15
9
  #### Internal state
16
10
 
17
11
  The `sos.management.wifi` API may be in 3 states:
18
12
 
19
13
  - `disabled` - Wi-Fi is disabled. This state is persistent between reboots.
20
- - `client` - Wi-Fi is in the client state, i.e. it is capable of connecting to a network, similarly to a phone or laptop. This state is persistent between reboots with all of its configuration.
21
- - `ap` - Wi-Fi is in access point state, i.e. it itself becomes a Wi-Fi network that others can connect to. This state is persistent between reboots and will be switched to DISABLED state.
14
+ - `client` - Wi-Fi is in the client state, i.e., it is capable of connecting to a network, similarly to a phone or laptop. This state is persistent between reboots with all of its configuration.
15
+ - `ap` - Wi-Fi is in access point state, i.e., it itself becomes a Wi-Fi network that others can connect to. This state persists between reboots and will be switched to the DISABLED state.
22
16
 
23
- You can use `enableClient()`/`disableClient()` method to enable
24
- or disable the `client` state or you can use `enableAP()`/`disableAP()` to enable or disable the `ap` state. It is **not** possible to go
17
+ You can use `enableClient()`/`disable()` method to enable
18
+ or disable the `client` state, or you can use `enableAP()`/`disableAP()` to turn on or off the `ap` state. It is **not** possible to go
25
19
  from `client` state to `ap` state directly, the state has to be `disabled` first.
26
20
 
21
+ <details>
22
+ <summary>Wi-Fi Management Capabilities</summary>
23
+ | Capability | Description |
24
+ |:------------|:-------------|
25
+ | `WIFI` | If device supports Wi-Fi setup connection |
26
+ | `WIFI_SCAN` | If device supports Wi-Fi scanning |
27
+ | `WIFI_AP` | If device supports Wi-Fi Access Point setup |
28
+ | `WIFI_STRENGTH` | If device supports Wi-Fi signal strength measurement |
29
+ | `WIFI_COUNTRY` | If device supports Wi-Fi country code configuration |
30
+
31
+ If you want to check if the device supports those capabilities, use [`sos.management.supports()`](https://developers.signageos.io/sdk/sos_management/#supports).
32
+ </details>
33
+
27
34
  ## Methods
28
35
 
29
36
  ### connect()
30
37
 
31
- The `connect()` method connects the device to a specified network.
38
+ The `connect()` method connects the device to a specified Wi-Fi network.
39
+
40
+ :::danger
41
+ On Tizen, make sure that the connection credentials are correct. If the device fails to connect, it will not retry automatically.
42
+ Make sure that you have a backup script or a checking mechanism in place, which will allow you to recover from the situation if the connection fails.
43
+ :::
32
44
 
33
45
  :::warning
34
- Connecting to a OPEN Wi-Fi network for Tizen and WebOS is different.
35
- - For Tizen, make sure that the `password` is an empty string (`''`) and in options you have selected `OPEN` as encryption type.
46
+ Connecting to an OPEN Wi-Fi network for Tizen and WebOS is different.
47
+ - For Tizen, make sure that the `password` is an empty string (`''`) and in the options you have selected `OPEN` as encryption type.
36
48
  - For WebOS, you can pass `undefined` as the `password` parameter.
37
49
  :::
38
50
 
39
51
  :::info
40
- Security type of Wi-Fi is mandatory for Tizen.
52
+ The security type of Wi-Fi is mandatory for Tizen.
41
53
  :::
42
54
 
43
55
  ```ts expandable
@@ -54,33 +66,40 @@ type WifiEncryptionType = 'OPEN' | 'WEP' | 'WPA2' | 'WPA2_WPA_MIXED' | 'WPA3' |
54
66
 
55
67
  #### Params
56
68
 
57
- | Name | Type | Required | Description |
58
- |------------|-----------------------|------------------|----------------------------------------------------------------------------|
59
- | `ssid` | `string` | <div>Yes</div> | Name of the network, max. allowed length is 32 characters. |
60
- | `password` | `string` | <div>No</div> | Password of the device, must be between 8 and 32 characters. |
61
- | `options` | `IWifiConnectOptions` | <div>No</div> | Additional options for the connection, such as `hidden` or `securityType`. |
69
+ | Name | Type | Required | Description |
70
+ |------------------------|-----------------------|------------------|--------------------------------------------------------------|
71
+ | `ssid` | `string` | <div>Yes</div> | Name of the network, max. allowed length is 32 characters. |
72
+ | `password` | `string` | <div>No</div> | Password of the device, must be between 8 and 32 characters. |
73
+ | `options` | `IWifiConnectOptions` | <div>No</div> | Additional options for the connection. |
74
+ | `options.hidden` | `boolean` | <div>No</div> | If the network is hidden, defaults to `false`. |
75
+ | `options.securityType` | `WifiEncryptionType` | <div>No</div> | The security type of the network. |
62
76
 
63
77
  #### Return value
64
78
 
65
- A promise that resolves when the connection is established or if connection fails.
79
+ A promise that resolves when the connection is established or if the connection fails.
66
80
 
67
81
  #### Possible errors
68
82
 
69
- Error If the Wi-Fi state is not in the `client` state.
83
+
84
+ - Error If the Wi-Fi state is not in the `client` state.
85
+ - Error If the `ssid` is not a string or is empty.
86
+ - Error If the `password` is not a string or is empty (if required).
87
+ - Error If the `options` is not an object or does not match the expected schema.
88
+ - Error If the `securityType` is not one of the allowed values.
70
89
 
71
90
  #### Example
72
91
 
73
92
  ```ts
74
- // To connect on open Wi-Fi network ex. WebOS
93
+ // To connect to an open Wi-Fi network, e.g., WebOS
75
94
  await sos.management.wifi.connect('MyOpenNetwork');
76
95
 
77
- // To connect on open Wi-Fi network with empty password (Tizen)
96
+ // To connect an open Wi-Fi network with an empty password (Tizen)
78
97
  await sos.management.wifi.connect('MyOpenNetwork', '', { securityType: 'OPEN' });
79
98
 
80
99
  // If the network is hidden
81
100
  await sos.management.wifi.connect('MyOpenNetwork', undefined, { hidden: true });
82
101
 
83
- // To connect on encrypted Wi-Fi network with WPA2 security
102
+ // To connect to an encrypted Wi-Fi network with WPA2 security
84
103
  await sos.management.wifi.connect('MyEncryptedNetwork', 'my-password', { securityType: 'WPA2' });
85
104
  ```
86
105
 
@@ -88,7 +107,7 @@ await sos.management.wifi.connect('MyEncryptedNetwork', 'my-password', { securit
88
107
 
89
108
  ### disable()
90
109
 
91
- The `disable()` method switches the Wi-Fi state to `disabled` and disconnect from connected Wi-Fi.
110
+ The `disable()` method switches the Wi-Fi state to `disabled` and disconnects from the connected Wi-Fi.
92
111
 
93
112
  All previously configured networks will be forgotten.
94
113
 
@@ -96,28 +115,55 @@ All previously configured networks will be forgotten.
96
115
  disable(): Promise<void>;
97
116
  ```
98
117
 
118
+ #### Return value
119
+
120
+ A promise that resolves when the Wi-Fi is disabled.
121
+
122
+ #### Possible errors
123
+
124
+ Error If the Wi-Fi state is in the `client` or `ap` state.
125
+
126
+ #### Example
127
+
128
+ ```ts
129
+ await sos.management.wifi.disable();
130
+ ```
131
+
99
132
  <Separator />
100
133
 
101
134
  ### disconnect()
102
135
 
103
- The `disconnect()` method disconnects the device from Wi-Fi network.
136
+ The `disconnect()` method disconnects the device from the Wi-Fi network.
137
+ This method will not disable the Wi-Fi client; it will just disconnect from the currently connected network.
104
138
 
105
139
  ```ts expandable
106
140
  disconnect(): Promise<void>;
107
141
  ```
108
142
 
143
+ #### Return value
144
+
145
+ A promise that resolves when the device is disconnected from the network.
146
+
109
147
  #### Possible errors
110
148
 
111
149
  Error If the Wi-Fi state is not in the `client` state.
112
150
 
151
+ #### Example
152
+
153
+ ```ts
154
+ await sos.management.wifi.disconnect();
155
+ ```
156
+
113
157
  <Separator />
114
158
 
115
159
  ### enableAP()
116
160
 
117
- The `enableAP()` method switches the Wi-Fi state from `disabled` to `ap` state.
161
+ Sets Wi-Fi to AP state, meaning the device will become a Wi-Fi network that other devices can connect to. It will run in WPA-Personal mode. As such, it requires an SSID (network name) and a password that different devices will use to connect.
118
162
 
119
- :::info
120
- Use `sos.management.supports('WIFI_AP')` to check if the device is able to be in the `ap` mode.
163
+ :::note
164
+ - This method is only available on the Linux platform.
165
+ - It is not allowed to call this method when in the CLIENT state. You must first switch to the **DISABLED** state.
166
+ - Before calling this method, make sure the device supports Wi-Fi AP via `sos.management.supports("WIFI_AP")`
121
167
  :::
122
168
 
123
169
  ```ts expandable
@@ -131,10 +177,20 @@ enableAP(ssid: string, password: string): Promise<void>;
131
177
  | `ssid` | `string` | <div>Yes</div> | Name of the network, max. allowed length is 32 characters. |
132
178
  | `password` | `string` | <div>Yes</div> | Password of the device, must be between 8 and 32 characters. |
133
179
 
180
+ #### Return value
181
+
182
+ A promise that resolves when the Wi-Fi is enabled in AP mode.
183
+
134
184
  #### Possible errors
135
185
 
136
186
  Error If the Wi-Fi state is in the `client` state.
137
187
 
188
+ :::note[GitHub Example]
189
+
190
+ - [ Example applet with Wi-Fi access point](https://github.com/signageos/applet-examples/tree/master/examples/management-js-api/wifi-access-point)
191
+
192
+ :::
193
+
138
194
  <Separator />
139
195
 
140
196
  ### enableClient()
@@ -145,6 +201,10 @@ The `enabledClient()` method switches the Wi-Fi state from `disabled` to `client
145
201
  enableClient(): Promise<void>;
146
202
  ```
147
203
 
204
+ #### Return value
205
+
206
+ A promise that resolves when the Wi-Fi is enabled in client mode.
207
+
148
208
  #### Possible errors
149
209
 
150
210
  Error If the Wi-Fi state is in the `ap` state.
@@ -153,7 +213,7 @@ Error If the Wi-Fi state is in the `ap` state.
153
213
 
154
214
  ### getConnectedTo()
155
215
 
156
- The `getConnectedTo()` method returns a network the device is currently connected to.
216
+ The `getConnectedTo()` method returns the network the device is currently connected to.
157
217
 
158
218
  ```ts expandable
159
219
  getConnectedTo(): Promise<IWifiDevice | null>;
@@ -187,9 +247,9 @@ console.log(`Connected to SSID: ${connectedTo?.ssid}, Strength: ${connectedTo?.s
187
247
 
188
248
  ### getCountry()
189
249
 
190
- The `getCountry()` method returns the 2-letter country code to which Wi-Fi regulations the device adheres to. Different countries may
191
- have different regulations, when it comes to the Wi-Fi networks. Under normal circumstances, everything should work with default
192
- settings. However, if you experience any problems, you might want to try changing Wi-Fi country configuration to your country.
250
+ The `getCountry()` method returns the 2-letter country code to which Wi-Fi regulations the device adheres. Different countries may
251
+ have different regulations when it comes to the Wi-Fi networks. Under normal circumstances, everything should work with the default
252
+ settings. However, if you experience any problems, you might want to try changing the Wi-Fi country configuration to your country.
193
253
 
194
254
  ```ts expandable
195
255
  getCountry(): Promise<string | null>;
@@ -197,12 +257,19 @@ getCountry(): Promise<string | null>;
197
257
 
198
258
  #### Return value
199
259
 
200
- The 2-letter country code from the ISO 3166 standard, or `null` if not set.
260
+ A promise that resolves to the 2-letter country code from the ISO 3166 standard, or `null` if not set.
201
261
 
202
262
  #### Possible errors
203
263
 
204
264
  Error If the Wi-Fi state is not in the `client` state.
205
265
 
266
+ #### Example
267
+
268
+ ```ts
269
+ const countryCode = await sos.management.wifi.getCountry();
270
+ console.log(`Current Wi-Fi country code is: ${countryCode}`); // e.g. 'US', 'CZ', etc.
271
+ ```
272
+
206
273
  <Separator />
207
274
 
208
275
  ### isAPEnabled()
@@ -215,7 +282,7 @@ isAPEnabled(): Promise<boolean>;
215
282
 
216
283
  #### Return value
217
284
 
218
- if AP mode is enabled.
285
+ If AP mode is enabled.
219
286
 
220
287
  <Separator />
221
288
 
@@ -235,6 +302,15 @@ if client mode is enabled.
235
302
 
236
303
  Error If the Wi-Fi state is in the `ap` state.
237
304
 
305
+ #### Example
306
+
307
+ ```ts
308
+ const isClientEnabled = await sos.management.wifi.isClientEnabled();
309
+ if (!isClientEnabled) {
310
+ await sos.management.wifi.enableClient();
311
+ }
312
+ ```
313
+
238
314
  <Separator />
239
315
 
240
316
  ### on()
@@ -273,6 +349,25 @@ enum WifiEvent {
273
349
 
274
350
  ```
275
351
 
352
+ #### Params
353
+
354
+ | Name | Type | Required | Description |
355
+ |------------|--------------|------------------|------------------------------------------------------|
356
+ | `event` | `WifiEvent` | <div>Yes</div> | The event for which to set up the listener. |
357
+ | `listener` | `() => void` | <div>Yes</div> | The listener function to call when the event occurs. |
358
+
359
+ #### Return value
360
+
361
+ Resolves when the listener is set up.
362
+
363
+ #### Example
364
+
365
+ ```ts
366
+ sos.management.wifi.on(WifiEvent.CLIENT_ENABLED, () => {
367
+ console.log('Wi-Fi client is enabled');
368
+ });
369
+ ```
370
+
276
371
  <Separator />
277
372
 
278
373
  ### once()
@@ -311,11 +406,30 @@ enum WifiEvent {
311
406
 
312
407
  ```
313
408
 
409
+ #### Params
410
+
411
+ | Name | Type | Required | Description |
412
+ |------------|--------------|------------------|------------------------------------------------------|
413
+ | `event` | `WifiEvent` | <div>Yes</div> | The event for which to set up the listener. |
414
+ | `listener` | `() => void` | <div>Yes</div> | The listener function to call when the event occurs. |
415
+
416
+ #### Return value
417
+
418
+ Resolves when the listener is set up.
419
+
420
+ #### Example
421
+
422
+ ```ts
423
+ sos.management.wifi.once(WifiEvent.CLIENT_CONNECTED, () => {
424
+ console.log('Wi-Fi client is connected');
425
+ });
426
+ ```
427
+
314
428
  <Separator />
315
429
 
316
430
  ### removeAllListeners()
317
431
 
318
- The `removeAllListeners()` method removes all listeners for a specified event or for all events.
432
+ The `removeAllListeners()` method removes all listeners for a specified event or all events.
319
433
 
320
434
  ```ts expandable
321
435
  removeAllListeners(event?: WifiEvent): void;
@@ -349,6 +463,16 @@ enum WifiEvent {
349
463
 
350
464
  ```
351
465
 
466
+ #### Params
467
+
468
+ | Name | Type | Required | Description |
469
+ |---------|-------------|-----------------|--------------------------------------------------------------------------------------------------------------|
470
+ | `event` | `WifiEvent` | <div>No</div> | The event for which to remove all listeners. If not specified, all listeners for all events will be removed. |
471
+
472
+ #### Return value
473
+
474
+ Resolves when all listeners are removed.
475
+
352
476
  <Separator />
353
477
 
354
478
  ### removeListener()
@@ -387,19 +511,29 @@ enum WifiEvent {
387
511
 
388
512
  ```
389
513
 
514
+ #### Params
515
+
516
+ | Name | Type | Required | Description |
517
+ |------------|--------------|------------------|---------------------------------------------|
518
+ | `event` | `WifiEvent` | <div>Yes</div> | The event for which to remove the listener. |
519
+ | `listener` | `() => void` | <div>Yes</div> | The listener function to remove. |
520
+
521
+ #### Return value
522
+
523
+ Resolves when the listener is removed.
524
+
390
525
  <Separator />
391
526
 
392
527
  ### scanDevices()
393
528
 
394
529
  The `scanDevices()` method initializes a new network scan and available networks.
395
530
 
396
- :::info
397
- Use `sos.management.supports('WIFI_SCAN')` to check if the device supports scanning for devices.
398
- :::
399
-
400
531
  ```ts expandable
401
532
  scanDevices(): Promise<IScannedDevice[]>;
402
533
  // show-more
534
+ /**
535
+ * Interface representing a scanned Wi-Fi device.
536
+ */
403
537
  interface IScannedDevice {
404
538
  ssid: string;
405
539
  encrypted: boolean;
@@ -407,17 +541,34 @@ interface IScannedDevice {
407
541
 
408
542
  ```
409
543
 
544
+ #### Return value
545
+
546
+ A promise that resolves to an array of scanned devices.
547
+
410
548
  #### Possible errors
411
549
 
412
550
  Error If the Wi-Fi state is not in the `client` state.
413
551
 
552
+ #### Example
553
+
554
+ ```ts
555
+ const scannedDevices = await sos.management.wifi.scanDevices();
556
+ scannedDevices.forEach(device => {
557
+ console.log(`Found Wi-Fi network: ${device.ssid}, Encrypted: ${device.encrypted}`);
558
+ });
559
+ ```
560
+
414
561
  <Separator />
415
562
 
416
563
  ### setCountry()
417
564
 
418
- The `getCountry()` method sets the 2-letter country code for the Wi-Fi settings. Different countries may
419
- have different regulations, when it comes to the Wi-Fi networks. Under normal circumstances, everything should work with default
420
- settings. However, if you experience any problems, you might want to try changing Wi-Fi country configuration to your country.
565
+ The `setCountry()` method sets the 2-letter country code for the Wi-Fi settings. Different countries may
566
+ have different regulations when it comes to the Wi-Fi networks. Under normal circumstances, everything should work with the default
567
+ settings. However, if you experience any problems, you might want to try changing the Wi-Fi country configuration to your country.
568
+
569
+ :::note
570
+ This method is only available on the Linux platform.
571
+ :::
421
572
 
422
573
  ```ts expandable
423
574
  setCountry(countryCode: string): Promise<void>;
@@ -429,6 +580,17 @@ setCountry(countryCode: string): Promise<void>;
429
580
  |---------------|----------|------------------|---------------------------------------------------|
430
581
  | `countryCode` | `string` | <div>Yes</div> | 2-letter country code from the ISO 3166 standard. |
431
582
 
583
+ #### Return value
584
+
585
+ A promise that resolves when the country code is set.
586
+
432
587
  #### Possible errors
433
588
 
434
- Error If the Wi-Fi state is not in the `client` state.
589
+ Error If the Wi-Fi state is not in the `client` state.
590
+
591
+ #### Example
592
+
593
+ ```ts
594
+ // To set the country code to the United States
595
+ await sos.management.wifi.setCountry('US');
596
+ ```
@@ -4,20 +4,28 @@ import IOpenLinkOptions, { IDeprecatedOpenLinkOptions } from './IOpenLinkOptions
4
4
  import { IBrowserMessage } from './messages';
5
5
  import IBrowser from './IBrowser';
6
6
  /**
7
- * There are several use-cases when you need to open a web browser on a touch-enabled device (also known as a tablet). For these cases, you can use a custom web browser we built. Default URL can be opened and even the whitelisting/blacklisting of certain domains is supported.
7
+ * There are several use cases when you need to open a web browser on a touch-enabled device (also known as a tablet). For these cases, you can use a custom web browser we built. Default URL can be opened and even the whitelisting/blacklisting of certain domains is supported.
8
8
  *
9
9
  * :::info
10
10
  *
11
11
  * **This API is currently available on:**
12
12
  * - Android devices with Android 5+ (Philips, Benq, Sharp, generic Android device)
13
13
  *
14
- * **With some limitation you can use this API also on**
14
+ * **With some limitations, you can also use this API on**
15
15
  * - Samsung Tizen (SSSP 4 and above); where the website is just in fullscreen without an address bar or theme options (headless mode)
16
16
  * - LG webOS (webOS 3.0 and above); where the website is just in fullscreen without an address bar or theme options (headless mode)
17
17
  * - Linux (Fedora, Ubuntu), Raspberry Pi, NEC Compute Module; where the website is just in fullscreen without an address bar or theme options (headless mode)
18
18
  * - BrightSign; where the website is just in fullscreen without an address bar or theme options (headless mode)
19
- *
20
19
  * :::
20
+ *
21
+ * <details>
22
+ * <summary>Device Browser Capabilities</summary>
23
+ * | Capability | Description |
24
+ * |:------------|:-------------|
25
+ * | `BROWSER` | If device can open browser with custom URL |
26
+ *
27
+ * If you want to check if the device supports this capability, use [`sos.display.supports()`](https://developers.signageos.io/sdk/sos/display#supports).
28
+ * </details>
21
29
  */
22
30
  export default class Browser implements IBrowser {
23
31
  private readonly exchange;
@@ -8,20 +8,28 @@ const Validate_1 = __importDefault(require("../Validate/Validate"));
8
8
  const events_2 = require("./events");
9
9
  const IOpenLinkOptions_1 = require("./IOpenLinkOptions");
10
10
  /**
11
- * There are several use-cases when you need to open a web browser on a touch-enabled device (also known as a tablet). For these cases, you can use a custom web browser we built. Default URL can be opened and even the whitelisting/blacklisting of certain domains is supported.
11
+ * There are several use cases when you need to open a web browser on a touch-enabled device (also known as a tablet). For these cases, you can use a custom web browser we built. Default URL can be opened and even the whitelisting/blacklisting of certain domains is supported.
12
12
  *
13
13
  * :::info
14
14
  *
15
15
  * **This API is currently available on:**
16
16
  * - Android devices with Android 5+ (Philips, Benq, Sharp, generic Android device)
17
17
  *
18
- * **With some limitation you can use this API also on**
18
+ * **With some limitations, you can also use this API on**
19
19
  * - Samsung Tizen (SSSP 4 and above); where the website is just in fullscreen without an address bar or theme options (headless mode)
20
20
  * - LG webOS (webOS 3.0 and above); where the website is just in fullscreen without an address bar or theme options (headless mode)
21
21
  * - Linux (Fedora, Ubuntu), Raspberry Pi, NEC Compute Module; where the website is just in fullscreen without an address bar or theme options (headless mode)
22
22
  * - BrightSign; where the website is just in fullscreen without an address bar or theme options (headless mode)
23
- *
24
23
  * :::
24
+ *
25
+ * <details>
26
+ * <summary>Device Browser Capabilities</summary>
27
+ * | Capability | Description |
28
+ * |:------------|:-------------|
29
+ * | `BROWSER` | If device can open browser with custom URL |
30
+ *
31
+ * If you want to check if the device supports this capability, use [`sos.display.supports()`](https://developers.signageos.io/sdk/sos/display#supports).
32
+ * </details>
25
33
  */
26
34
  class Browser {
27
35
  exchange;
@@ -1 +1 @@
1
- {"version":3,"file":"Browser.js","sourceRoot":"","sources":["../../../src/FrontApplet/Browser/Browser.ts"],"names":[],"mappings":";;;;;AAAA,mCAAsC;AAEtC,oEAA4C;AAC5C,qCAA8D;AAC9D,yDAAqG;AAIrG;;;;;;;;;;;;;;;GAeG;AACH,MAAqB,OAAO;IAIE;IAHZ,MAAM,GAAiB,IAAI,qBAAY,EAAE,CAAC;IAE3D,gBAAgB;IAChB,YAA6B,QAAwB;QAAxB,aAAQ,GAAR,QAAQ,CAAgB;IAAG,CAAC;IAEzD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqCG;IACI,KAAK,CAAC,IAAI,CAAC,GAAW,EAAE,UAA4B,EAAE;QAC5D,IAAA,kBAAQ,EAAC,EAAE,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,GAAG,EAAE,CAAC;QACnC,IAAA,kBAAQ,EAAC,EAAE,OAAO,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,MAAM,CAAC,oCAAiB,CAAC,CAAC;QAE3D,MAAM,YAAY,GAAG,OAAO,CAAC,YAAY,IAAI,IAAI,CAAC;QAClD,MAAM,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC;YAC/B,GAAG;YACH,GAAG,OAAO;YACV,YAAY;YACZ,IAAI,EAAE,MAAM;SACZ,CAAC,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;OAYG;IACI,KAAK,CAAC,KAAK;QACjB,MAAM,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC;YAC/B,IAAI,EAAE,OAAO;SACb,CAAC,CAAC;IACJ,CAAC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EAAE,QAAQ,CAAC,CAAC;QACnD,OAAO,GAAG,EAAE;YACX,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,kBAAS,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;QACvD,CAAC,CAAC;IACH,CAAC;IAED,gBAAgB;IACT,iBAAiB,CAAC,IAAqB;QAC7C,QAAQ,IAAI,CAAC,IAAI,EAAE,CAAC;YACnB,KAAK,IAAI,CAAC,QAAQ,CAAC,iBAAiB,CAAC,QAAQ,CAAC;gBAC7C,MAAM,KAAK,GAAe;oBACzB,IAAI,EAAE,kBAAS,CAAC,KAAK;oBACrB,MAAM,EAAE,IAAI,CAAC,MAAqB;iBAClC,CAAC;gBACF,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,kBAAS,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;gBACzC,MAAM;YACP,QAAQ;QACT,CAAC;IACF,CAAC;IAED;;OAEG;IACI,KAAK,CAAC,QAAQ,CAAC,GAAW,EAAE,UAAsC,EAAE;QAC1E,OAAO,CAAC,IAAI,CAAC,kHAAkH,CAAC,CAAC;QAEjI,IAAA,kBAAQ,EAAC,EAAE,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,GAAG,EAAE,CAAC;QACnC,IAAA,kBAAQ,EAAC,EAAE,OAAO,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,MAAM,EAAE,CAAC;QAE1C,MAAM,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC;YAC/B,GAAG;YACH,GAAG,OAAO;YACV,YAAY,EAAE,KAAK;YACnB,IAAI,EAAE,WAAW;SACjB,CAAC,CAAC;IACJ,CAAC;CACD;AA1HD,0BA0HC"}
@@ -23,6 +23,7 @@ class Command {
23
23
  this.messagePrefix = messagePrefix;
24
24
  this.postMessage = postMessage;
25
25
  this.eventEmitter = new events_1.EventEmitter();
26
+ this.eventEmitter.setMaxListeners(40);
26
27
  }
27
28
  /**
28
29
  * The `dispatch()` method dispatches a new log record to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