mirror of
https://github.com/sascha-hemi/pycom-documentation.git
synced 2026-03-21 18:06:13 +01:00
33 lines
741 B
Markdown
33 lines
741 B
Markdown
---
|
|
title: "Set configuration"
|
|
aliases:
|
|
- pybytes/api/set_config
|
|
---
|
|
|
|
Set device configuration.
|
|
|
|
**Method**
|
|
----
|
|
**pybytes.set_config(key, value, permanent, silent, reconnect)**
|
|
|
|
**Parameters**
|
|
----
|
|
| name | Description | is Required | Default value
|
|
| ------------- |:-------------:|:-------------:|:-------------:|
|
|
| key | key | Yes | None |
|
|
| value | value | No | None |
|
|
| permanent | boolean | No | True |
|
|
| silent | boolean | No | False |
|
|
| reconnect | boolean | No | False |
|
|
|
|
**Example**
|
|
----
|
|
`pybytes.set_config(key="network_preferences", value="wifi", permanent=True, silent=False, reconnect=False)`
|
|
|
|
**Success Response**
|
|
----
|
|
|
|
```
|
|
>> Pybytes configuration written to /flash/pybytes_config.json
|
|
```
|