Hi,
Has anyone managed to get the simulator working as a peripheral? I’ve done the following and can connect to it, just most of the CBPeripheralManagerDelegate methods don’t seem to get called:
1.
Create the services and characteristics tree
2.
Start advertising the data with the advertising packet containing a single service and the peripheral name.
3.
Used a development board and a CLI to it in order to connect. This connects fine and I’m able to see all the services and characteristics currently running on the device. Trying to read a characteristic value fails though, presumably
because I the didReceiveReadRequest method is never called.
4.
Used a packet sniffer to verify that the simulator is advertising fine and that the CONNECT_REQ is being sent. I also see that a connection is established as I can read the characteristic values off the device. I can also issue a bonding
request and this happens fine.
However, at no point during are any of the following methods called:
centralDidConnect
centralDidDisconnect
didReceiveReadRequest
didReceiveWriteRequests
I do know that the I’ve implemented the delegate correctly as the following methods are called:
didAddService
peripheralmanagerDidStartAdvertising
Any advice because I’ve hit a brick wall!
Thanks,
Denis