Skip to content

Commit ec6fcde

Browse files
authored
update typo in README (#68)
* update typo in README * Update README.md * add credentials to example config * add credentials to example config
1 parent fcdfc10 commit ec6fcde

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,9 @@ topics = [
167167
]
168168

169169
m = MQTTPubSubClient('mqtt://localhost:1883', options)
170+
# example with credentials
171+
# m = MQTTPubSubClient('mqtt://username:password@localhost:1883', options)
172+
170173
m.sub(topics)
171174
```
172175

@@ -182,7 +185,7 @@ message = create_message(
182185
content_type='application/x-bufr',
183186
url='http://www.meteo.xx/stationXYZ-20221111085500.bufr4',
184187
identifier='stationXYZ-20221111085500',
185-
datetime=datetime.now(timezone.utc),
188+
datetime_=datetime.now(timezone.utc),
186189
geometry=[33.8, -11.8, 123],
187190
metadata_id='x-urn:wmo:md:test-foo:htebmal2001',
188191
wigos_station_identifier='0-20000-12345',

pywis-pubsub-config.yml

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
# RFC1738 URL
33
broker: mqtts://localhost:1883
44

5+
# RFC1738 URL with credentials
6+
#broker: mqtts://username:password@localhost:1883
7+
58
# list of topics to subscribe to
69
subscribe_topics:
710
- '#'

0 commit comments

Comments
 (0)