Cool & thanks. That makes q's easier.
@Jojopidosa
So there are various stategies for linking networks, VPN or Cloud server etc.
I would suggest that ESP eco system has good MQTT client support (although the documentation is weak e.g. transport designation & preference for non const uri/host etc character strings etc).
But a day in and once you know the voodoo...
HiveMQ and others have perfectly good servers, browser clients & rock solid documentation & guides.
IMHO MQTT is a chicken dinner!
Connecting to ESP32 based board WiFi different network
Re: Connecting to ESP32 based board WiFi different network
& I also believe that IDF CAN should be fixed.
Re: Connecting to ESP32 based board WiFi different network
Thanks Peter for providing quick response.PeterR wrote: ↑Wed Sep 23, 2020 11:46 pmCool & thanks. That makes q's easier.
@Jojopidosa
So there are various stategies for linking networks, VPN or Cloud server etc.
I would suggest that ESP eco system has good MQTT client support (although the documentation is weak e.g. transport designation & preference for non const uri/host etc character strings etc).
But a day in and once you know the voodoo...
HiveMQ and others have perfectly good servers, browser clients & rock solid documentation & guides.
IMHO MQTT is a chicken dinner!
Regards,
Ritesh Prajapati
Ritesh Prajapati
Re: Connecting to ESP32 based board WiFi different network
Ritesh,
Was trying to follow your thread and some of the replies were confusing. Did you ever get a clear response - or what was the outcome of your original post
"Is it possible to use OpenVPN or Tiny VPN service inside ESP32 to connect or access ESP32 based device from different network like Virtual LAN concept?"
Assume you were wanting your remote devices to check into a cloud server, regardless of the network ? Did you come up with an alternative approach to VPN ?
Was trying to follow your thread and some of the replies were confusing. Did you ever get a clear response - or what was the outcome of your original post
"Is it possible to use OpenVPN or Tiny VPN service inside ESP32 to connect or access ESP32 based device from different network like Virtual LAN concept?"
Assume you were wanting your remote devices to check into a cloud server, regardless of the network ? Did you come up with an alternative approach to VPN ?
Re: Connecting to ESP32 based board WiFi different network
I have been trying to follow this thread which seems to pop up over the years with no clear conclusion. We have a similar requirement - multiple devices running on multiple sites not under our control where we want the devices to report in on activation, and to then be able to go in an update firmware, tweak settings. our initial thoughts were to use some sort of VPN - but with memory limitations that might be a hard ask of the device. I have also seen suggestions of using MQTT - but don't understand it well enough to accept that it would work globally, and don't have the time to unnecessarily read up on it.
Did anyone come up with a solution allowing for device "check in" once it is set up on a remote wifi network ? If yes - would hugely appreciate any guidance/ links - or even getting your details to contact you offline.
Did anyone come up with a solution allowing for device "check in" once it is set up on a remote wifi network ? If yes - would hugely appreciate any guidance/ links - or even getting your details to contact you offline.
-
- Posts: 9749
- Joined: Thu Nov 26, 2015 4:08 am
Re: Connecting to ESP32 based board WiFi different network
The generic answer still is: you need a server somewhere. If you have two networks where two devices live that have no public IP addresses (and at this point in time, almost no networks use public IP addresses for WiFi devices anymore), it is impossible for them to talk to eachother without a 3rd party (usually a server with a public IP) augmenting this communication somehow. With such a server in place, the communication method can be anything: VPN would be an option (but as far as I know, no one has written an ESP32 implementation yet) but generally people tend to use TCP, HTTPS or MQTT connections and let the server do the work.
So yes, it's actually pretty easy and there are more than a dozen ways to achieve this, but you need a server somewhere.
So yes, it's actually pretty easy and there are more than a dozen ways to achieve this, but you need a server somewhere.
Re: Connecting to ESP32 based board WiFi different network
Yes. you are correct.ESP_Sprite wrote: ↑Fri Jul 16, 2021 1:14 amThe generic answer still is: you need a server somewhere. If you have two networks where two devices live that have no public IP addresses (and at this point in time, almost no networks use public IP addresses for WiFi devices anymore), it is impossible for them to talk to eachother without a 3rd party (usually a server with a public IP) augmenting this communication somehow. With such a server in place, the communication method can be anything: VPN would be an option (but as far as I know, no one has written an ESP32 implementation yet) but generally people tend to use TCP, HTTPS or MQTT connections and let the server do the work.
So yes, it's actually pretty easy and there are more than a dozen ways to achieve this, but you need a server somewhere.
We have used our own MQTT based server and able to access devices from any where.
Regards,
Ritesh Prajapati
Ritesh Prajapati
Who is online
Users browsing this forum: No registered users and 86 guests