SubscribeCommand(String,CommandCallback,IntPtr)

Subscribes to the command whose is named id.

The callback parameter specifies the function to call when commands are received.

The userData is a generic user pointer that will be sent to callback when it is invoked.

The call is synchronous.

See CheckForEvents.

Parameters

  • id : string : Name id of the subscribe command.
  • callback : CommandCallback : The CommandCallback that specifies the function to call when the data is available.
  • userData : IntPtr : The userData is sent to the callback when invoked.

Return

Status : Status to indicate if the operation was a success.