Skip to content

Commit 302a54d

Browse files
committed
Release 1.0.0
1 parent a665d8c commit 302a54d

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

README.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,20 @@ def foo():
138138

139139
As soon the data is send, your payload is cleared and waiting for the next sending.
140140

141+
### Advanced payload feautres ###
142+
```Python
143+
#add "model" property to your message
144+
lo.addModel("exampleName")
145+
146+
#Add "tag" property to your message
147+
lo.addTag("kitchen")
148+
lo.addTags(["humidity","bathroom"])
149+
150+
#Use your object as payload (this function doesn't append current paylod)
151+
obj = ["example":"value", "example2":"value2" ]
152+
lo.setObjectAsPayload(obj)
153+
```
154+
141155

142156
### Connect, disconnect and loop ###
143157
You can control the connection and disconnection of your device using `connect()` and `disconnect()`.
@@ -157,7 +171,7 @@ def foo():
157171

158172

159173
# Installation guide for uPython #
160-
174+
## Example for ESP8266 ##
161175
## Requirements ##
162176
1. [ampy](https://learn.adafruit.com/micropython-basics-load-files-and-run-code/install-ampy)
163177
2. [umqttsimple, umqttrobust and ssl](https://github.com/micropython/micropython-lib)
@@ -175,7 +189,7 @@ def foo():
175189
```
176190
ampy -pCOMXX put main.py
177191
```
178-
3. Setup internet connection in boot.py file and upload it into device. Example for esp8266
192+
3. Setup internet connection in boot.py file and upload it into device.
179193
```Python
180194
# This file is executed on every boot (including wake-boot from deepsleep)
181195
#import esp

THIRD_PARTY.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
COMPONENT | VERSION | LICENCE | URL
2+
-------------------------------------------------------------------------------------------------------------------------------------------------
3+
Paho-mqtt | Latest | BSD + EPL/EDL | https://github.com/eclipse/paho.mqtt.python/blob/master/LICENSE.txt
4+
simple, robust, ssl micropython modules | Latest | MIT License | https://github.com/micropython/micropython-lib/blob/master/LICENSE

0 commit comments

Comments
 (0)