Are you missing the quotes around the string?
Did you mean to use HserPrint not HerSend?
Is AT and ATGAIN variables? Are you expecting (AT+ATGAIN) equals (=) 3 ?
and, I think your program must have #OPTION EXPLICIT missing. You would get a more meaningful error message.
Last edit: Anobium 2 days ago
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Does GCB support Hayes modem AT commands?
I'm trying to communicate with an AS7262 Light Sensor
If I send:
HSerPrint"Set Gain "
HSerSend AT+ATGAIN = 3 ;prints <0>
HSerSend 13
HSerSend 10
I get this response: Set Gain <0>
Shouldn't it respond with <3>
Are you missing the quotes around the string?
Did you mean to use HserPrint not HerSend?
Is AT and ATGAIN variables? Are you expecting (AT+ATGAIN) equals (=) 3 ?
and, I think your program must have #OPTION EXPLICIT missing. You would get a more meaningful error message.
Last edit: Anobium 2 days ago