Skip to content

Commit

Permalink
Adds waiting for host notification
Browse files Browse the repository at this point in the history
  • Loading branch information
johnjcsmith committed Nov 18, 2017
1 parent 2bd7c41 commit a87de39
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions iPhoneMoCap/SocketController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class SocketController: NSObject, StreamDelegate, GCDAsyncUdpSocketDelegate {
print(error)
}

NotificationBanner(title: "Listening for Auto Discovery ....", subtitle: "Please open the iPhoneMoCap host", style: .info).show()
}

func sendMessage(message: String) {
Expand Down Expand Up @@ -76,6 +77,7 @@ class SocketController: NSObject, StreamDelegate, GCDAsyncUdpSocketDelegate {

hostAddress = host

NotificationBannerQueue.default.removeAll();
NotificationBanner(title: "Paired with Host!", subtitle: "Your facial data is now streaming to \(host)", style: .success).show()
}
}
Expand Down

0 comments on commit a87de39

Please sign in to comment.