×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

INDI Driver for IPX800 server

  • Posts: 41
  • Thank you received: 2
Hi all,
i'm trying to write indi drivers for a domotic server called "IPX800"...
I don't understand how to get IP adress and port from Connection Tab...(from a class derived from Dome)
Also how can I send special http request....which procedure should I use ?
I don't found example...
My C++ is a bit "rusty"...

Thanks for your help.

Regards.
Last edit: 4 years 5 months ago by Arnaud.
4 years 5 months ago #44638

Please Log in or Create an account to join the conversation.

  • Posts: 41
  • Thank you received: 2
Well...I've found this to know Address and port...but that means that user should have previously saved his configuration...not satisfaying...
Reading API and codes...I don't understand how to use Standard Properties in other way than reading config files...
IUGetConfigText(getDeviceName(), INDI::SP::DEVICE_ADDRESS, "ADDRESS", defaultHostname, MAXINDINAME);
    IUGetConfigText(getDeviceName(), INDI::SP::DEVICE_ADDRESS, "PORT", defaultPort, MAXINDINAME);
4 years 5 months ago #44661

Please Log in or Create an account to join the conversation.

  • Posts: 41
  • Thank you received: 2
Well ...some news.
I've found the tcpConnection member and his two procedures...port() and host()...I didn't saw them...

I'm facing another problem. I try to run my proto-driver as 3rd party...I've compiled it alone, with last 3rd party sources...produced without problem
but...
sudo indiserver -vvv indi_ipx800_v4

give me :
2019-10-16T23:08:57: startup: indiserver -vvv indi_ipx800_v4 
2019-10-16T23:08:57: Driver indi_ipx800_v4: pid=28113 rfd=3 wfd=6 efd=7
2019-10-16T23:08:57: listening to port 7624 on fd 4
2019-10-16T23:08:57: Driver indi_ipx800_v4: sending msg copy 1 nq 1:
<getProperties version='1.7'/>
 
2019-10-16T23:08:57: Driver indi_ipx800_v4: stderr EOF
Child process 28113 died
 
and so on...10 times...

Anyone ...knows what's the problem or where I should take a look...
Thanks.

Best Regards.
4 years 5 months ago #44694

Please Log in or Create an account to join the conversation.

Time to create page: 0.241 seconds