mirror of
https://github.com/sascha-hemi/pycom-documentation.git
synced 2026-03-21 23:06:15 +01:00
30 lines
584 B
Markdown
30 lines
584 B
Markdown
---
|
|
title: "Read configuration"
|
|
aliases:
|
|
- pybytes/api/read_config
|
|
---
|
|
|
|
Reads the configuration from the given file.
|
|
|
|
**Method**
|
|
----
|
|
**pybytes.read_config(file', reconnect)**
|
|
|
|
**Parameters**
|
|
----
|
|
| name | Description | is Required | Default value
|
|
| ------------- |:-------------:|:-------------:|:-------------:|
|
|
| file | File Path | No | /flash/pybytes_config.json |
|
|
| reconnect | Reconnect after changes | No | False |
|
|
|
|
**Example**
|
|
----
|
|
`pybytes.read_config()`
|
|
|
|
**Success Response**
|
|
----
|
|
|
|
```
|
|
>> Pybytes configuration read from /flash/pybytes_config.json
|
|
```
|