Post

Replies

Boosts

Views

Activity

Reply to How do I use a Thread Network API in IOS
Do you have the corresponding entitlement enabled on the app? Or you just install the mobile profile on the device? I'm asking because I was never able to make it work. We don't have the corresponding entitlement yet, we only install the mobile profile on an iOS 17.1 device. I'm getting an error just by doing let thClient = THClient() in a function.
Oct ’23
Reply to How do I use a Thread Network API in IOS
I wonder what's wrong with my setup. Installed the ThreadNetwork mobile profile on the iOS 17.1 device. Setup MatterSupport Added the ThreadNetwork and MatterSupport framework. Added the _matter._tcp and _meshcop._udp on the Info.plist file. When calling this function provided from the docs, I'm still getting Client: -[THClient connectToXPCService]_block_invoke - CTCS XPC Client is invalidated error. func obtainCredentials(borderAgentID: Data) async -> (cred: THCredentials? ,err: Error? ) { let client = THClient() var credential: THCredentials? var err:Error? do { credential = try await client.credentials(forBorderAgentID: borderAgentID as Data) } catch { err = error } return (credential, err) }
Oct ’23