sendKmlFileToMaster method
Implementation
Future<void> sendKmlFileToMaster(String kml, String KmlName) async {
final fileName = '$KmlName.kml';
try {
final kmlFile = await _fileService.createFile(fileName, kml);
await _sshData.uploadKml(kmlFile, fileName);
await _sshData
.execute('echo "\n$_url/$fileName" > /var/www/html/kmls.txt');
} catch (e) {
// ignore: avoid_print
print(e);
}
}