some changes

This commit is contained in:
2024-11-04 11:44:43 +01:00
parent 17e1399643
commit 60f27af05d

View File

@@ -19,15 +19,14 @@ void setup(){
robot.startCommunication("/dev/ttyUSB0", true, null_ptr); robot.startCommunication("/dev/ttyUSB0", true, null_ptr);
client.connect(); client.connect();
client.subscribe("home/commands"); client.subscribe("home/commands");
parseMQTT(readMQTT());
} }
int main(){ int main(){
setup(); setup();
while(true){
readMQTT();
}
client.run(); client.run();
while(true){
parseMQTT(readMQTT());
}
return 0; return 0;
} }