mirror of
https://github.com/sascha-hemi/pycom-documentation.git
synced 2026-03-21 18:06:13 +01:00
30 lines
632 B
Markdown
30 lines
632 B
Markdown
---
|
|
title: "Write configuration"
|
|
aliases:
|
|
- pybytes/api/write_config
|
|
---
|
|
|
|
Write device configuration.
|
|
|
|
**Method**
|
|
----
|
|
**pybytes.write_config(file='/flash/pybytes_config.json', silent=False)**
|
|
|
|
**Parameters**
|
|
----
|
|
| name | Description | is Required | Default value
|
|
| ------------- |:-------------:|:-------------:|:-------------:|
|
|
| file | File path | Yes | '/flash/pybytes_config.json' |
|
|
| silent | boolean | No | False |
|
|
|
|
**Example**
|
|
----
|
|
`pybytes.write_config(file='/flash/pybytes_config.json', silent=False)`
|
|
|
|
**Success Response**
|
|
----
|
|
|
|
```
|
|
>> Pybytes configuration written to /flash/pybytes_config.json
|
|
```
|