Hi,
What does the "Enable services" button in the MCP do?
What are the Master Emulator API equivalent command to duplicate the "Enable services" button in the MCP?
Thank you, Virgil
Hi,
What does the "Enable services" button in the MCP do?
What are the Master Emulator API equivalent command to duplicate the "Enable services" button in the MCP?
Thank you, Virgil
Hi Virgil,
The Enable services button enables the Notification state for every characteristic for every service available on the connect BLE device. I'm not familiar with the "Master Emulator API" but essentially you would be looking for a function that enables notifications for a characteristic.
If you connect with MCP and then click Enable Services, you'll see that all characteristics with the Notify property in their CCCD will be set to 0x0100 which is the value for Notification Enabled.
Hope this helps,
Eric
I'm not 100% certain, but in looking through the docs, it would seem that after connecting and discovering services, you should then call DiscoverPipes method which retrieves all of the characteristics. Then you can call OpenRemotePipe to enable notifications for a particular pipe (characteristic). Or, to mimic Enable Services, there is an OpenAllRemotePipes method. Again, I haven't used this API but that seems to be the process for enabling notifications on a characteristic.
I'm not 100% certain, but in looking through the docs, it would seem that after connecting and discovering services, you should then call DiscoverPipes method which retrieves all of the characteristics. Then you can call OpenRemotePipe to enable notifications for a particular pipe (characteristic). Or, to mimic Enable Services, there is an OpenAllRemotePipes method. Again, I haven't used this API but that seems to be the process for enabling notifications on a characteristic.