Hello, I'm using an Arduino MKR WiFi 1010 to control my house. So I can communicate with it thanks to Telegram bots and it does what I want it to do.
Actually, my arduino is connected to Telegram, my air conditioner server, my inverter server, etc etc.
So it is connected to 4 servers at the same time.
I recently tried to connect my arduino to Tuya API. It works without any problem.
But the thing is that when I want to be connected to 5 servers (the 4 previous ones + Tuya) then it doesn't work, the connection fails for the 5th server. If I get rid of one server (the air conditionner one for example) then everything seems to work well, but I can no longer control my air conditionner.
Do you know what could be the problem? Is this the Arduino that is not enough powerful? Or deosn't it have enough memory?
Is there another Arduino I can use (such as Arduino Giga?) that would work? Or should I use more powerful stuff like a Raspberry pi ?
I will take a SWAG it has been a few years. You need to look at the library you are using. That will let you know what is allowed, you may be able to change it, maybe not. There is a limit to the number of connections a server will allow and it sounds like you are there. Mine have a limit of 4 but I have never needed that many. Good Luck!
Hello, thank you for your response. I'm using WiFiNINA since it's an MKR Arduino.
So you think it is the library that is limitting me at 4 connections and no more?
Because I had the answer once by @Juraj: How many simultaneous connections with WiFiNINA? - #2 by Juraj
One server can use multiple socket? Or is it One server = one socket (in wich case I should be able to connect to 10 servers right?)
That sounds right but I have not worked with it for several years and I am just working from memory. Careful, the more connections the more RAM it will use.
Is there a function that can tell me how many RAM I use? The watch it in the serial monitor?
Anyway, thank you for your help
Let's see if anyone else has an answer to give me