We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Using Bluejay SyncPeripheral call writeAndListen, which internally uses Bluejay Peripheral call cache(listeningCharacteristic: CharacteristicIdentifier)
crashes here :
UserDefaults.standard.set([bluejay.uuid.uuidString : newListenCache], forKey: Constant.listenCaches)
writing (example) :
[EAD75440-FEFC-4BCC-81CC-0328EABE2714 : [(serviceUUID: "036C0020-98BA-F401-F139-B510D0C303AD", characteristicUUID: "036C0022-98BA-F401-F139-B510D0C303AD")] forKey com.steamclock.bluejay.listenCaches
Consistent crash is Attempt to insert non-property list object
'Attempt to insert non-property list object { "EAD75440-FEFC-4BCC-81CC-0328EABE2714" = ( "(serviceUUID: \"036C0020-98BA-F401-F139-B510D0C303AD\", characteristicUUID: \"036C0022-98BA-F401-F139-B510D0C303AD\")" ); } for key com.steamclock.bluejay.listenCaches'
writeAndListen call :
writeAndListen( writeTo: OrthopulseBLEConst.SetUp.currentTime, value: UInt64(28), listenTo: OrthopulseBLEConst.Log.logEntry, timeoutInSeconds : 20, completion: {...} ) OrthopulseBLEConst.SetUp.currentTime is currentTime = CharacteristicIdentifier(uuid: "036C0015-98BA-F401-F139-B510D0C303AD", service: OrthopulseBLEConst.setUp) logEntry is logEntry = CharacteristicIdentifier(uuid: "036C0022-98BA-F401-F139-B510D0C303AD", service: OrthopulseBLEConst.log)
The text was updated successfully, but these errors were encountered:
Should be fixed in the latest master.
Sorry, something went wrong.
Still get same issue on first run. Start from fresh with app deleted. Install, do initial pair, then sync.
At this point Constant.listenCaches is nil. So in Peripheral it enters the guard
guard let listenCaches = UserDefaults.standard.dictionary(forKey: Constant.listenCaches)
then it tries to do the same thing as before
var newListenCache = ListenCache() newListenCache.append((serviceUUID: serviceUUID, characteristicUUID: characteristicUUID)) UserDefaults.standard.set([bluejay.uuid.uuidString : newListenCache], forKey: Constant.listenCaches) UserDefaults.standard.synchronize()
I think it might be because its writing a mutable dictionary to UserDefaults, which isn't allowed. Not sure though.
Fixed together in person!
sakuraehikaru
No branches or pull requests
Using Bluejay SyncPeripheral call writeAndListen, which internally uses Bluejay Peripheral call cache(listeningCharacteristic: CharacteristicIdentifier)
crashes here :
writing (example) :
Consistent crash is Attempt to insert non-property list object
writeAndListen call :
The text was updated successfully, but these errors were encountered: