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
Brody7mo ago
esp8226? esp32? what ya working with?
Pastráns
Pastráns7mo ago
nodemcu esp8266
Brody
Brody7mo 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áns7mo ago
that's works, thanks
Brody
Brody7mo ago
no problem!
alex
alex7mo ago
You write systems? Damn
Brody
Brody7mo ago
it's Arduino
alex
alex7mo ago
I wanna get into it… but I’d be writing rust lol