Stephan replied to the topic 'Make calls to ESP32' in the forum. 6 months ago

Hi Wolfgang,

Thank you very much - the code example will help a lot. I know curl from php.

Clear skies,
Stephan

Read More...

Stephan created a new topic ' Make calls to ESP32' in the forum. 6 months ago

Hello,

I am relativly new to INDI. I am currently working my way in driver development. The docs.indilib.org/drivers/ is a very good starting point - thank for that.

I wonder how to connect to a ESP. I want to control let's say for simplicity an led that is connected to a pin of the ESP32. Normally you set up a small web server on the ESP32 that is available in the local network, then calling urls to control the devices like 192.168.1.2/switch?state=on or 192.168.1.2/switch?state=off. You could also use websockts with that ESP websever.

So how would you do that with C++ and INDI. Most connection examples use serial connection, there are also a few drivers that make a TCP connection but I must admit here I do not understand how this works. Has anybody some advice or exemplae for me?

Thank you, Stephan

Read More...