SIM800_MQTT-master
所属分类:其他
开发工具:C/C++
文件大小:38KB
下载次数:60
上传日期:2017-11-25 15:55:16
上 传 者:
NEMCHUA
说明: SIM800 MQTT library for Arduino
文件列表:
GSM_MQTT_Arduino_Publish (0, 2016-07-28)
GSM_MQTT_Arduino_Publish\GSM_MQTT.cpp (24723, 2016-07-28)
GSM_MQTT_Arduino_Publish\GSM_MQTT.h (5273, 2016-07-28)
GSM_MQTT_Arduino_Publish\GSM_MQTT_Arduino_Publish.ino (7120, 2016-07-28)
GSM_MQTT_Arduino_Subscribe (0, 2016-07-28)
GSM_MQTT_Arduino_Subscribe\GSM_MQTT.cpp (24723, 2016-07-28)
GSM_MQTT_Arduino_Subscribe\GSM_MQTT.h (5273, 2016-07-28)
GSM_MQTT_Arduino_Subscribe\GSM_MQTT_Arduino_Subscribe.ino (7118, 2016-07-28)
GSM_MQTT_Arduino_Subscribe_Publish (0, 2016-07-28)
GSM_MQTT_Arduino_Subscribe_Publish\GSM_MQTT.cpp (24723, 2016-07-28)
GSM_MQTT_Arduino_Subscribe_Publish\GSM_MQTT.h (5273, 2016-07-28)
GSM_MQTT_Arduino_Subscribe_Publish\GSM_MQTT_Arduino_Subscribe_Publish.ino (7116, 2016-07-28)
LICENSE (35141, 2016-07-28)
# SIM800_MQTT
#AutoConnect CallBack function
* Use this function if you want to use autoconnect(and auto reconnect) facility
* This function is called whenever TCP connection is established (or re-established).
#connect function
* This function can be used to connect your client to MQTT broker.
* Use only if you do not use Auto connect functionality.
* Optionally you can use username, password, WILL topic and WILL Message.
#OnConnect CallBack function
* This call back function is called when MQTT connection is established.
* You can call subscription and publish functions inside it (according to your need).
# publish function
* This function can be used to publish messages to different topics.
* You can select QoS levels and RETAIN flag according to your need.
# subscribe function
* This function can be used to subscribe messages from different topics.
# OnMessage CallBack function
* This callback function is called when messages are received from subscribed topics
* Topic, TopicLength, Message, MessageLength are the arguments of OnMessage callback function.
* Inside this, you can write your custom code.
#unsubscribe function
* This function can be used to unsubscribe from a previously subscribed topic.
#disconnect function
* This function can be used to disconnect your client from MQTT broker.
#available function
* return true when connection with mqtt brocker is existing
# Other Features
* You can specify your KeepAlive duration while initializing.
* Ping requests are sent and received automatically.
* QoS 0,1,2
## To Do:
近期下载者:
相关文件:
收藏者: