Never played with Mac, so can't offer any support other than to suggest maybe using VNC from the Mac to the RPi, and run the kstars there? That's how I use it, but from Windows. You might get a better suggestion in the general forum.
Ok, maybe somebody else is checking this out and finds it helpful ...
First, Thanks Alan, love that driver, and I would award you 2 or three extra Karmas....
Took my astroberry installation down because I never could update PHD2 it due to some weird Firefox error, installed Raspbian, but due to incompetence I was not able to complete KStars build/ install
Reverted back to Astroberry to have at least my previous used KStars solution; poked around a little and found an “install Updates” feature, and “what the heck” clicked on it. 1 hour later i returned, and was able to -for the first time- start Firefox.
Started PHD2- and to my total surprise it was up to date.
Started KStars, and it had updated to 3.3.7! Wow...
Started the INDI server, and the MyfocuserPro2 Driver was right there and started w/o problems.... WOW WOW
No other issues, your driver - and I checked it back and forth - is working great
That code is not designed to run on the esp32. Running serial on an esp32 chip does not really make sense in terms of driving a focuser.
You do understand that the myFocuserPro2 has already been updated to the next generation using an ESP8266 or ESP32 chip, giving all the features of Bluetooth (ESP32), WiFi, ASCOM REMOTE and a host of other features, options.
myFP2ESP WiFi was not designed to work as a serial usb controller (though that is possible).
The firmware for it was designed from scratch, and now has been ported over to myFocuserPro2
myFP2ESP controllers use the same protocol commands and responses as a myFocuserPro2
So if a myFP2ESP controller is running in LOCALSERIAL mode it will talk happily over USB with the myFocuserPro2 Windows app, myFocuserPro2 ASCOM driver andpresumably the INDI driver (as I do not have a LINUX system running INDI that I cannot verify but it should).
myFocuserPro2Linux is just a Linux version of the myFocuserPro2 Windows app designed to work over a serial port connection. It does not use TCPIP
Actually, taking the existing INDI driver for myFocuserPro2, it should be able to be modified (clone and then rename to myFocuserPro2ESP?) to use TCPIP instead of serial to communicate with the myFP2ESP controller - most of the INDI code is already done, just change the serial code to use TCPIP instead. Happy to provide source code examples of Linkux TCPIP socket code talking to an myFP2ESP controller to anyone interested in coding a driver,