Lengkap

Urgent, MQTT delay between commands Arduino

Hey guys,

I am using an Arduino mega and a Sim 7000a modem, I am trying to send commands from adafruit io using MQTT while running other code from the Arduino, so for testing I am just running a counter that counts up to 1000 and resets and I want to be able to send commands to the modem to do stuff without it delaying my counter or stopping it. The problem I'm having is that whenever I send a command from adafruit io it halts my program that is already running and delays it and for the application I'll be using it for I cannot have the program halt at any time.I have been looking into the Adafruit_MQTT.h and cpp libraries used as I thought that would be the root of all my problems, I also tried removing any delays in the libraries as I thought it would help,but it only made it worse. Below I would attach my code, and both libraries I think could be causing the problem.

It could also be the serial buffer, please I need help solving this urgently

Kemahiran: Arduino, Mikropengawal, Elektronik, Pengaturcaraan C, Pengaturcaraan C++

Lihat lagi: arduino mqtt library esp8266, adafruit mqtt library arduino download, esp32 mqtt arduino library, how to add adafruit mqtt library to arduino, adafruit mqtt library nodemcu, adafruit_mqtt.h library download, arduino mqtt example, adafruit_mqtt_client.h library, problems occur delay updating database mysql, arduino web commands http request, thermal printer commands arduino, arduino commands, commands arduino gsm, send serial commands arduino bluetooth, programming commands arduino, arduino uno commands, arduino control led delay, five guys application, hm-10 at commands arduino, sim800 at commands arduino

Tentang Majikan:
( 1 ulasan ) Bozeman, United States

ID Projek: #22857722

Dianugerahkan kepada:

edi45

Hi Perhaps you need multi task mechanism in order to do that, or not using adafruit library in the first place. I'd love to help you to do that

$50 USD dalam 3 hari
(2 Ulasan)
2.1

5 pekerja bebas membida secara purata $55 untuk pekerjaan ini

BlackStarGazer

Hello I only skimmed through the sketch . I think the delay you're having is because of line 192 the continuous call for networkConnect(); As far as I can tell , this function is causing delays till a specific stat Lagi

$30 USD dalam 7 hari
(3 Ulasan)
3.5
malindu2002

Hello, I'am experienced in, Digital / Analog Electronics ESP32 , ESP8266 , Arduino, PIC , AVR , ARM , STM32 , 8051 Programming Single board computers ( Raspbery pi,Orange pi etc) C , C++ , Java , Python , C# PCB desig Lagi

$30 USD dalam sehari
(6 Ulasan)
3.3
mustiba

Hi there I have read the description you provide I’ve done a similar job, if you can come to chat i can show you some of my previous work as reference. I am an expert in this area and want to discuss the project furt Lagi

$140 USD dalam 2 hari
(0 Ulasan)
0.0
czeiss

Hello I'm interested in your offer because of the challenge it means. I am dedicated to the development of projects which involve communication with different systems for the extraction and sending of data through GPRS Lagi

$25 USD dalam 3 hari
(0 Ulasan)
0.0