Listening to TCP messages in Excel via VBA

rs3hc

New Member
Joined
Nov 22, 2021
Messages
4
Office Version
  1. 2016
Platform
  1. Windows
Hello folks,

I am looking for a way to receive strings (measured values) from an ESP32 via WiFi using VBA and write them in a table in descending order.

As a naive beginner, that's how I imagine it ...

The values are transmitted every second from an ESP32 via WiFi via TCP (e.g. on port 2000).
The Arduino side is not the topic here ;-)

The ESP32 should connect to the hotspot of my laptop, set up a TCP server and show its IP and port in the display.

Then I open the corresponding XLSM on the laptop and start a UserForm where I can enter the IP and the port and connect to the ESP32 using the "Connect" button.
Then there is a start and a stop button to start and stop "listening".

Then every incoming message, which consists of a generated MsgID and the measured value, should be entered in the next line.


I've looked at all sorts of examples, but somehow I'm not able to apply it to my case.

I saw a video on Youtube that apparently does pretty much what I'm looking for.
However, without specifying any further information or code ...
Unfortunately, the uploader does not respond to inquiries either.

I hope someone here can guide me to the solution.

LG Robert
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,637
Latest member
Ezio2866

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top