Skip to content

Commit c5f9a7c

Browse files
committed
docs(readme): Update ONVIFClient usage examples and clarify caching options
1 parent 75c56ec commit c5f9a7c

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,7 @@ client = ONVIFClient(
194194
"admin",
195195
"password",
196196
timeout=30,
197-
use_https=True,
198-
verify_ssl=False # For self-signed certificates
197+
use_https=True
199198
)
200199
```
201200

@@ -213,7 +212,7 @@ client = ONVIFClient(
213212
)
214213
```
215214

216-
**No Caching (Testing):**
215+
**No Caching and No Zeep Patching (Testing):**
217216
```python
218217
from onvif import ONVIFClient, CacheMode
219218

@@ -272,7 +271,6 @@ if client.xml_plugin:
272271
client.xml_plugin.clear_history()
273272
```
274273

275-
> [!NOTE]
276274
> **XML Capture Plugin Methods:**
277275
> - `last_sent_xml` - Get the last SOAP request XML
278276
> - `last_received_xml` - Get the last SOAP response XML
@@ -299,7 +297,7 @@ client = ONVIFClient(
299297
username="admin",
300298
password="secure_password",
301299
timeout=15,
302-
cache=CacheMode.ALL, # Maximum performance
300+
cache=CacheMode.ALL, # Maximum performance (default)
303301
use_https=True, # Secure communication
304302
verify_ssl=True, # Verify certificates (default)
305303
apply_patch=True, # Enhanced parsing (default)

README_ID.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,7 @@ client = ONVIFClient(
193193
"admin",
194194
"password",
195195
timeout=30,
196-
use_https=True,
197-
verify_ssl=False # Untuk sertifikat self-signed
196+
use_https=True
198197
)
199198
```
200199

@@ -212,7 +211,7 @@ client = ONVIFClient(
212211
)
213212
```
214213

215-
**Tanpa Caching (Testing):**
214+
**Tanpa Caching dan Zeep Patching (Testing):**
216215
```python
217216
from onvif import ONVIFClient, CacheMode
218217

@@ -271,7 +270,6 @@ if client.xml_plugin:
271270
client.xml_plugin.clear_history()
272271
```
273272

274-
> [!NOTE]
275273
> **Metode XML Capture Plugin:**
276274
> - `last_sent_xml` - Dapatkan XML permintaan SOAP terakhir
277275
> - `last_received_xml` - Dapatkan XML respons SOAP terakhir
@@ -298,9 +296,9 @@ client = ONVIFClient(
298296
username="admin",
299297
password="secure_password",
300298
timeout=15,
301-
cache=CacheMode.ALL, # Performa maksimal
299+
cache=CacheMode.ALL, # Performa maksimal (default)
302300
use_https=True, # Komunikasi aman
303-
verify_ssl=True, # Verifikasi sertifikat
301+
verify_ssl=True, # Verifikasi sertifikat (default)
304302
apply_patch=True, # Enhanced parsing (default)
305303
capture_xml=False # Nonaktifkan mode debug (default)
306304
)

0 commit comments

Comments
 (0)