mirror of
https://github.com/sascha-hemi/pycom-documentation.git
synced 2026-03-21 21:05:51 +01:00
80 lines
1.4 KiB
Markdown
80 lines
1.4 KiB
Markdown
---
|
|
title: "Pybytes library API"
|
|
aliases:
|
|
---
|
|
|
|
To test the Pybytes library API, connect your device to Pymakr and call the methods listed below.
|
|
You can use the Pybytes library API in your MicroPython project.
|
|
|
|
|
|
### Debugging
|
|
Enable debugging if you are having any issues.
|
|
There are multiple debug levels, the lowest is 0 which is for warnings only and 99 is the highest used and will print more debugging messages
|
|
|
|
#### use:
|
|
|
|
```
|
|
>> import pycom;
|
|
>> pycom.nvs_set('pybytes_debug', debugLevel)
|
|
```
|
|
|
|
#### e.g.
|
|
```
|
|
>> import pycom;
|
|
>> pycom.nvs_set('pybytes_debug', 99)
|
|
```
|
|
|
|
|
|
# API List
|
|
|
|
|
|
* [Activate](activate)
|
|
|
|
* [Connect](connect)
|
|
|
|
* [Connect LTE](connect_lte)
|
|
|
|
* [Connect LoRa ABP](connect_lora_abp)
|
|
|
|
* [Connect LoRa OTAA](connect_lora_otaa)
|
|
|
|
* [Connect Sigfox](connect_sigfox)
|
|
|
|
* [Connect Wifi](connect_wifi)
|
|
|
|
* [Deepsleep](deepsleep)
|
|
|
|
* [Disconnect](disconnect)
|
|
|
|
* [Dump CA](dump_ca)
|
|
|
|
* [Enable LTE](enable_lte)
|
|
|
|
* [Enable SSL](enable_ssl)
|
|
|
|
* [Enable terminal](enable_terminal)
|
|
|
|
* [Export configuration](export_config)
|
|
|
|
* [Get configuration](get_config)
|
|
|
|
* [Is connected](is_connected)
|
|
|
|
* [Print configuration](print_config)
|
|
|
|
* [Read configuration](read_config)
|
|
|
|
* [Reconnect](reconnect)
|
|
|
|
* [Send info message](send_info_message)
|
|
|
|
* [Send ping message](send_ping_message)
|
|
|
|
* [Send signal](send_signal)
|
|
|
|
* [Set configuration](set_config)
|
|
|
|
* [Start](start)
|
|
|
|
* [Update configuration](update_config)
|