×
INDI Library v1.8.1 Released (09 Sep 2019)

Monthly maintenance release INDI v1.8.1

INDI Driver for IPX800 server

1 month 2 days ago 1 month 2 days ago by Spiritchaser.
Spiritchaser
Fresh Boarder
Fresh Boarder
Posts: 12
More
Topic Author
INDI Driver for IPX800 server #44638
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.

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

1 month 2 days ago
Spiritchaser
Fresh Boarder
Fresh Boarder
Posts: 12
More
Topic Author
INDI Driver for IPX800 server #44661
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);

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

1 month 1 day ago
Spiritchaser
Fresh Boarder
Fresh Boarder
Posts: 12
More
Topic Author
INDI Driver for IPX800 server #44694
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.

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

Time to create page: 0.173 seconds