vshymanskyy / TinyGSM

A small Arduino library for GSM modules, that just works
GNU Lesser General Public License v3.0
1.91k stars 708 forks source link

i am facing issue with http and mqtt ,mqtt broker gets dissconnect if i make http get request #771

Open vandanoob opened 5 months ago

vandanoob commented 5 months ago
          i am facing same issue but with http and mqtt 

WiFiClient client1; WiFiClient espClient; WiFiClient httpClient; PubSubClient client(espClient);

/////////////////////////////////////////// void send_request(char* webst) { HTTPClient http; WiFiClient httpWiFiClient; //http.setTimeout(1000); //in ms

          http.begin(httpWiFiClient,webst);
          int httpCode = http.GET();
          http.end();
          Serial.println(httpCode);
        //  Serial.println("===========");
        //  Serial.println(webst);

          //client.publish(pub_token, webstr);
     }

Originally posted by @vandanoob in https://github.com/vshymanskyy/TinyGSM/issues/310#issuecomment-1884776369 @SRGDamia1