Code Monkey home page Code Monkey logo

esp32-to-esp32's Issues

listPeers error

Hi, I am working on a project and I need to connect two ESP32 with Husarnet. I tried to copy this code, but the method Husarnet.listPeers() is not recognised in VSC with PlatformIO extension...

Issue when compiling

Hello,

When I compile the code I get this error message at the end

exit status 1
invalid user-defined conversion from 'IPv6Address' to 'const char*' [-fpermissive]

in reference to this line

client_tcp->connect(peerAddr, PORT);

Sending UDP messages

Hi,

I am working on a project and I need two ESP32 to communicate over the network sending simple UDP packets.
I have been able to do this using WIFiUDP library, but everything works only if the two microcontrollers are in the same network (I can't do port forwarding for project's reasons).

To solve this issue I thought of using VPN and I found Husarnet that works really well.
I have been able to create the network and add the two ESP32 to it, the problem is that the controllers see each other and get the IPv6 and name of the peer, but WiFiUDP methods to send the packets only work with IPv4 or host name.
Since I don't have the IPv4, I tried to use the host name but it seems it does not work since I get the error "could not get host from dns: 11".

What am I doing wrong? How can I solve the problem?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.