mirror of
https://github.com/sascha-hemi/pycom-documentation.git
synced 2026-03-22 02:06:06 +01:00
36 lines
699 B
Markdown
36 lines
699 B
Markdown
---
|
|
title: "Pybytes library API"
|
|
aliases:
|
|
- pybytes/api/deepsleep
|
|
---
|
|
|
|
**Deepsleep**
|
|
----
|
|
Start deepsleep mode for the given period
|
|
|
|
|
|
**Method**
|
|
----
|
|
**pybytes.deepsleep(ms, pins, mode, enable_pull)**
|
|
|
|
**Parameters**
|
|
----
|
|
| name | Description | is Required | Default value
|
|
| ------------- |:-------------:|:-------------:|:-------------:|
|
|
| ms | Time to sleep in ms | Yes | - |
|
|
| pins | Affected pins | No | None |
|
|
| mode | Sleep mode | No | None |
|
|
| enable_pull | Enable pull | No | None |
|
|
|
|
**Example**
|
|
----
|
|
pybytes.deepsleep(1000)
|
|
|
|
|
|
**Success Response**
|
|
----
|
|
After sleep, device reconnect
|
|
|
|
>> Connecting with SSID and PASSWORD
|
|
>> WiFi connection established
|