llnz-options-for-loop 0.1.10
Michaela 2021-06-10 19:51:20 +10:00
rodzic bf00981841
commit 65e5dfda35
3 zmienionych plików z 11 dodań i 2 usunięć

Wyświetl plik

@ -35,6 +35,15 @@ while 1:
```
Advanced Usage
--
Manual usage of the Paho MQTT network loop can be obtained by using the `loop`, `loop_forever`, `loop_start` and `loop_stop` functions, taking care to ensure that the different types of network loop aren't mixed. See Paho documentation [here](https://www.eclipse.org/paho/index.php?page=clients/python/docs/index.php#network-loop).
```python
test = sondehub.Stream(on_message=on_message, sondes=sondes, auto_start_loop=False)
test.loop_forever()
```
### CLI Usage
#### Live streaming data
```sh

Wyświetl plik

@ -1,6 +1,6 @@
[tool.poetry]
name = "sondehub"
version = "0.1.9"
version = "0.1.10"
description = "SDK to access SondeHub open data"
authors = ["Michaela <git@michaela.lgbt>"]
readme = "README.md"

Wyświetl plik

@ -34,7 +34,7 @@ class Stream:
self.loop_start = self.mqttc.loop_start
self.loop_stop = self.mqttc.loop_stop
self.loop_step = self.mqttc.loop
self.loop = self.mqttc.loop
self.loop_forever = self.mqttc.loop_forever
def add_sonde(self, sonde):