how to get spin to check string input from serial terminal
how do i get spin code to check text i input in the serial terminal and do something or rather post a response based on what text i input.
Example: i type "how are you?" and robot responds with "I am fine" but only if i type that exact phrase.
Example: i type "how are you?" and robot responds with "I am fine" but only if i type that exact phrase.
Comments
' The input routine has returned the address in Addr. if strcomp(Addr,string("how are you?")) ' Check for exact equality ' Do something if there's a match