adafruit / Adafruit_MQTT_Library

Arduino library for MQTT support

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Delay between code and subscribing to commands, URGENT!

Alfredfoby opened this issue · comments

I am using a SIM7000a modem with an Arduino Mega, the problem I am having is that I am running some code on the Arduino that cannot be stopped whatsoever and should always be running. I am also trying to send commands from adafruit io to the modem and everytime I send commands it halts and delays the program that is already running and for the project I am working on I cannot have the program stop because it is used for controlling a system. Is the delay from the libraries? The adafruit_mqtt and adafruit_mqtt_fona? I tried removing the de;lays from the libraries and it just stops the whole program. How do I fix this delay and halting problem?