Connecting to a Subscriber

Create and connect to a new subscriber.

  1. Create a subscriber:
    NetEspSubscriberOptions options = new NetEspSubscriberOptions();
    options.set_mode(NetEspSubscriberOptions.NET_ESP_ACCESS_MODE_T.NET_CALLBACK_ACCESS);
    NetEspSubscriber subscriber = new NetEspSubscriber(options, error);
    
  2. Connect to the subscriber:
    Subscriber.connect(error);