Skip to content

Print Disconnect message when a device connection is lost #442

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

Merged
merged 1 commit into from
Jan 19, 2020

Conversation

maxtardif
Copy link

Print "Disconnected" message when devices disappear.

case ADNCI_MSG_DISCONNECTED:
{
CFStringRef device_uuid = AMDeviceCopyDeviceIdentifier(info->dev);
NSLogOut(@"[....] Disconnected %@", device_uuid);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be great to also log to the JSON output stream somthing like

NSLogJSON(@{@"Event": @"DeviceDisconnected", @"Device": get_device_json_dict(info->dev)});

@gabebear gabebear merged commit 84e29eb into ios-control:master Jan 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants