Change doc mentions of StreamInterface into SerialInterface

This commit is contained in:
geeksville
2020-09-27 20:02:26 -07:00
parent 25eea6c5b9
commit c258d9f4f4
3 changed files with 7 additions and 7 deletions

View File

@@ -14,7 +14,7 @@ then run the following python3 code:
```
import meshtastic
interface = meshtastic.StreamInterface() # By default will try to find a meshtastic device, otherwise provide a device path like /dev/ttyUSB0
interface = meshtastic.SerialInterface() # By default will try to find a meshtastic device, otherwise provide a device path like /dev/ttyUSB0
interface.sendText("hello mesh") # or sendData to send binary data, see documentations for other options.
```

View File

@@ -21,10 +21,10 @@
</header>
<section id="section-intro">
<h1 id="an-api-for-meshtastic-devices">an API for Meshtastic devices</h1>
<p>Primary class: StreamInterface
<p>Primary class: SerialInterface
Install with pip: "<a href="https://pypi.org/project/meshtastic/">pip3 install meshtastic</a>"
Source code on <a href="https://github.com/meshtastic/Meshtastic-python">github</a></p>
<p>properties of StreamInterface:</p>
<p>properties of SerialInterface:</p>
<ul>
<li>radioConfig - Current radio configuration and device settings, if you write to this the new settings will be applied to
the device.</li>
@@ -84,11 +84,11 @@ interface = meshtastic.SerialInterface()
<pre><code class="python">&#34;&#34;&#34;
# an API for Meshtastic devices
Primary class: StreamInterface
Primary class: SerialInterface
Install with pip: &#34;[pip3 install meshtastic](https://pypi.org/project/meshtastic/)&#34;
Source code on [github](https://github.com/meshtastic/Meshtastic-python)
properties of StreamInterface:
properties of SerialInterface:
- radioConfig - Current radio configuration and device settings, if you write to this the new settings will be applied to
the device.

View File

@@ -1,11 +1,11 @@
"""
# an API for Meshtastic devices
Primary class: StreamInterface
Primary class: SerialInterface
Install with pip: "[pip3 install meshtastic](https://pypi.org/project/meshtastic/)"
Source code on [github](https://github.com/meshtastic/Meshtastic-python)
properties of StreamInterface:
properties of SerialInterface:
- radioConfig - Current radio configuration and device settings, if you write to this the new settings will be applied to
the device.