         Clink.shared.logLevel = .verbose
         
         var count = 0
-        Timer.scheduledTimer(withTimeInterval: 3, repeats: true) { timer in
+        Timer.scheduledTimer(withTimeInterval: 5, repeats: true) { timer in
             count += 1
-            Clink.shared.updateLocalPeerData(["count": "\(count)"])
+
+            Clink.shared.updateLocalPeerData([
+                "count": "\(count)",
+                "deviceName": UIDevice.current.name,
+                "sentAt": Date().timeIntervalSince1970,
+            ])
         }
         
         navigationItem.rightBarButtonItem = UIBarButtonItem(barButtonSystemItem: .add, target: self, action: #selector(startScanning))



class TableViewController: UITableViewController, ClinkDelegate {
    let clink = Clink.shared
    
    override func viewDidLoad() {
        super.viewDidLoad()
        

    
    override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
        let cell = UITableViewCell(style: .default, reuseIdentifier: nil)
        
        DispatchQueue.main.async {
            let peers = Clink.shared.connectedPeers
            guard peers.count - 1 >= indexPath.row else { return }
            cell.textLabel?.text = peers[indexPath.row].id.uuidString
        }
        
        return cell
    }
    
