Product : [Bebop2]
SDK Platform : [Unix]
SDK version : the latest one
I’m currently trying to delevop a method in C++ able to send mavlink files to a Bebop 2. Here is my code :
void AutopilotBebop2::sendWriteMission(std::string filepath)
eARDATATRANSFER_UPLOADER_RESUME resume = ARDATATRANSFER_UPLOADER_RESUME_FALSE;
eARUTILS_ERROR error = ARUTILS_OK;
eARDATATRANSFER_ERROR error2 = ARDATATRANSFER_OK;
std::string filename = filepath.substr(filepath.find_last_of('/') + 1);
ARUTILS_Manager_t* ftp = ARUTILS_Manager_New(&error);
ARDATATRANSFER_Manager_t* transfer = ARDATATRANSFER_Manager_New(&error2);
ARUTILS_Manager_InitWifiFtp(ftp, "192.168.42.1", 61, "", "");
ARDATATRANSFER_Uploader_New(transfer, ftp, filename.c_str(), filepath.c_str(), NULL, NULL, NULL, NULL, resume);
std::cout << "\033[1;31mSending : " << filename << "\nFrom : " << filepath << "\033[0m" << std::endl;
usleep(100000); // To be sure the file is completely sent...
However, after verification with FileZilla, no files are uploaded. And I am sure that the path sent is the correct one.
I followed several other threads and there weren’t any idea that solved my problem so I would be truly grateful if someone could help me.
Again, many thanks for your help.