Wish Expose method setMaxInflight in MqttConnectOptions

Discussion in 'B4J Bugs & Wishlist' started by Peter Simpson, Apr 16, 2019.

  1. Peter Simpson

    Peter Simpson Expert Licensed User

    Hello Eral,
    I was wondering would it be possible for you to expose setMaxInflight method in object MqttConnectOptions?

    I've tried using JavaObject with with org.eclipse.paho.client.mqttv3.MqttConnectOptions but to no joy, all I'm getting is the following.
    java.lang.RuntimeException: Method: setMaxInflight not found in: org.eclipse.paho.client.mqttv3.MqttConnectOptions
    According to the www I can use setMaxInflight to fix an issue. Please note that I'm just playing with speed and just how many payloads I can push at any one time. The default is apparent set to 10 and I would like to up that number to 1000.

    If it's not possible, that's fine my me as I'm just testing something out for my own gratification.

    Well, I presumed that the method was in the object somewhere :)

    Thank you...
    Last edited: Apr 16, 2019
  2. Erel

    Erel Administrator Staff Member Licensed User

    You cannot access it with JavaObject because there is no such method in the wrapped version. It will be available once the library is updated to the latest version of paho.
    Peter Simpson likes this.
  3. Peter Simpson

    Peter Simpson Expert Licensed User

    Thank you Erel...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice