评论

3 条评论

  • DJI Developer Support
    Dear Client Thank you for contacting DJI. The isConnected() method is provided in both BaseComponent and BaseProduct to detect a connection. The SDKManagerCallback interface class provides several interfaces for detecting status. For example, the onProductChange() method will be called when the connected product is changed. The product will be updated when the aircraft connected changes from only remote controller connected. Hopefully our solution can help you. Kindly Regards, DJI Developer Support
    0
    评论操作 固定链接
  • Fernando Santos

    I'm sorry, I didn't make myself clear. I'd like something more reactive, like using the Observer pattern. I've just seen that you have the KeyListeners, and I noticed the ProductKey.CONNECTION but I couldn't find a RemoteControllerKey.CONNECTION.

     

    Also, what is the difference between onProductConnect and onProductChanged?

     

    In onProductConnect, the documentation says the base product can be null "if the USB link or WiFi link between the product and phone is disconnected", but if the product is connected, the USB or WiFi link wouldn't be also connected? What am I missing?

     

    The documentation of onProductDisconnect says "Called when the 'product' is disconnected.". What this product in quotes mean?

    0
    评论操作 固定链接
  • DJI Developer Support
    Dear Client Thank you for contacting DJI. Sorry, we didn't provide the RemoteControllerKey.CONNECTION. Therefore, you are currently unable to program with this key. Hopefully our solution can help you. Kindly Regards, DJI Developer Support
    0
    评论操作 固定链接

请先登录再写评论。