sendKMLToSlave method
Sends a KML file to a specific slave screen.
screenNumber
is the screen number.
kml
is the KML content to send.
Implementation
Future<void> sendKMLToSlave(int screenNumber, String kml) async {
if (await isConnected() == false) {
return;
}
await sendCommand(
"echo '$kml' > /var/www/html/kml/slave_$screenNumber.kml");
}