语言

Menu
Sites
Language
What to do with ALREADY_EXIST, PEERAGENT_REJECTED?

Hi,
I begin recive very often those 2 exceptions:
ALREADY_EXIST : The remote Accessory Peer Agent already exists.
PEERAGENT_REJECTED : The remote Accessory Peer Agent rejected the request.
I didn't see solutions in help how to solve them.
Didn't see any methods like UseAlreadyExistedPeerAgent or DistroyAlreadyExistedPeerAgent to begin use already existed Peer Agent or kill it and use new my. 
Also what to do if I receive 'rejected'. Why? What the reason? What to do then?

And helps only reinstall the app.

响应

2 回复
flopo lopolus

without looking at your code your peer agent could get rejected for a number of reasons. your peerAgent could have code to reject your peer agent, or you dont have code to accept your peer agent. if you have code snippets or if you are using their examples i could help more! =)

Marco Buettner

To distroy you have to disconnect... The peerAgent-Variable should store information about the remote peer agent.... I have documentation here right now to give you more information... but check out SAAgent attributes.