mirror of
https://github.com/sascha-hemi/pycom-documentation.git
synced 2026-03-21 21:05:51 +01:00
40 lines
856 B
Markdown
40 lines
856 B
Markdown
---
|
|
title: "Activate Device"
|
|
aliases:
|
|
- pybytes/api/activate.html
|
|
- pybytes/api/activate.md
|
|
---
|
|
|
|
Activate device on Pybytes, via Pymakr plugin.
|
|
|
|
**Method**
|
|
----
|
|
**pybytes.activate(activation_string)**
|
|
|
|
|
|
**Parameters**
|
|
----
|
|
| name | Description | is Required | Default value
|
|
| ------------- |:-------------:|:-------------:|:-------------:|
|
|
| activation string | Generated by Pybytes | Yes | - |
|
|
|
|
|
|
**Example**
|
|
----
|
|
`pybytes.activate("eyJhIjoiNTYzM...")`
|
|
|
|
|
|
**Success Response**
|
|
----
|
|
|
|
```
|
|
>> Please wait while we try to connect to Pycom
|
|
>> Wifi connection established... activating device!
|
|
>> WMAC: 807D3AC325E8
|
|
>> Firmware: 1.20.1.r2
|
|
>> Pybytes: 1.3.0
|
|
>> Initialized watchdog for WiFi and LTE connection with timeout 1260000 ms
|
|
>> WiFi connection established
|
|
>> Pybytes connected successfully (using the built-in pybytes library)
|
|
```
|