Hello,
I use ESP32 as client for my application that requires the ESP32 to send MAC adress as query on connect method.
ESP32 can successfuly connect to my socket.io server using client.connect and what I need now is to send additional parameter (MAC Address) on this connect method. I successfuly made this in JS for browser client which follows:
io('localhost:2000', {query: { mac: 222222 }})
I currently use client.connect from WiFiClient library:
client.connect(host, port)
But what I want to send MAC Address as data within this "connect" method request (don't want to make another request after connect) so I want something like this:
client.connect(host, port, query)
I really need your help guys... Did someone actually made this possible? How can I do it?
Thanks!
client.connect additional parameters
Who is online
Users browsing this forum: Baidu [Spider], Google [Bot] and 53 guests