5.2.1.2. pyiot/iot¶
This module does the actual job of subscribing and publishing to MQTT topics, use GET and POST method to transfer data using HTTP protocol on the request of Action Server.
-
pyiot.iot.
http_post
(spread_sheet_id, parameters)[source]¶ This function is called to push data to google spreadsheet using HTTP protocol.
Parameters: Returns: Success flag
Return type:
-
pyiot.iot.
mqtt_publish
(arg_broker_url, arg_broker_port, arg_mqtt_topic, arg_mqtt_message, arg_mqtt_qos)[source]¶ This function is called in new thread to publish data to a MQTT topic.
Parameters: Returns: Success flag
Return type: