i wanted to know if there is any way of stopping an attack by sending a serial command other than attack timeout
You can connect to a GPIO/Serial port (it depends what device you are using) and then code that yourself. It should looks like something like that :
#define atkPort 8 // Just taking arbitrary values in the whole program, adapt to your needs
void setup() {
[your setup function here]
pinMode(atkPort, INPUT);
}
void loop() {
[your loop function here]
if(digitalRead(atkPort) == LOW) {
// TODO : stop attack
}
}
If you are controlling via serial UART and sending commands, why can't you simply type stop?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Most helpful comment
If you are controlling via serial UART and sending commands, why can't you simply type
stop?