Mattia replied to the topic 'INDI 1.9 protocol documentation' in the forum. 3 years ago

Thanks Jasem!

I just started to send and receive messages, I have some more questions about the server response, not sure if this is the right place or not.
I ask for all devices properties sending a <getProperties version=1.9 /> to the server and I poll my socket to see if there is any data, I read the data and I get back some XML that looks like this gist.github.com/MattBlack85/d44f658a933cce4e15461b3b9f689ed9

Since I am polling the socket I get often a bunch of messages together and that's the reason why i see a lot of deleteProperty ? every time the server fetches new properties froma device it sends back a deleteProperty of the given device plus the properties fetched until that moment?
I don't understand well why (what I think) is the final response with all the properties contains duplicate properties like

<setTextVector device="CCD Simulator" name="DRIVER_INFO" state="Idle" timeout="60" timestamp="2021-10-05T13:13:02"><oneText name="DRIVER_NAME">CCD Simulator</oneText><oneText name="DRIVER_EXEC">indi_simulator_ccd</oneText><oneText name="DRIVER_VERSION">1.0</oneText><oneText name="DRIVER_INTERFACE">6</oneText></setTextVector><setTextVector device="CCD Simulator" name="DRIVER_INFO" state="Idle" timeout="60" timestamp="2021-10-05T13:13:02"><oneText name="DRIVER_NAME">CCD Simulator</oneText><oneText name="DRIVER_EXEC">indi_simulator_ccd</oneText><oneText name="DRIVER_VERSION">1.0</oneText><oneText name="DRIVER_INTERFACE">6</oneText></setTextVector>

is this expected?

Read More...