mirror of
https://github.com/sascha-hemi/pycom-documentation.git
synced 2026-03-21 10:05:56 +01:00
fix on alert info
This commit is contained in:
@@ -131,7 +131,7 @@ This library is split into two layers. The top level `OTA` class implements all
|
||||
|
||||
{{% hint style="danger" %}}
|
||||
Although the above code is functional, it is provided only as an example of how an end user might implement a OTA update mechanism. It is not 100% feature complete e.g. even though it does backup previous versions of files, the roll back procedure is not implemented. This is left of the end user to do.
|
||||
{{< /hint >}}
|
||||
{{% /hint %}}
|
||||
|
||||
## Example
|
||||
|
||||
@@ -139,7 +139,7 @@ Below is am example implementing the methodology previously explained in this tu
|
||||
|
||||
{{% hint style="info" %}}
|
||||
The example below will only work on a Pycom device with LoRa capabilities. If want to test it out on a device without LoRa functionality then simply comment out any code relating to LoRa. Leaving just the `WiFiOTA` initialisation and they `ota.connect()` and `ota.update()`
|
||||
{{< /hint >}}
|
||||
{{% /hint %}}
|
||||
|
||||
```python
|
||||
|
||||
|
||||
@@ -113,7 +113,7 @@ data = rmt.pulses_get()
|
||||
|
||||
{{% hint style="danger" %}}
|
||||
If tx_idle_level is not set to the opposite of the third value in the tx_carrier tuple, the carrier wave will continue to be generated when the RMT channel is idle.
|
||||
{{< /hint >}}
|
||||
{{% /hint %}}
|
||||
|
||||
## Receiving
|
||||
|
||||
|
||||
@@ -57,4 +57,4 @@ clock = Clock()
|
||||
|
||||
{{% hint style="info" %}}
|
||||
There are no restrictions to what can be done in an interrupt. For example, it is possible to even do network requests with an interrupt. However, it is important to keep in mind that interrupts are handled sequentially, so it's good practice to keep them short. More information can be found in [`Interrupt Handling`](/firmwareapi/notes#interrupt-handling).
|
||||
{{< /hint >}}
|
||||
{{% /hint %}}
|
||||
|
||||
@@ -33,7 +33,7 @@ When changing the WLAN mode, if following the instructions below, the WLAN conne
|
||||
2. Duplicate the REPL on UART. This way commands can be run via Serial USB.
|
||||
|
||||
|
||||
{{< /hint >}}
|
||||
{{% /hint %}}
|
||||
|
||||
## Connecting to a Router
|
||||
|
||||
@@ -84,7 +84,7 @@ if not wlan.isconnected():
|
||||
|
||||
{{% hint style="info" %}}
|
||||
Notice how we check for the reset cause and the connection status, this is crucial in order to be able to soft reset the LoPy during a telnet session without breaking the connection.
|
||||
{{< /hint >}}
|
||||
{{% /hint %}}
|
||||
|
||||
## Multiple Networks using a Static IP Address
|
||||
|
||||
|
||||
Reference in New Issue
Block a user