disconnect()

Description

This function disconnects with the drone that you're connected to.

Syntax

disconnect()

Parameters

None

Returns

None

Example Code
Python
#Python code
import CoDrone

def main():
    drone = CoDrone.CoDrone()
    drone.pair()

    drone.takeoff()
    drone.hover(1)
    drone.land()
    drone.disconnect()

if __name__ == '__main__':
    main()
Arduino
//Arduino code
#include<CoDrone.h>     //header

void setup(){
    //below this have to code in setup
    //open serial and connect
    CoDrone.begin(115200);
    CoDrone.pair(Nearest);

    CoDrone.takeoff();
    CoDrone.hover(3);
    CoDrone.land();
    CoDrone.disconnect();   // disconnects  
}

void loop(){

}