Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
vandanoob opened this issue Jan 16, 2024 · 0 comments

Comments

@vandanoob
Copy link

vandanoob commented Jan 16, 2024

          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 #310 (comment)
@SRGDamia1

@vandanoob vandanoob changed the title i am facing same issue but with http and mqtt i am facing issue with http and mqtt ,mqtt broker gets dissconnect if i make http get request Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant