+PING=70 instead of +70, because this +70 is not "unique" string like "+PING" would be at start and that makes hard code response without polling mode.
If you do it in code like this:
1. send AT+PING..
2. Wait + sign and grab ms value
3. return from function according to "OK" or "ERROR"
then this can block your execution on target MCU because this can take time.
If you do like that:
1. send AT+PING..
2. Return from function
3. Do other job and periodically check response
4. If received string starts with "+PING", parse number and call user event function.
Hope you understand that.Statistics: Posted by tilz0R — Sat Dec 26, 2015 9:12 pm
]]>