After connect I try to find a service using MasterEmulator
method DiscoverPipes()
. I'm using event masterEmulator.LogMessage += OnLogMessage;
to print logs. First it write:
232;16:25:09.7820 [ReadPacketQueueThread] Discover pipes
233;16:25:09.8060 [ReadPacketQueueThread] GATT: Discovering all Primary Services of type 0x6E400001B5A3F393E0A9E50E24DCCA9E
But then after 30 seconds it writes:
240;16:25:39.9687 [ReadPacketQueueThread] GATT: Received None - None
241;16:25:39.9847 [ReadPacketQueueThread] Could not discover service of uuid 0x6E400001B5A3F393E0A9E50E24DCCA9E
242;16:25:40.0197 [ReadPacketQueueThread] Discovery of pipe 1 failed
Then of course when I tried to send data using:
masterEmulator.SendData(UartRxPipe, encodedBytes);
I get error:
An unhandled exception of type 'System.Exception' occurred in emulatorlibs.dll
Additional information: Pipe 1 has not been discovered
Why the service is not found??