commands.append("ST " + url + "\nMW\n");
}
}
if (posleft != null || posright != null) {
AmbientPacket packet = new AmbientPacket();
if (posleft != null) {
packet.add(AmbientPacket.MoveLeftEar, Integer.parseInt(posleft));
}
if (posright != null) {
packet.add(AmbientPacket.MoveRightEar, Integer.parseInt(posright));
}
messageService.sendMessage(mac, packet);
}
if (action != null) {
switch (Integer.parseInt(action)) {