Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating from 1.9.6 to 2.0.2 #1910

Closed
Amanda-M-UK opened this issue Jul 11, 2023 · 1 comment
Closed

Updating from 1.9.6 to 2.0.2 #1910

Amanda-M-UK opened this issue Jul 11, 2023 · 1 comment
Labels

Comments

@Amanda-M-UK
Copy link

Amanda-M-UK commented Jul 11, 2023

Issue: INDI::BaseClient

My application is reliably using an older version of INDI client (1.9.6). I am trying to update to 2.0.2 but nothing is working in my application. When linked against 1.9.6 and I connect to an INDI server, I get a notification of the available devices in newDevice() and after connecting to a device, I get newProperty() notifications.

Unfortunately, when I link against 2.0.2 none of the usual notifications arrive in newDevice().

These are my overrides, at least newDevice() is not working.

virtual void serverConnected();
virtual void serverDisconnected(int exit_code);
virtual void newDevice(INDI::BaseDevice *dp);
virtual void removeDevice(INDI::BaseDevice *dp);
virtual void newProperty(INDI::Property *property);
virtual void removeProperty(INDI::Property *property);
virtual void newNumber(INumberVectorProperty *nvp);
virtual void newSwitch(ISwitchVectorProperty *svp);
virtual void newText(ITextVectorProperty *tvp);
virtual void newMessage(INDI::BaseDevice *dp, int messageID);

I remember making a bug report quite some time ago about serverConnected() and serverDisconnected() not working and that was fixed. Has something significant changed in version 2 releases of the client? If so, are these changes documented somewhere?

Amanda

@knro
Copy link
Contributor

knro commented Jul 12, 2023

These functions are deprecated with INDI 2.0. Check out the updated Client tutorial.

Basically, they're now fewer signals:

void newProperty(INDI::Property property);
void updateProperty(INDI::Property property);
void removeProperty(INDI::Property property);

@knro knro closed this as completed Jul 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants