Subscribing

The SDK provides various options for subscribing to a project.

The steps involved in subscribing to data using the SDK are:

  1. Create a NetEspSubscriber from a previously connected NetEspProject instance.
  2. Subscribe to streams.
  3. In direct access mode, retrieve events using NetEspSubscriber.get_next_event(). In callback and select access modes, the event is generated by the SDK and passed back to user code.
  4. For data events, retrieve NetEspMessageReader. This encapsulates a single message from the ESP project. It may consist of a single data row or a transaction or envelope block with multiple data rows.
  5. Retrieve one or more NetEspRowReader. Use the methods in NetEspRowReader to read in individual fields.