Back to project page 3DR-Services-Library.
The source code is released under:
Apache License
If you think the Android project 3DR-Services-Library listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.ox3dr.services.android.lib.drone.connection; //from w ww.ja va2 s .co m /** * Contains constants used for the connection parameters. */ public class ConnectionType { /** * USB connection type */ public static final int TYPE_USB = 0; /** * UDP connection type */ public static final int TYPE_UDP = 1; /** * Key used to retrieve the udp server port from the connection parameter bundle */ public static final String EXTRA_UDP_SERVER_PORT = "extra_udp_server_port"; /** * Default value for the upd server port. */ public static final int DEFAULT_UPD_SERVER_PORT = 14550; /** * TCP connection type */ public static final int TYPE_TCP = 2; /** * Key used to retrieve the tcp server ip from the connection parameter bundle */ public static final String EXTRA_TCP_SERVER_IP = "extra_tcp_server_ip"; /** * Key used to retrieve the tcp server port from the connection parameter bundle */ public static final String EXTRA_TCP_SERVER_PORT = "extra_tcp_server_port"; /** * Default value for the tcp server port. */ public static final int DEFAULT_TCP_SERVER_PORT = 5763; /** * Bluetooth connection type */ public static final int TYPE_BLUETOOTH = 3; /** * Key used to retrieve the bluetooth address from the connection parameter bundle */ public static final String EXTRA_BLUETOOTH_ADDRESS = "extra_bluetooth_address"; }