@@ -138,6 +138,20 @@ def foo():
138138
139139As 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 ###
143157You 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 ##
1621761 . [ ampy] ( https://learn.adafruit.com/micropython-basics-load-files-and-run-code/install-ampy )
1631772 . [ umqttsimple, umqttrobust and ssl] ( https://github.com/micropython/micropython-lib )
@@ -175,7 +189,7 @@ def foo():
175189```
176190ampy -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
0 commit comments