client.connect additional parameters

IvanPL
Posts: 1
Joined: Mon Dec 17, 2018 12:24 pm

client.connect additional parameters

Postby IvanPL » Mon Dec 17, 2018 3:14 pm

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! :)

Who is online

Users browsing this forum: liaifat85 and 66 guests