×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

Driver mark connection as disconnected

  • Posts: 10
  • Thank you received: 0
Hi

I'm developing a driver for my own auxiliary device. The device is connected via I2C to the raspberry. I sometimes run into i2c communication issues that I can detect via my driver. As a consequence I'd like to set the Connection to disconnected and have the status go to ISP_ALERT. Unfortunately I can't figure out how to do this. ConnectionS is a private member and hence I can't directly change it in my own driver that is a subclass of the DefaultDevice. Any help would be highly appreciated.

Thank you
Hansli
3 years 10 months ago #54390

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

Hello Hansil and welcome to INDI forums!

You can use setConnected function to exactly this.
3 years 10 months ago #54391

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

  • Posts: 10
  • Thank you received: 0
Awesome!! Thank you so much for the quick reply!
3 years 10 months ago #54392

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

Time to create page: 0.535 seconds