elementzonline / SIM800_MQTT

Visit our blog/website for more information
http://www.elementzonline.com
GNU General Public License v3.0
170 stars 96 forks source link

millis() issue? #16

Closed durvesh09 closed 7 years ago

durvesh09 commented 7 years ago

How to published message after specified time interval using millis() ? facing problem in this

elementzonline commented 7 years ago

Hi, Please refer the blink without delay sample code to use millis function for tasks. You can check if the MQTT connection is available before publishing.

durvesh09 commented 7 years ago

Hi,

Thank you for the help.I tried the same sample code, but its only printing the publish message on serial monitor after specified interval but not publishing it. Any solution ?

On Fri, Jan 13, 2017 at 7:30 PM, Dhanish Vijayan notifications@github.com wrote:

Hi, Please refer the blink without delay sample code to use millis function for tasks. You can check if the MQTT connection is available before publishing.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/elementzonline/SIM800_MQTT/issues/16#issuecomment-272449092, or mute the thread https://github.com/notifications/unsubscribe-auth/AWmZIfDq9ROKD7KlZSVLerplbnn_Ae9gks5rR4N1gaJpZM4Li4Uz .

-- Thanks and Regards,

durvesh.bhole@afourtech.com | Skype ID: durveshb9 | AfourTech

-- DISCLAIMER ========== This e-mail may contain privileged and confidential information which is the property of AFour Technologies Pvt. Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. AFour Technologies Pvt. Ltd. does not accept any liability for virus infected mails.

durvesh09 commented 7 years ago

Do i need to change the keepalive interval also for publishing messages after specified time ?

On Sun, Jan 15, 2017 at 8:18 AM, Durvesh Bhole durvesh.bhole@afourtech.com wrote:

Hi,

Thank you for the help.I tried the same sample code, but its only printing the publish message on serial monitor after specified interval but not publishing it. Any solution ?

On Fri, Jan 13, 2017 at 7:30 PM, Dhanish Vijayan <notifications@github.com

wrote:

Hi, Please refer the blink without delay sample code to use millis function for tasks. You can check if the MQTT connection is available before publishing.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/elementzonline/SIM800_MQTT/issues/16#issuecomment-272449092, or mute the thread https://github.com/notifications/unsubscribe-auth/AWmZIfDq9ROKD7KlZSVLerplbnn_Ae9gks5rR4N1gaJpZM4Li4Uz .

-- Thanks and Regards,

durvesh.bhole@afourtech.com | Skype ID: durveshb9 | AfourTech

-- Thanks and Regards,

durvesh.bhole@afourtech.com | Skype ID: durveshb9 | AfourTech

-- DISCLAIMER ========== This e-mail may contain privileged and confidential information which is the property of AFour Technologies Pvt. Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. AFour Technologies Pvt. Ltd. does not accept any liability for virus infected mails.