mirror of
https://github.com/sascha-hemi/pycom-documentation.git
synced 2026-03-27 06:08:20 +01:00
28 lines
587 B
Markdown
28 lines
587 B
Markdown
---
|
|
title: "Pybytes library API"
|
|
aliases:
|
|
- pybytes/api/read_config
|
|
---
|
|
|
|
**Read config**
|
|
----
|
|
Reads 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`
|