IOT device cannot connect to railway

I have a device that I created with Arduino and when I connect to my backend the connection is lost, my endpoint works with postman, but when I make my request to railway it does not even reach the controller of my backend
8 Replies
Brody
Brody13mo ago
esp8226? esp32? what ya working with?
Pastráns
PastránsOP13mo ago
nodemcu esp8266
Brody
Brody13mo ago
you will want to use
c++
#include <ESP8266HTTPClient.h>
#include <WiFiClientSecure.h>
c++
#include <ESP8266HTTPClient.h>
#include <WiFiClientSecure.h>
and disable ssl when making the request
c++
HTTPClient https;
WiFiClientSecure client;
client.setInsecure();
c++
HTTPClient https;
WiFiClientSecure client;
client.setInsecure();
c++
https.begin(client, url);
// ...
https.GET();
c++
https.begin(client, url);
// ...
https.GET();
error handling omitted for brevity have a read of this thread, they where asking the exact same question as you https://discord.com/channels/713503345364697088/1133105801272246365
Pastráns
PastránsOP12mo ago
that's works, thanks
Brody
Brody12mo ago
no problem!
alex
alex12mo ago
You write systems? Damn
Brody
Brody12mo ago
it's Arduino
alex
alex12mo ago
I wanna get into it… but I’d be writing rust lol
Want results from more Discord servers?
Add your server